SpellManaCost renamed to ManaCost and moved to forge.card.mana

CostMana renamed to CostPartMana to avoid mixing them up
This commit is contained in:
Maxmtg
2013-02-19 06:30:37 +00:00
parent bb1896cc08
commit e661489893
46 changed files with 232 additions and 226 deletions

View File

@@ -139,10 +139,10 @@ public class CostUtil {
}
for (final CostPart part : cost1.getCostParts()) {
if (!(part instanceof CostMana)) {
if (!(part instanceof CostPartMana)) {
cost2.getCostParts().add(part);
} else {
CostMana newCostMana = cost2.getCostMana();
CostPartMana newCostMana = cost2.getCostMana();
if (newCostMana != null) {
ManaCostBeingPaid oldManaCost = new ManaCostBeingPaid(part.toString());
newCostMana.setXMana(oldManaCost.getXcounter() + newCostMana.getXMana());