fixed various instances of mana costs which don't include braces

This commit is contained in:
Evan Kranzler 2022-03-21 19:10:38 -04:00
parent d0b90379f6
commit 0f1375ca60
34 changed files with 38 additions and 38 deletions

View file

@ -439,8 +439,8 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
if (mana == null || mana.isEmpty()) {
return;
}
if (mana.startsWith("{") != mana.endsWith("}")) {
throw new IllegalArgumentException("mana costs should be surrounded by braces on both sides or not at all");
if (!mana.startsWith("{") || !mana.endsWith("}")) {
throw new IllegalArgumentException("mana costs should start and end with braces");
}
if (!extractMonoHybridGenericValue && costsCache.containsKey(mana)) {