mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +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);
|
||||
|
||||
default boolean isHistoric(){
|
||||
return getCardType().contains(CardType.ARTIFACT)
|
||||
|| getSuperType().contains(SuperType.LEGENDARY)
|
||||
|| hasSubtype(SubType.SAGA, null );
|
||||
}
|
||||
|
||||
default boolean isCreature() {
|
||||
return getCardType().contains(CardType.CREATURE);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public enum SubType {
|
|||
AURA("Aura", SubTypeSet.EnchantmentType),
|
||||
CARTOUCHE("Cartouche", SubTypeSet.EnchantmentType),
|
||||
CURSE("Curse", SubTypeSet.EnchantmentType),
|
||||
SAGA("Saga", SubTypeSet.EnchantmentType),
|
||||
SHRINE("Shrine", SubTypeSet.EnchantmentType),
|
||||
// 205.3g: Artifacts have their own unique set of subtypes; these subtypes are called artifact types.
|
||||
CLUE("Clue", SubTypeSet.ArtifactType),
|
||||
|
|
Loading…
Reference in a new issue