added Saga enchantment subtype and default method for isHistoric

This commit is contained in:
igoudt 2018-03-18 00:32:50 +01:00
parent ddf568679f
commit 6a24de6e5a
2 changed files with 7 additions and 0 deletions

View file

@ -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);
} }

View file

@ -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),