mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Little correction for last commit. AF MustAttack should be ready for AI use. Will be enabled after testing.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user