mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Added input panel's "remind()" flasher for ability mana cost interactions.
This commit is contained in:
@@ -21,6 +21,7 @@ import forge.AllZone;
|
|||||||
import forge.ButtonUtil;
|
import forge.ButtonUtil;
|
||||||
import forge.Card;
|
import forge.Card;
|
||||||
import forge.Command;
|
import forge.Command;
|
||||||
|
import forge.Constant.Zone;
|
||||||
import forge.PlayerZone;
|
import forge.PlayerZone;
|
||||||
import forge.Singletons;
|
import forge.Singletons;
|
||||||
import forge.card.mana.ManaCost;
|
import forge.card.mana.ManaCost;
|
||||||
@@ -154,6 +155,10 @@ public class InputPayManaCostAbility extends InputMana {
|
|||||||
// only tap card if the mana is needed
|
// only tap card if the mana is needed
|
||||||
this.manaCost = InputPayManaCostUtil.activateManaAbility(this.fakeAbility, card, this.manaCost);
|
this.manaCost = InputPayManaCostUtil.activateManaAbility(this.fakeAbility, card, this.manaCost);
|
||||||
|
|
||||||
|
if (card.getManaAbility().isEmpty() || card.isInZone(Zone.Hand)) {
|
||||||
|
Singletons.getControl().getControlMatch().getMessageControl().remind();
|
||||||
|
}
|
||||||
|
|
||||||
if (this.manaCost.isPaid()) {
|
if (this.manaCost.isPaid()) {
|
||||||
this.paidCommand.execute();
|
this.paidCommand.execute();
|
||||||
this.resetManaCost();
|
this.resetManaCost();
|
||||||
|
|||||||
Reference in New Issue
Block a user