forked from External/mage
add battle card type to main branch
This commit is contained in:
parent
4706b695e7
commit
1727ec1fb5
2 changed files with 11 additions and 2 deletions
|
|
@ -211,12 +211,20 @@ public interface MageObject extends MageItem, Serializable, Copyable<MageObject>
|
|||
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue