mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fixing Java String Comparison
This commit is contained in:
@@ -301,7 +301,7 @@ public class Cost {
|
|||||||
CostMana costMana = (CostMana)part;
|
CostMana costMana = (CostMana)part;
|
||||||
|
|
||||||
String mana = getTotalMana();
|
String mana = getTotalMana();
|
||||||
if (mana != "0") { // 11/15/10 use getTotalMana() to account for X reduction
|
if ("0".equals(mana)) { // 11/15/10 use getTotalMana() to account for X reduction
|
||||||
costMana.setAdjustedMana(AllZone.getGameAction().getSpellCostChange(sa, new ManaCost(mana)).toString());
|
costMana.setAdjustedMana(AllZone.getGameAction().getSpellCostChange(sa, new ManaCost(mana)).toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user