Fix minor bug in ComputerPlayer mana handling

This commit is contained in:
Alex Vasile 2022-10-04 02:01:34 -04:00
parent 55a6acba22
commit f68db93683

View file

@ -1536,7 +1536,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
if (!unpaid.getMana().includesMana(mana)) { if (!unpaid.getMana().includesMana(mana)) {
continue ManaAbility; continue ManaAbility;
} }
colored += CardUtil.overflowInc(colored, mana.countColored()); colored = CardUtil.overflowInc(colored, mana.countColored());
} }
if (colored > 1 && (cost instanceof ColoredManaCost)) { if (colored > 1 && (cost instanceof ColoredManaCost)) {
for (Mana netMana : manaAbility.getNetMana(game)) { for (Mana netMana : manaAbility.getNetMana(game)) {