mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- DOM: added "Historic" and Jhoira, Weatherlight Captain
This commit is contained in:
@@ -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(); }
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user