mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Add Word of Command
This commit is contained in:
@@ -57,6 +57,9 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
game = player.getGame();
|
||||
saPaidFor = saPaidFor0;
|
||||
|
||||
// Set current paid for SA for player to be able to reference it later
|
||||
player.pushPaidForSA(saPaidFor);
|
||||
|
||||
//if player is floating mana, show mana pool to make it easier to use that mana
|
||||
wasFloatingMana = !player.getManaPool().isEmpty();
|
||||
if (wasFloatingMana) {
|
||||
@@ -66,6 +69,9 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
// Clear current paid for SA
|
||||
player.popPaidForSA();
|
||||
|
||||
if (wasFloatingMana) { //hide mana pool if it was shown due to floating mana
|
||||
getController().getGui().hideManaPool(PlayerView.get(player));
|
||||
}
|
||||
@@ -351,6 +357,9 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
}
|
||||
onManaAbilityPaid();
|
||||
onStateChanged();
|
||||
} else {
|
||||
// Need to call this to unlock
|
||||
onStateChanged();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user