mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
fixed various instances of mana costs which don't include braces
This commit is contained in:
parent
d0b90379f6
commit
0f1375ca60
34 changed files with 38 additions and 38 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue