mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed a bug that enabled the AI to block a creature with "CARDNAME can't be blocked except by two or more creatures." and trample with a single blocker.
This commit is contained in:
@@ -350,7 +350,6 @@ public class CombatUtil {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -589,6 +589,12 @@ public class ComputerUtilBlock {
|
||||
// "Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn for each creature blocking it."
|
||||
|
||||
for (final Card attacker : tramplingAttackers) {
|
||||
|
||||
if (attacker.hasKeyword("CARDNAME can't be blocked except by two or more creatures.")
|
||||
&& !combat.isBlocked(attacker)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
chumpBlockers = ComputerUtilBlock
|
||||
.getPossibleBlockers(attacker, ComputerUtilBlock.getBlockersLeft(), combat);
|
||||
for (final Card blocker : chumpBlockers) {
|
||||
|
||||
Reference in New Issue
Block a user