mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
added Saga enchantment subtype and default method for isHistoric
This commit is contained in:
parent
ddf568679f
commit
6a24de6e5a
2 changed files with 7 additions and 0 deletions
|
@ -86,6 +86,12 @@ public interface MageObject extends MageItem, Serializable {
|
||||||
|
|
||||||
void setZoneChangeCounter(int value, Game game);
|
void setZoneChangeCounter(int value, Game game);
|
||||||
|
|
||||||
|
default boolean isHistoric(){
|
||||||
|
return getCardType().contains(CardType.ARTIFACT)
|
||||||
|
|| getSuperType().contains(SuperType.LEGENDARY)
|
||||||
|
|| hasSubtype(SubType.SAGA, null );
|
||||||
|
}
|
||||||
|
|
||||||
default boolean isCreature() {
|
default boolean isCreature() {
|
||||||
return getCardType().contains(CardType.CREATURE);
|
return getCardType().contains(CardType.CREATURE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ public enum SubType {
|
||||||
AURA("Aura", SubTypeSet.EnchantmentType),
|
AURA("Aura", SubTypeSet.EnchantmentType),
|
||||||
CARTOUCHE("Cartouche", SubTypeSet.EnchantmentType),
|
CARTOUCHE("Cartouche", SubTypeSet.EnchantmentType),
|
||||||
CURSE("Curse", SubTypeSet.EnchantmentType),
|
CURSE("Curse", SubTypeSet.EnchantmentType),
|
||||||
|
SAGA("Saga", SubTypeSet.EnchantmentType),
|
||||||
SHRINE("Shrine", SubTypeSet.EnchantmentType),
|
SHRINE("Shrine", SubTypeSet.EnchantmentType),
|
||||||
// 205.3g: Artifacts have their own unique set of subtypes; these subtypes are called artifact types.
|
// 205.3g: Artifacts have their own unique set of subtypes; these subtypes are called artifact types.
|
||||||
CLUE("Clue", SubTypeSet.ArtifactType),
|
CLUE("Clue", SubTypeSet.ArtifactType),
|
||||||
|
|
Loading…
Reference in a new issue