mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* 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:
parent
b2e259422d
commit
a0840ec1b8
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue