mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
combineCosts - bugfix
This commit is contained in:
@@ -136,6 +136,7 @@ public class CostUtil {
|
|||||||
boolean xCanBe0 = ((CostPartMana) part).canXbe0() && costPart2.canXbe0();
|
boolean xCanBe0 = ((CostPartMana) part).canXbe0() && costPart2.canXbe0();
|
||||||
oldManaCost.combineManaCost(costPart2.getMana());
|
oldManaCost.combineManaCost(costPart2.getMana());
|
||||||
|
|
||||||
|
cost2.getCostParts().remove(costPart2);
|
||||||
cost2.getCostParts().add(0, new CostPartMana(oldManaCost.toManaCost(), !xCanBe0));
|
cost2.getCostParts().add(0, new CostPartMana(oldManaCost.toManaCost(), !xCanBe0));
|
||||||
} else {
|
} else {
|
||||||
cost2.getCostParts().add(part);
|
cost2.getCostParts().add(part);
|
||||||
|
|||||||
Reference in New Issue
Block a user