mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -938,6 +940,11 @@ public class CombatUtil {
|
||||
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")
|
||||
&& blocker.hasKeyword("CARDNAME can block creatures with shadow as though they didn't have shadow.")) {
|
||||
|
||||
Reference in New Issue
Block a user