mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
added an additional subtype verification test
This commit is contained in:
parent
9072abbbcc
commit
07e1dff10c
2 changed files with 20 additions and 0 deletions
|
|
@ -544,6 +544,10 @@ public enum SubType {
|
|||
return "AEIOUaeiou".indexOf(c) != -1;
|
||||
}
|
||||
|
||||
public boolean isCustomSet() {
|
||||
return customSet;
|
||||
}
|
||||
|
||||
public static SubType fromString(String value) {
|
||||
for (SubType st : SubType.values()) {
|
||||
if (st.toString().equals(value)) {
|
||||
|
|
@ -581,6 +585,8 @@ public enum SubType {
|
|||
return mageObject.isArtifact();
|
||||
case PlaneswalkerType:
|
||||
return mageObject.isPlaneswalker();
|
||||
case SpellType:
|
||||
return mageObject.isInstantOrSorcery();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue