mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed unless cost sometimes prompting the human to pay twice.
This commit is contained in:
@@ -154,10 +154,10 @@ public class InputPayManaCostAbility extends InputMana {
|
|||||||
this.manaCost = InputPayManaCostUtil.activateManaAbility(this.fakeAbility, card, this.manaCost);
|
this.manaCost = InputPayManaCostUtil.activateManaAbility(this.fakeAbility, card, this.manaCost);
|
||||||
|
|
||||||
if (this.manaCost.isPaid()) {
|
if (this.manaCost.isPaid()) {
|
||||||
|
this.paidCommand.execute();
|
||||||
this.resetManaCost();
|
this.resetManaCost();
|
||||||
AllZone.getHumanPlayer().getManaPool().clearPay(this.fakeAbility, false);
|
AllZone.getHumanPlayer().getManaPool().clearPay(this.fakeAbility, false);
|
||||||
this.stop();
|
this.stop();
|
||||||
this.paidCommand.execute();
|
|
||||||
} else {
|
} else {
|
||||||
this.showMessage();
|
this.showMessage();
|
||||||
}
|
}
|
||||||
@@ -166,10 +166,10 @@ public class InputPayManaCostAbility extends InputMana {
|
|||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public final void selectButtonCancel() {
|
public final void selectButtonCancel() {
|
||||||
|
this.unpaidCommand.execute();
|
||||||
this.resetManaCost();
|
this.resetManaCost();
|
||||||
AllZone.getHumanPlayer().getManaPool().unpaid(this.fakeAbility, true);
|
AllZone.getHumanPlayer().getManaPool().unpaid(this.fakeAbility, true);
|
||||||
this.stop();
|
this.stop();
|
||||||
this.unpaidCommand.execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|||||||
Reference in New Issue
Block a user