mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58: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,6 +498,7 @@ public class CombatUtil {
|
|||||||
|
|
||||||
// Landwalk
|
// Landwalk
|
||||||
if (isUnblockableFromLandwalk(attacker, defender)) {
|
if (isUnblockableFromLandwalk(attacker, defender)) {
|
||||||
|
if (CardLists.getAmountOfKeyword(defender.getCreaturesInPlay(), "CARDNAME can block creatures with landwalk abilities as though they didn't have those abilities.") == 0)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -763,6 +764,7 @@ public class CombatUtil {
|
|||||||
if (blocker.isValid(valid, null, null, null) &&
|
if (blocker.isValid(valid, null, null, null) &&
|
||||||
CardLists.getValidCardCount(combat.getBlockers(attacker), valid, null, null) == 0) {
|
CardLists.getValidCardCount(combat.getBlockers(attacker), valid, null, null) == 0) {
|
||||||
attackersWithLure.add(attacker);
|
attackersWithLure.add(attacker);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -938,6 +940,11 @@ public class CombatUtil {
|
|||||||
return false;
|
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:
|
// rare case:
|
||||||
if (blocker.hasKeyword("Shadow")
|
if (blocker.hasKeyword("Shadow")
|
||||||
&& blocker.hasKeyword("CARDNAME can block creatures with shadow as though they didn't have shadow.")) {
|
&& blocker.hasKeyword("CARDNAME can block creatures with shadow as though they didn't have shadow.")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user