diff --git a/AI/BattleAI/AttackPossibility.cpp b/AI/BattleAI/AttackPossibility.cpp index 91cc7f62f..9a34420ea 100644 --- a/AI/BattleAI/AttackPossibility.cpp +++ b/AI/BattleAI/AttackPossibility.cpp @@ -30,7 +30,7 @@ void DamageCache::buildDamageCache(std::shared_ptr hb, int sid { auto stacks = hb->battleGetUnitsIf([=](const battle::Unit * u) -> bool { - return true; + return u->isValidTarget(); }); std::vector ourUnits, enemyUnits;