This commit is contained in:
2026-06-09 19:12:40 -04:00
parent 4722cf882b
commit 9a0a33b82c
3 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -88,9 +88,9 @@ public partial class EnemyController : TurnController
public void HandleEnemyClick(Enemy ENEMY)
{
GD.Print(ENEMY._address, _playArea._map._astar.IsPointSolid(ENEMY._address));
if (ENEMY._speedRemaining <= 0){
return;
}
// if (ENEMY._speedRemaining <= 0){
// return;
// }
TileMapLayer pathLayer = _playArea.GetNode<TileMapLayer>("PathLayer");
Vector2I goal = GetBestGoal(ENEMY, new(ENEMY._address.X, Math.Max(ENEMY._address.Y - ENEMY._visibilityRange, _playArea._map._minY)));
if (ENEMY._address == Vector2I.Zero)