This commit is contained in:
tool4EvEr
2021-08-08 17:09:58 +02:00
parent aae01f913e
commit 7afc17b514
2 changed files with 3 additions and 0 deletions

View File

@@ -155,6 +155,8 @@ public class CostPartMana extends CostPart {
@Override @Override
public boolean payAsDecided(Player payer, PaymentDecision pd, SpellAbility sa) { public boolean payAsDecided(Player payer, PaymentDecision pd, SpellAbility sa) {
sa.clearManaPaid();
// decision not used here, the whole payment is interactive! // decision not used here, the whole payment is interactive!
return payer.getController().payManaCost(this, sa, null, cardMatrix, true); return payer.getController().payManaCost(this, sa, null, cardMatrix, true);
} }

View File

@@ -144,6 +144,7 @@ public class HumanPlaySpellAbility {
} }
} }
// reset is also done early here, because if an ability is canceled from targeting it might otherwise lead to refunding mana from earlier cast
ability.clearManaPaid(); ability.clearManaPaid();
// This line makes use of short-circuit evaluation of boolean values, that is each subsequent argument // This line makes use of short-circuit evaluation of boolean values, that is each subsequent argument