diff --git a/forge-game/src/main/java/forge/game/ability/ApiType.java b/forge-game/src/main/java/forge/game/ability/ApiType.java index 10a2a6f2009..f3d9407a46e 100644 --- a/forge-game/src/main/java/forge/game/ability/ApiType.java +++ b/forge-game/src/main/java/forge/game/ability/ApiType.java @@ -168,7 +168,7 @@ public enum ApiType { static { for(ApiType t : ApiType.values()) { - allValues.put(t.name(), t); + allValues.put(t.name().toLowerCase(), t); } } @@ -179,7 +179,7 @@ public enum ApiType { } public static ApiType smartValueOf(String value) { - ApiType v = allValues.get(value); + ApiType v = allValues.get(value.toLowerCase()); if ( v == null ) throw new RuntimeException("Element " + value + " not found in ApiType enum"); return v;