- Fixed a bug that made it possible to select any color of mana from the mana pool when the X mana cost was supposed to be restricted to specific color(s).

This commit is contained in:
Agetian
2012-11-15 16:59:30 +00:00
parent 86918e84c9
commit e27c2192db

View File

@@ -91,7 +91,8 @@ public class InputPayManaX extends InputPayMana {
@Override
public void selectManaPool(String color) {
this.manaCost = InputPayManaCostUtil.activateManaAbility(color, sa, this.manaCost);
this.manaCost = InputPayManaCostUtil.activateManaAbility(color, sa,
this.colorX.isEmpty() ? this.manaCost : new ManaCost(this.colorX));
if (this.manaCost.isPaid()) {
if (!this.colorsPaid.contains(this.manaCost.getColorsPaid())) {
this.colorsPaid += this.manaCost.getColorsPaid();