mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
cleanup usage of SubType from string
This commit is contained in:
parent
4f2f566b32
commit
66716a4314
4 changed files with 17 additions and 10 deletions
|
|
@ -600,6 +600,9 @@ public enum SubType {
|
|||
return customSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use in test framework only, use SubType.byDescription instead for card logic
|
||||
*/
|
||||
public static SubType fromString(String value) {
|
||||
for (SubType st : SubType.values()) {
|
||||
if (st.toString().equals(value)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue