- Fixed unless cost sometimes prompting the human to pay twice.

This commit is contained in:
Sloth
2012-02-05 15:47:21 +00:00
parent f764f88499
commit 3dc921b2e4

View File

@@ -154,10 +154,10 @@ public class InputPayManaCostAbility extends InputMana {
this.manaCost = InputPayManaCostUtil.activateManaAbility(this.fakeAbility, card, this.manaCost);
if (this.manaCost.isPaid()) {
this.paidCommand.execute();
this.resetManaCost();
AllZone.getHumanPlayer().getManaPool().clearPay(this.fakeAbility, false);
this.stop();
this.paidCommand.execute();
} else {
this.showMessage();
}
@@ -166,10 +166,10 @@ public class InputPayManaCostAbility extends InputMana {
/** {@inheritDoc} */
@Override
public final void selectButtonCancel() {
this.unpaidCommand.execute();
this.resetManaCost();
AllZone.getHumanPlayer().getManaPool().unpaid(this.fakeAbility, true);
this.stop();
this.unpaidCommand.execute();
}
/** {@inheritDoc} */