brimaz_blight_of_oreskos.txt

This commit is contained in:
Northmoc
2023-03-29 20:16:02 -04:00
parent 3519dba3e1
commit 3cd3dc7e9d
4 changed files with 27 additions and 15 deletions

View File

@@ -36,17 +36,16 @@ public class IncubateEffect extends TokenEffectBase {
final Card card = sa.getHostCard(); final Card card = sa.getHostCard();
final Game game = card.getGame(); final Game game = card.getGame();
final Player activator = sa.getActivatingPlayer(); final Player activator = sa.getActivatingPlayer();
final String amtString = sa.getParamOrDefault("Amount", "1");
final int times = AbilityUtils.calculateAmount(card, sa.getParamOrDefault("Times", "1"), sa); final int times = AbilityUtils.calculateAmount(card, sa.getParamOrDefault("Times", "1"), sa);
// create incubator token sa.putParam("WithCountersType", "P1P1");
sa.putParam("WithCountersAmount", sa.getParamOrDefault("Amount", "1"));
for (int i = 0; i < times; i++) {
CardZoneTable triggerList = new CardZoneTable(); CardZoneTable triggerList = new CardZoneTable();
MutableBoolean combatChanged = new MutableBoolean(false); MutableBoolean combatChanged = new MutableBoolean(false);
sa.putParam("WithCountersType", "P1P1"); makeTokenTable(makeTokenTableInternal(activator, "incubator_c_0_0_a_phyrexian", 1, sa), false,
sa.putParam("WithCountersAmount", amtString);
makeTokenTable(makeTokenTableInternal(activator, "incubator", times, sa), false,
triggerList, combatChanged, sa); triggerList, combatChanged, sa);
triggerList.triggerChangesZoneAll(game, sa); triggerList.triggerChangesZoneAll(game, sa);
@@ -59,4 +58,5 @@ public class IncubateEffect extends TokenEffectBase {
game.fireEvent(new GameEventCombatChanged()); game.fireEvent(new GameEventCombatChanged());
} }
} }
}
} }

View File

@@ -0,0 +1,12 @@
Name:Brimaz, Blight of Oreskos
ManaCost:2 W B
Types:Legendary Creature Phyrexian Cat
PT:3/4
T:Mode$ SpellCast | ValidCard$ Creature.Phyrexian,Creature.Artifact | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigIncubate | TriggerDescription$ Whenever you cast a Phyrexian creature or artifact creature spell, incubate X, where X is that spell's mana value. (Create an Incubator token with X +1/+1 counters on it and "2: Transform this artifact." It transforms into a 0/0 Phyrexian artifact creature.)
SVar:TrigIncubate:DB$ Incubate | Amount$ TriggeredStackInstance$CardManaCostLKI
T:Mode$ Phase | Phase$ End of Turn | TriggerZones$ Battlefield | CheckSVar$ X | SVarCompare$ GE1 | Execute$ TrigProliferate | TriggerDescription$ At the beginning of each end step, if a Phyrexian died under your control this turn, proliferate.
SVar:TrigProliferate:DB$ Proliferate
SVar:X:Count$ThisTurnEntered_Graveyard_from_Battlefield_Phyrexian.YouCtrl
DeckHints:Type$Phyrexian & Ability$Sacrifice
DeckHas:Ability$Token|Counters & Type$Artifact
Oracle:Whenever you cast a Phyrexian creature or artifact creature spell, incubate X, where X is that spell's mana value. (Create an Incubator token with X +1/+1 counters on it and "2: Transform this artifact." It transforms into a 0/0 Phyrexian artifact creature.)\nAt the beginning of each end step, if a Phyrexian died under your control this turn, proliferate.

View File

@@ -4,7 +4,7 @@ Types:Legendary Creature Phyrexian Zombie Elf
PT:3/5 PT:3/5
T:Mode$ Phase | Phase$ BeginCombat | ValidPlayer$ You | Execute$ TrigCharm | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of combat on your turn, ABILITY T:Mode$ Phase | Phase$ BeginCombat | ValidPlayer$ You | Execute$ TrigCharm | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of combat on your turn, ABILITY
SVar:TrigCharm:DB$ Charm | Choices$ Incubate,Transform,PumpAll | CharmNum$ 1 SVar:TrigCharm:DB$ Charm | Choices$ Incubate,Transform,PumpAll | CharmNum$ 1
SVar:Incubate:DB$ Incubate | Amount$ 2 | Times$ 2 | SpellDescription$ Incubate 2 twice. (To incubate 2, create an Incubator token with three +1/+1 counters on it and "{2}: Transform this artifact." It transforms into a 0/0 Phyrexian artifact creature.) SVar:Incubate:DB$ Incubate | Amount$ 2 | Times$ 2 | SpellDescription$ Incubate 2 twice. (To incubate 2, create an Incubator token with two +1/+1 counters on it and "{2}: Transform this artifact." It transforms into a 0/0 Phyrexian artifact creature.)
SVar:Transform:DB$ SetState | Defined$ Valid Incubator.token+YouCtrl | Mode$ Transform | SpellDescription$ Transform all Incubator tokens you control. SVar:Transform:DB$ SetState | Defined$ Valid Incubator.token+YouCtrl | Mode$ Transform | SpellDescription$ Transform all Incubator tokens you control.
SVar:PumpAll:DB$ PumpAll | ValidCards$ Phyrexian.YouCtrl | KW$ First Strike & Deathtouch | SpellDescription$ Phyrexians you control gain first strike and deathtouch until end of turn. SVar:PumpAll:DB$ PumpAll | ValidCards$ Phyrexian.YouCtrl | KW$ First Strike & Deathtouch | SpellDescription$ Phyrexians you control gain first strike and deathtouch until end of turn.
DeckHas:Ability$Token|Counters & Type$Artifact DeckHas:Ability$Token|Counters & Type$Artifact