mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
SpellManaCost renamed to ManaCost and moved to forge.card.mana
CostMana renamed to CostPartMana to avoid mixing them up
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user