more blocking-related keywords replaced with CanBeBlockedBy+expression

This commit is contained in:
Maxmtg
2013-06-21 19:13:23 +00:00
parent fa443cea0d
commit 68d3a7cdb2
20 changed files with 13 additions and 35 deletions

View File

@@ -709,22 +709,6 @@ public class CombatUtil {
}
}
if (attacker.hasKeyword("CARDNAME can't be blocked by Walls.") && blocker.isType("Wall")) {
return false;
}
if (attacker.hasKeyword("CARDNAME can't be blocked except by Walls.") && !blocker.isType("Wall")) {
return false;
}
if (attacker.hasKeyword("CARDNAME can't be blocked except by black creatures.") && !blocker.isBlack()) {
return false;
}
if (attacker.hasKeyword("CARDNAME can't be blocked by creature tokens.") && blocker.isToken()) {
return false;
}
return true;
} // canBlock()