mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
have Flash and Tariff use the moved removeVariableManaCost method
This commit is contained in:
parent
7a4a0b9faa
commit
8a80976171
2 changed files with 4 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ class FlashEffect extends OneShotEffect {
|
|||
if (card != null) {
|
||||
card.putOntoBattlefield(game, Zone.HAND, source.getSourceId(), source.getControllerId());
|
||||
|
||||
ManaCosts<ManaCost> reducedCost = CardUtil.removeVariableManaCost(CardUtil.reduceCost(card.getManaCost(), 2));
|
||||
ManaCosts<ManaCost> reducedCost = ManaCosts.removeVariableManaCost(CardUtil.reduceCost(card.getManaCost(), 2));
|
||||
StringBuilder sb = new StringBuilder("Pay ").append(reducedCost.getText()).append('?');
|
||||
if (player.chooseUse(Outcome.Benefit, sb.toString(), source, game)) {
|
||||
reducedCost.clearPaid();
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ import java.util.UUID;
|
|||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCostImpl;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
|
@ -113,7 +115,7 @@ class TariffEffect extends OneShotEffect {
|
|||
Permanent creatureToPayFor = chooseOnePermanent(game, player, creatures);
|
||||
|
||||
if (creatureToPayFor != null) {
|
||||
ManaCost manaCost = CardUtil.removeVariableManaCost(creatureToPayFor.getManaCost());
|
||||
ManaCosts manaCost = ManaCosts.removeVariableManaCost(creatureToPayFor.getManaCost());
|
||||
String message = new StringBuilder("Pay ").append(manaCost.getText()).append(" (otherwise sacrifice ")
|
||||
.append(creatureToPayFor.getName()).append(")?").toString();
|
||||
if (player.chooseUse(Outcome.Benefit, message, source, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue