mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
more blocking-related keywords replaced with CanBeBlockedBy+expression
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user