- Fixed a bug in the "Spend only <color> mana on X" routine that disabled the confirmation button if the wrong type of land was clicked, even if some mana of correct color was already paid before.

This commit is contained in:
Agetian
2012-11-14 18:56:48 +00:00
parent b9fe5feece
commit 09f9f7daf1

View File

@@ -36,7 +36,8 @@ public class InputPayManaX extends InputPayMana {
@Override
public void showMessage() {
if ((xPaid == 0 && costMana.isxCantBe0()) || !this.manaCost.toString().equals(strX)) {
if ((xPaid == 0 && costMana.isxCantBe0()) || (this.colorX.equals("")
&& !this.manaCost.toString().equals(strX))) {
ButtonUtil.enableOnlyCancel();
// only cancel if partially paid an X value
// or X is 0, and x can't be 0