Zaxara (C20)

This commit is contained in:
Tim Mocny
2020-04-24 14:33:18 +00:00
committed by Michael Kamensky
parent ef208f3442
commit f02ab6c073
4 changed files with 18 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ public enum AbilityKey {
Blockers("Blockers"),
CastSA("CastSA"),
CastSACMC("CastSACMC"),
CastSAX("CastSAX"),
Card("Card"),
Cards("Cards"),
CardLKI("CardLKI"),

View File

@@ -278,7 +278,8 @@ public class TriggerSpellAbilityCast extends Trigger {
AbilityKey.Activator,
AbilityKey.CurrentStormCount,
AbilityKey.CurrentCastSpells,
AbilityKey.CastSACMC
AbilityKey.CastSACMC,
AbilityKey.CastSAX
);
}

View File

@@ -293,6 +293,7 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
runParams.put(AbilityKey.Activator, sp.getActivatingPlayer());
runParams.put(AbilityKey.CastSA, si.getSpellAbility(true));
runParams.put(AbilityKey.CastSACMC, si.getSpellAbility(true).getHostCard().getCMC());
runParams.put(AbilityKey.CastSAX, si.getSpellAbility(true).getHostCard().getXManaCostPaid());
runParams.put(AbilityKey.CurrentStormCount, thisTurnCast.size());
runParams.put(AbilityKey.CurrentCastSpells, new CardCollection(thisTurnCast));
game.getTriggerHandler().runTrigger(TriggerType.SpellAbilityCast, runParams, true);

View File

@@ -0,0 +1,14 @@
Name:Zaxara, the Exemplary
ManaCost:1 B G U
Types:Legendary Creature Nightmare Hydra
PT:2/3
K:Deathtouch
A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 2 | SpellDescription$ Add two mana of any one color.
T:Mode$ SpellCast | ValidCard$ Card.hasXCost | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ Whenever you cast a spell with {X} in its mana cost, create a 0/0 green Hydra creature token, then put X +1/+1 counters on it.
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ g_0_0_hydra | TokenOwner$ You | RememberTokens$ True | SubAbility$ DBPutCounter
SVar:DBPutCounter:DB$ PutCounter | Defined$ Remembered | CounterType$ P1P1 | CounterNum$ X | References$ X | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:TriggerCount$CastSAX
DeckHas:Ability$Token
AI:RemoveDeck:Random
Oracle:Deathtouch\n{T}: Add two mana of any one color.\nWhenever you cast a spell with {X} in its mana cost, create a 0/0 green Hydra creature token, then put X +1/+1 counters on it.