mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed a possible infinite loop caused by creatures with "can't attack alone" and "must attack if able".
This commit is contained in:
@@ -1138,6 +1138,9 @@ public class AiController {
|
||||
for (final Map.Entry<Card, GameEntity> mandatoryAttacker : legal.entrySet()) {
|
||||
combat.addAttacker(mandatoryAttacker.getKey(), mandatoryAttacker.getValue());
|
||||
}
|
||||
if (!CombatUtil.validateAttackers(combat)) {
|
||||
aiAtk.declareAttackers(combat);
|
||||
}
|
||||
}
|
||||
|
||||
for (final Card element : combat.getAttackers()) {
|
||||
|
||||
Reference in New Issue
Block a user