Rottenmouth Viper (#5704)

This commit is contained in:
Glorax
2024-08-02 01:19:02 -07:00
committed by GitHub
parent 51c78e952a
commit 3b29804568
2 changed files with 25 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ public enum CounterEnumType {
LOYALTY("LOYAL", 198, 198, 198), LOYALTY("LOYAL", 198, 198, 198),
ACORN("ACORN", 139,69,19), ACORN("ACORN", 139, 69, 19),
AEGIS("AEGIS", 207, 207, 207), AEGIS("AEGIS", 207, 207, 207),
@@ -50,19 +50,21 @@ public enum CounterEnumType {
AWAKENING("AWAKE", 0, 231, 79), AWAKENING("AWAKE", 0, 231, 79),
BLAZE("BLAZE", 255, 124, 82), BLAZE("BLAZE", 255, 124, 82),
BLESSING("BLESS", 251, 0, 94), BLESSING("BLESS", 251, 0, 94),
BLIGHT("BLGHT", 130, 115, 160),
BLOOD("BLOOD", 255, 108, 111), BLOOD("BLOOD", 255, 108, 111),
BLOODLINE("BLDLN", 224, 44, 44), BLOODLINE("BLDLN", 224, 44, 44),
BLOODSTAIN("BLDST", 224, 44, 44), BLOODSTAIN("BLDST", 224, 44, 44),
BORE("BORE", 98, 47, 34), BORE("BORE", 98, 47, 34),
BOUNTY("BOUNT", 255, 158, 0), BOUNTY("BOUNT", 255, 158, 0),
BRAIN("BRAIN", 197, 62, 212), BRAIN("BRAIN", 197, 62, 212),
BRIBERY("BRIBE", 172, 201, 235), BRIBERY("BRIBE", 172, 201, 235),

View File

@@ -0,0 +1,19 @@
Name:Rottenmouth Viper
ManaCost:5 B
Types:Creature Elemental Snake
PT:6/6
A:SP$ PermanentCreature | Cost$ 5 B Sac<X/Permanent.nonLand/nonland permanent> | AILogic$ SacToReduceCost
S:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ X | EffectZone$ All | Relative$ True | Description$ As an additional cost to cast this spell, you may sacrifice any number of nonland permanents. This spell costs {1} less to cast for each permanent sacrificed this way.
SVar:X:Count$xPaid
SVar:AIPreference:SacCost$Artifact.token+nonLegendary,Creature.token+powerLE2+toughnessLE2,Creature.cmcLE2+powerLE2+toughnessLE2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ Whenever CARDNAME enters or attacks, put a blight counter on it. Then for each blight counter on it, each opponent loses 4 life unless that player sacrifices a nonland permanent or discards a card.
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPutCounter | Secondary$ True | TriggerDescription$ Whenever CARDNAME enters or attacks, put a blight counter on it. Then for each blight counter on it, each opponent loses 4 life unless that player sacrifices a nonland permanent or discards a card.
SVar:DBPutCounter:DB$ PutCounter | CounterType$ BLIGHT | CounterNum$ 1 | SubAbility$ DBRepeat
SVar:DBRepeat:DB$ Repeat | MaxRepeat$ Y | RepeatSubAbility$ RepeatTorment | AILogic$ MaxY | StackDescription$ Each opponent loses 4 life unless that player sacrifices a nonland permanent or discards a card.
SVar:RepeatTorment:DB$ GenericChoice | Defined$ Opponent | TempRemember$ Chooser | Choices$ SacNonland,Discard | FallbackAbility$ LoseLifeFallback | AILogic$ PayUnlessCost
SVar:Discard:DB$ LoseLife | Defined$ Remembered | LifeAmount$ 4 | UnlessCost$ Discard<1/Card> | UnlessPayer$ Remembered | SpellDescription$ You lose 4 life unless you discard a card
SVar:SacNonland:DB$ LoseLife | Defined$ Remembered | LifeAmount$ 4 | UnlessCost$ Sac<1/Permanent.nonLand/nonland permanent> | UnlessPayer$ Remembered | SpellDescription$ You lose 4 life unless you sacrifice a nonland permanent
SVar:LoseLifeFallback:DB$ LoseLife | Defined$ Remembered | LifeAmount$ 4
SVar:Y:Count$CardCounters.BLIGHT
DeckHas:Ability$Sacrifice|Counters
Oracle:As an additional cost to cast this spell, you may sacrifice any number of nonland permanents. This spell costs {1} less to cast for each permanent sacrificed this way.\nWhenever Rottenmouth Viper enters or attacks, put a blight counter on it. Then for each blight counter on it, each opponent loses 4 life unless that player sacrifices a nonland permanent or discards a card.