- DOM: added "Historic" and Jhoira, Weatherlight Captain

This commit is contained in:
swordshine
2018-03-10 15:04:31 +08:00
parent 211d6c793a
commit 2f57a39fcc
5 changed files with 16 additions and 1 deletions

View File

@@ -3661,6 +3661,7 @@ public class Card extends GameEntity implements Comparable<Card> {
public final boolean isPlaneswalker() { return getType().isPlaneswalker(); }
public final boolean isEnchantment() { return getType().isEnchantment(); }
public final boolean isAura() { return getType().hasSubtype("Aura"); }
public final boolean isHistoric() {return getType().isLegendary() || getType().isArtifact() || getType().hasSubtype("Saga");}
public final boolean isScheme() { return getType().isScheme(); }
public final boolean isPhenomenon() { return getType().isPhenomenon(); }

View File

@@ -74,6 +74,10 @@ public class CardProperty {
if (card.isInstant() || card.isSorcery()) {
return false;
}
} else if (property.equals("Historic")) {
if (!card.isHistoric()) {
return false;
}
} else if (property.startsWith("CardUID_")) {// Protection with "doesn't remove effect"
if (card.getId() != Integer.parseInt(property.split("CardUID_")[1])) {
return false;