mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Snow mana symbol is {S}, not {snow}
This commit is contained in:
parent
4214ef94b0
commit
6b345fb291
5 changed files with 20 additions and 19 deletions
|
|
@ -317,7 +317,10 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
|
|||
if (Character.isDigit(symbol.charAt(0))) {
|
||||
this.add((T) new GenericManaCost(Integer.valueOf(symbol)));
|
||||
} else {
|
||||
if (!symbol.equals("X")) {
|
||||
if(symbol.equals("S")) {
|
||||
this.add((T) new SnowManaCost());
|
||||
}
|
||||
else if (!symbol.equals("X")) {
|
||||
this.add((T) new ColoredManaCost(ColoredManaSymbol.lookup(symbol.charAt(0))));
|
||||
} else {
|
||||
// check X wasn't added before
|
||||
|
|
@ -334,9 +337,7 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
|
|||
//TODO: handle multiple {X} and/or {Y} symbols
|
||||
}
|
||||
} else {
|
||||
if (symbol.equals("snow")) {
|
||||
this.add((T) new SnowManaCost());
|
||||
} else if (Character.isDigit(symbol.charAt(0))) {
|
||||
if (Character.isDigit(symbol.charAt(0))) {
|
||||
this.add((T) new MonoHybridManaCost(ColoredManaSymbol.lookup(symbol.charAt(2))));
|
||||
} else if (symbol.contains("P")) {
|
||||
this.add((T) new PhyrexianManaCost(ColoredManaSymbol.lookup(symbol.charAt(0))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue