Add Towering Titan

This commit is contained in:
swordshine
2020-06-28 14:06:42 +08:00
parent 2fb6849ae2
commit 24d2c8dc2f
6 changed files with 20 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ import forge.game.spellability.*;
import forge.game.trigger.Trigger;
import forge.game.trigger.TriggerType;
import forge.game.zone.ZoneType;
import forge.util.Aggregates;
import forge.util.Expressions;
import forge.util.TextUtil;
import forge.util.collect.FCollection;
@@ -1729,7 +1730,11 @@ public class AbilityUtils {
return CardFactoryUtil.doXMath(0, expr, c);
}
list = CardLists.getValidCards(list, k[1].split(","), sa.getActivatingPlayer(), c, sa);
return CardFactoryUtil.doXMath(list.size(), expr, c);
if (k[0].contains("TotalToughness")) {
return CardFactoryUtil.doXMath(Aggregates.sum(list, CardPredicates.Accessors.fnGetNetToughness), expr, c);
} else {
return CardFactoryUtil.doXMath(list.size(), expr, c);
}
}
if (l[0].startsWith("LastStateGraveyard")) {

View File

@@ -2,7 +2,7 @@ Name:Diregraf Colossus
ManaCost:2 B
Types:Creature Zombie Giant
PT:2/2
K:etbCounter:P1P1:X:no Condition:Diregraf Colossus enters the battlefield with a +1/+1 counter on it for each Zombie card in your graveyard.
K:etbCounter:P1P1:X:no Condition:CARDNAME enters the battlefield with a +1/+1 counter on it for each Zombie card in your graveyard.
SVar:X:Count$LastStateGraveyard Zombie.YouCtrl
T:Mode$ SpellCast | ValidCard$ Zombie | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ Whenever you cast a Zombie spell, create a tapped 2/2 black Zombie creature token.
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ b_2_2_zombie | LegacyImage$ b 2 2 zombie soi | TokenTapped$ True | TokenOwner$ You

View File

@@ -2,7 +2,7 @@ Name:Golgari Grave-Troll
ManaCost:4 G
Types:Creature Troll Skeleton
PT:0/0
K:etbCounter:P1P1:X:no Condition:Golgari Grave-Troll enters the battlefield with a +1/+1 counter on it for each creature card in your graveyard.
K:etbCounter:P1P1:X:no Condition:CARDNAME enters the battlefield with a +1/+1 counter on it for each creature card in your graveyard.
A:AB$ Regenerate | Cost$ 1 SubCounter<1/P1P1> | SpellDescription$ Regenerate CARDNAME.
K:Dredge:6
SVar:X:Count$LastStateGraveyard Creature.YouCtrl

View File

@@ -2,7 +2,7 @@ Name:Ulasht, the Hate Seed
ManaCost:2 R G
Types:Legendary Creature Hellion Hydra
PT:0/0
K:etbCounter:P1P1:X:no Condition:Ulasht, the Hate Seed enters the battlefield with a +1/+1 counter on it for each other red creature you control and a +1/+1 counter on it for each other green creature you control.
K:etbCounter:P1P1:X:no Condition:CARDNAME enters the battlefield with a +1/+1 counter on it for each other red creature you control and a +1/+1 counter on it for each other green creature you control.
A:AB$ DealDamage | Cost$ 1 SubCounter<1/P1P1> | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ 1 | SpellDescription$ Ulasht deals 1 damage to target creature.
A:AB$ Token | Cost$ 1 SubCounter<1/P1P1> | TokenAmount$ 1 | TokenScript$ g_1_1_saproling | LegacyImage$ g 1 1 saproling gpt | TokenOwner$ You | SpellDescription$ Create a 1/1 green Saproling creature token.
SVar:X:Count$LastStateBattlefield Creature.YouCtrl+Red+Other/Plus.B

View File

@@ -2,7 +2,7 @@ Name:Unbreathing Horde
ManaCost:2 B
Types:Creature Zombie
PT:0/0
K:etbCounter:P1P1:X:no Condition:Unbreathing Horde enters the battlefield with a +1/+1 counter on it for each other Zombie you control and each Zombie card in your graveyard.
K:etbCounter:P1P1:X:no Condition:CARDNAME enters the battlefield with a +1/+1 counter on it for each other Zombie you control and each Zombie card in your graveyard.
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidTarget$ Card.Self | ReplaceWith$ DBRemoveCounters | PreventionEffect$ True | Description$ If damage would be dealt to CARDNAME, prevent that damage. Remove a +1/+1 counter from CARDNAME.
SVar:DBRemoveCounters:DB$ RemoveCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
SVar:X:Count$LastStateBattlefield Zombie.YouCtrl/Plus.Y

View File

@@ -0,0 +1,10 @@
Name:Towering Titan
ManaCost:4 G G
Types:Creature Giant
PT:0/0
K:etbCounter:P1P1:X:no Condition:CARDNAME enters the battlefield with X +1/+1 counters on it, where X is the total toughness of other creatures you control.
SVar:X:Count$LastStateBattlefieldTotalToughness Creature.Other+YouCtrl
A:SP$ PumpAll | Cost$ Sac<1/Creature.withDefender/creature with defender> | ValidCards$ Creature | KW$ Trample | SpellDescription$ All creatures gain trample until end of turn.
SVar:NeedsToPlayVar:Z GE3
SVar:Z:Count$Valid Creature.YouCtrl+toughnessGE2
Oracle:Towering Titan enters the battlefield with X +1/+1 counters on it, where X is the total toughness of other creatures you control.\nSacrifice a creature with defender: All creatures gain trample until end of turn.