mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
worldheart_phoenix - do not create custom requirements please, use built-in value calculation
This commit is contained in:
@@ -4,7 +4,8 @@ Types:Creature Phoenix
|
|||||||
PT:2/2
|
PT:2/2
|
||||||
K:Flying
|
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.
|
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
|
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.
|
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
|
SetInfo:CFX Rare
|
||||||
@@ -12,7 +12,6 @@ import forge.GameEntity;
|
|||||||
import forge.Singletons;
|
import forge.Singletons;
|
||||||
import forge.card.ability.AbilityUtils;
|
import forge.card.ability.AbilityUtils;
|
||||||
import forge.card.cardfactory.CardFactoryUtil;
|
import forge.card.cardfactory.CardFactoryUtil;
|
||||||
import forge.card.spellability.OptionalCost;
|
|
||||||
import forge.card.spellability.SpellAbility;
|
import forge.card.spellability.SpellAbility;
|
||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
import forge.game.zone.Zone;
|
import forge.game.zone.Zone;
|
||||||
@@ -321,12 +320,6 @@ public abstract class TriggerReplacementBase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (params.containsKey("AltCost")) {
|
|
||||||
if (!this.getHostCard().isOptionalCostPaid(OptionalCost.AltCost)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1560,7 +1560,10 @@ public class CardFactoryUtil {
|
|||||||
int ix = c.getKickerMagnitude() > 0 ? 1 : 2;
|
int ix = c.getKickerMagnitude() > 0 ? 1 : 2;
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[ix]), m, c);
|
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 (sq[0].contains("GraveyardWithGE20Cards")) {
|
||||||
if (Aggregates.max(Singletons.getModel().getGame().getPlayers(), Player.Accessors.countCardsInZone(ZoneType.Graveyard)) >= 20) {
|
if (Aggregates.max(Singletons.getModel().getGame().getPlayers(), Player.Accessors.countCardsInZone(ZoneType.Graveyard)) >= 20) {
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user