Fix enforced blocking requirement when blocker can't block without cost

This commit is contained in:
tool4EvEr
2022-01-08 00:39:56 +01:00
parent 0e58a54834
commit 2a71833526
4 changed files with 62 additions and 40 deletions

View File

@@ -1132,7 +1132,7 @@ public class AiBlockController {
&& (CombatUtil.mustBlockAnAttacker(blocker, combat, null)
|| blocker.hasKeyword("CARDNAME blocks each combat if able."))) {
combat.addBlocker(attacker, blocker);
if (blocker.getMustBlockCards() != null) {
if (!blocker.getMustBlockCards().isEmpty()) {
int mustBlockAmt = blocker.getMustBlockCards().size();
final CardCollectionView blockedSoFar = combat.getAttackersBlockedBy(blocker);
boolean canBlockAnother = CombatUtil.canBlockMoreCreatures(blocker, blockedSoFar);