diff --git a/Mage/src/main/java/mage/MageObject.java b/Mage/src/main/java/mage/MageObject.java index 1a668b8eab..7aed450b62 100644 --- a/Mage/src/main/java/mage/MageObject.java +++ b/Mage/src/main/java/mage/MageObject.java @@ -211,12 +211,20 @@ public interface MageObject extends MageItem, Serializable, Copyable return getCardType(game).contains(CardType.TRIBAL); } + default boolean isBattle() { + return isBattle(null); + } + + default boolean isBattle(Game game) { + return getCardType(game).contains(CardType.BATTLE); + } + default boolean isPermanent() { - return isCreature() || isArtifact() || isPlaneswalker() || isEnchantment() || isLand(); + return isCreature() || isArtifact() || isPlaneswalker() || isEnchantment() || isLand() || isBattle(); } default boolean isPermanent(Game game) { - return isCreature(game) || isArtifact(game) || isPlaneswalker(game) || isEnchantment(game) || isLand(game); + return isCreature(game) || isArtifact(game) || isPlaneswalker(game) || isEnchantment(game) || isLand(game) || isBattle(game); } default boolean isLegendary() { diff --git a/Mage/src/main/java/mage/constants/CardType.java b/Mage/src/main/java/mage/constants/CardType.java index 900e9e17cc..575528ae49 100644 --- a/Mage/src/main/java/mage/constants/CardType.java +++ b/Mage/src/main/java/mage/constants/CardType.java @@ -13,6 +13,7 @@ import java.util.List; */ public enum CardType { ARTIFACT("Artifact", true, true), + BATTLE("Battle", true, true), CONSPIRACY("Conspiracy", false, false), CREATURE("Creature", true, true), DUNGEON("Dungeon", false, false),