* Fixed calculation of reduced mana costs (e.g. casr Launch the Fleet (while Battlefield Thaumaturgeonto battlefield) now always costs only {W}).

This commit is contained in:
LevelX2 2014-11-14 15:13:44 +01:00
parent b2e259422d
commit a0840ec1b8

View file

@ -214,12 +214,12 @@ public class CardUtil {
for (ManaCost manaCost : manaCosts) {
Mana mana = manaCost.getOptions().get(0);
int colorless = mana != null ? mana.getColorless() : 0;
if (!updated && colorless > 0) {
if (colorless > 0) {
if ((colorless - restToReduce) > 0) {
int newColorless = colorless - restToReduce;
adjustedCost.add(new GenericManaCost(newColorless));
} else {
restToReduce = -colorless;
restToReduce -= colorless;
}
updated = true;
} else {