diff --git a/Game/AI/AIFunctions.cs b/Game/AI/AIFunctions.cs index a571bb23..270ae46e 100644 --- a/Game/AI/AIFunctions.cs +++ b/Game/AI/AIFunctions.cs @@ -74,7 +74,8 @@ public bool IsOneEnemyBetterThanValue(int value, bool onlyATK) public bool IsAllEnemyBetterThanValue(int value, bool onlyATK) { - return Enemy.MonsterZone.GetMonsters() + List monsters = Enemy.MonsterZone.GetMonsters(); + return monsters.Count > 0 && monsters .All(card => card.GetDefensePower() > value && (!onlyATK || card.IsAttack())); }