diff --git a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java index e188c2535f2..8dabab5e2ed 100644 --- a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java +++ b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java @@ -552,6 +552,10 @@ public class CardFactoryUtil { return doXMath(player.getCardsIn(ZoneType.Battlefield).size(), m, source); } + if (value.contains("StartingLife")) { + return doXMath(player.getStartingLife(), m, source); + } + if (value.contains("LifeTotal")) { return doXMath(player.getLife(), m, source); } diff --git a/forge-gui/res/cardsfolder/t/torgaar_famine_incarnate.txt b/forge-gui/res/cardsfolder/t/torgaar_famine_incarnate.txt new file mode 100644 index 00000000000..f87381c9654 --- /dev/null +++ b/forge-gui/res/cardsfolder/t/torgaar_famine_incarnate.txt @@ -0,0 +1,13 @@ +Name:Torgaar, Famine Incarnate +ManaCost:6 B B +Types:Legendary Creature Avatar +PT:7/6 +A:SP$ PermanentCreature | Cost$ 6 B B Sac | Announce$ X +S:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ Y | EffectZone$ All | Description$ As an additional cost to cast this spell, you may sacrifice any number of creatures. This spell costs {2} less to cast for each creature sacrificed as an additional cost. +SVar:X:XChoice +SVar:Y:SVar$X/Times.2 +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigSetLife | TriggerDescription$ When CARDNAME enters the battlefield, up to one target player’s life total becomes half their starting life total, rounded down. +SVar:TrigSetLife:DB$ SetLife | ValidTgts$ Player | LifeAmount$ HalfLife | TargetMin$ 0 | TargetMax$ 1 +SVar:HalfLife:TargetedPlayer$StartingLife/HalfDown +SVar:RemAIDeck:True +Oracle:As an additional cost to cast this spell, you may sacrifice any number of creatures. This spell costs {2} less to cast for each creature sacrificed as an additional cost.\nWhen Torgaar, Famine Incarnate enters the battlefield, up to one target player’s life total becomes half their starting life total, rounded down. \ No newline at end of file