From e27c2192dba4b10d885998b7ecebc71f8353fa7c Mon Sep 17 00:00:00 2001 From: Agetian Date: Thu, 15 Nov 2012 16:59:30 +0000 Subject: [PATCH] - 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). --- src/main/java/forge/control/input/InputPayManaX.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/forge/control/input/InputPayManaX.java b/src/main/java/forge/control/input/InputPayManaX.java index fa8194d05d1..a291acf32d2 100644 --- a/src/main/java/forge/control/input/InputPayManaX.java +++ b/src/main/java/forge/control/input/InputPayManaX.java @@ -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();