- Fixed interaction of Dragon Hunter and dragons with "... can't be blocked except by creatures with flying or reach."

This commit is contained in:
Sloth
2015-03-23 13:35:39 +00:00
parent ddce8ecbec
commit df5f0a6e89

View File

@@ -922,7 +922,11 @@ public class CombatUtil {
final String[] k = parse.split(" ", 2); final String[] k = parse.split(" ", 2);
final String[] restrictions = k[1].split(","); final String[] restrictions = k[1].split(",");
if (blocker.isValid(restrictions, attacker.getController(), attacker)) { if (blocker.isValid(restrictions, attacker.getController(), attacker)) {
return false; //Dragon Hunter check
if (!k[1].contains("withoutReach") || !attacker.getType().hasCreatureType("Dragon")
|| !blocker.hasKeyword("CARDNAME can block Dragons as though it had reach.")) {
return false;
}
} }
} }