worldheart_phoenix - do not create custom requirements please, use built-in value calculation

This commit is contained in:
Maxmtg
2013-04-17 05:44:34 +00:00
parent 999c785f86
commit 1d582a48b1
3 changed files with 9 additions and 12 deletions

View File

@@ -4,7 +4,8 @@ Types:Creature Phoenix
PT:2/2
K:Flying
SVar:AltCost:Cost$ W U B R G | ActivationZone$ Graveyard | Description$ You may cast CARDNAME from graveyard by paying W U B R G rather than paying its mana cost. If you do, it enters the battlefield with two +1/+1 counters on it.
K:etbCounter:P1P1:2:AltCost$ True:no desc
K:etbCounter:P1P1:2:CheckSVar$AltCostPaid:no desc
SVar:AltCostPaid:Count$AltCost.1.0
SVar:Picture:http://www.wizards.com/global/images/magic/general/worldheart_phoenix.jpg
Oracle:Flying\nYou may cast Worldheart Phoenix from your graveyard by paying {W}{U}{B}{R}{G} rather than paying its mana cost. If you do, it enters the battlefield with two +1/+1 counters on it.
SetInfo:CFX Rare

View File

@@ -12,7 +12,6 @@ import forge.GameEntity;
import forge.Singletons;
import forge.card.ability.AbilityUtils;
import forge.card.cardfactory.CardFactoryUtil;
import forge.card.spellability.OptionalCost;
import forge.card.spellability.SpellAbility;
import forge.game.player.Player;
import forge.game.zone.Zone;
@@ -321,12 +320,6 @@ public abstract class TriggerReplacementBase {
return false;
}
}
if (params.containsKey("AltCost")) {
if (!this.getHostCard().isOptionalCostPaid(OptionalCost.AltCost)) {
return false;
}
}
return true;
}
}

View File

@@ -1560,7 +1560,10 @@ public class CardFactoryUtil {
int ix = c.getKickerMagnitude() > 0 ? 1 : 2;
return CardFactoryUtil.doXMath(Integer.parseInt(sq[ix]), m, c);
}
if (sq[0].startsWith("AltCost")) {
int ix = c.isOptionalCostPaid(OptionalCost.AltCost) ? 1 : 2;
return CardFactoryUtil.doXMath(Integer.parseInt(sq[ix]), m, c);
}
if (sq[0].contains("GraveyardWithGE20Cards")) {
if (Aggregates.max(Singletons.getModel().getGame().getPlayers(), Player.Accessors.countCardsInZone(ZoneType.Graveyard)) >= 20) {
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);