mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed interaction of Dragon Hunter and dragons with "... can't be blocked except by creatures with flying or reach."
This commit is contained in:
@@ -922,9 +922,13 @@ 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)) {
|
||||||
|
//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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (blocker.hasStartOfKeyword("CantBlock")) {
|
if (blocker.hasStartOfKeyword("CantBlock")) {
|
||||||
final int keywordPosition = blocker.getKeywordPosition("CantBlock");
|
final int keywordPosition = blocker.getKeywordPosition("CantBlock");
|
||||||
|
|||||||
Reference in New Issue
Block a user