Target only alive enemies

This commit is contained in:
cblech
2025-07-10 15:25:11 +02:00
parent 6727339e9a
commit 92c3f5e054
+1 -1
View File
@@ -243,7 +243,7 @@ public partial class FightInstance : Node2D //TODO: remake
private void ShowTargetButtons()
{
_enemyFighters.ForEach(f => f.ShowTargetButtons());
_enemyFighters.Where(f=>!f.IsDead()).ForEach(f => f.ShowTargetButtons());
}
public void SelectTargetAndAttack(Fighter fighter)