Merge branch 'torgaar' into 'master'

Add Torgaar (DOM)

See merge request core-developers/forge!424
This commit is contained in:
Michael Kamensky
2018-04-18 04:23:00 +00:00
2 changed files with 17 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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<X/Creature> | 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 players 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 players life total becomes half their starting life total, rounded down.