mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -36,14 +36,15 @@ 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
|
||||
} else {
|
||||
ButtonUtil.enableAll();
|
||||
}
|
||||
|
||||
|
||||
StringBuilder msg = new StringBuilder("Pay X Mana Cost for ");
|
||||
msg.append(sa.getSourceCard().getName()).append("\n").append(this.xPaid);
|
||||
msg.append(" Paid so far.");
|
||||
|
||||
Reference in New Issue
Block a user