mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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:
@@ -298,6 +298,8 @@ public class AttackConstraints {
|
||||
final int previousNeeded = attackersNeeded;
|
||||
attackersNeeded = Ints.max(3 - (myAttackers.size() + reserved.size()), 0);
|
||||
localMaximum -= Ints.max(attackersNeeded - previousNeeded, 0);
|
||||
} else if (restrictions.get(req.attacker).getTypes().contains(AttackRestrictionType.NOT_ALONE)) {
|
||||
attackersNeeded = Ints.max(2 - (myAttackers.size() + reserved.size()), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user