- Little correction for last commit. AF MustAttack should be ready for AI use. Will be enabled after testing.

This commit is contained in:
Sloth
2011-10-18 20:48:23 +00:00
parent c5e6ccc28f
commit 3a33891911

View File

@@ -312,9 +312,10 @@ public class CombatUtil {
if (canBeBlocked(attacker, combat) == false) return false; if (canBeBlocked(attacker, combat) == false) return false;
//if the attacker has no lure effect, but the blocker can block another attacker with lure, the blocker can't block the former //if the attacker has no lure effect, but the blocker can block another attacker with lure, the blocker can't block the former
if ((!attacker.hasKeyword("All creatures able to block CARDNAME do so.") if (!attacker.hasKeyword("All creatures able to block CARDNAME do so.")
&& !(blocker.getMustBlockCards().contains(attacker))
&& mustBlockAnAttacker(blocker, combat)) && mustBlockAnAttacker(blocker, combat))
|| !(blocker.getMustBlockCards().contains(attacker))) return false; return false;
return canBlock(attacker, blocker); return canBlock(attacker, blocker);
} }