From ec762d652fb0aead57194b03d395875d3edc8eca Mon Sep 17 00:00:00 2001 From: Hanmac Date: Mon, 18 Jul 2016 07:52:09 +0000 Subject: [PATCH] CombatUtil: add "CARDNAME can block creatures with landwalk abilities as though they didn't have those abilities." ts not a global deactivating, but a local one. --- .../src/main/java/forge/game/combat/CombatUtil.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/combat/CombatUtil.java b/forge-game/src/main/java/forge/game/combat/CombatUtil.java index 2ae36d1bc03..4e19d895969 100644 --- a/forge-game/src/main/java/forge/game/combat/CombatUtil.java +++ b/forge-game/src/main/java/forge/game/combat/CombatUtil.java @@ -498,7 +498,8 @@ public class CombatUtil { // Landwalk if (isUnblockableFromLandwalk(attacker, defender)) { - return false; + if (CardLists.getAmountOfKeyword(defender.getCreaturesInPlay(), "CARDNAME can block creatures with landwalk abilities as though they didn't have those abilities.") == 0) + return false; } return true; @@ -763,6 +764,7 @@ public class CombatUtil { if (blocker.isValid(valid, null, null, null) && CardLists.getValidCardCount(combat.getBlockers(attacker), valid, null, null) == 0) { attackersWithLure.add(attacker); + break; } } } @@ -937,6 +939,11 @@ public class CombatUtil { if (CardFactoryUtil.hasProtectionFrom(blocker, attacker)) { return false; } + + if (isUnblockableFromLandwalk(attacker, blocker.getController()) + && !blocker.hasKeyword("CARDNAME can block creatures with landwalk abilities as though they didn't have those abilities.")) { + return false; + } // rare case: if (blocker.hasKeyword("Shadow")