From 3b29804568255b246522ca67380ac0bc28bdc790 Mon Sep 17 00:00:00 2001 From: Glorax <114269106+Glorax@users.noreply.github.com> Date: Fri, 2 Aug 2024 01:19:02 -0700 Subject: [PATCH] Rottenmouth Viper (#5704) --- .../java/forge/game/card/CounterEnumType.java | 10 ++++++---- .../upcoming/rottenmouth_viper.txt | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 forge-gui/res/cardsfolder/upcoming/rottenmouth_viper.txt diff --git a/forge-game/src/main/java/forge/game/card/CounterEnumType.java b/forge-game/src/main/java/forge/game/card/CounterEnumType.java index ca9bd35471a..0d289ba605f 100644 --- a/forge-game/src/main/java/forge/game/card/CounterEnumType.java +++ b/forge-game/src/main/java/forge/game/card/CounterEnumType.java @@ -35,7 +35,7 @@ public enum CounterEnumType { LOYALTY("LOYAL", 198, 198, 198), - ACORN("ACORN", 139,69,19), + ACORN("ACORN", 139, 69, 19), AEGIS("AEGIS", 207, 207, 207), @@ -50,19 +50,21 @@ public enum CounterEnumType { AWAKENING("AWAKE", 0, 231, 79), BLAZE("BLAZE", 255, 124, 82), - + BLESSING("BLESS", 251, 0, 94), + BLIGHT("BLGHT", 130, 115, 160), + BLOOD("BLOOD", 255, 108, 111), BLOODLINE("BLDLN", 224, 44, 44), - + BLOODSTAIN("BLDST", 224, 44, 44), BORE("BORE", 98, 47, 34), BOUNTY("BOUNT", 255, 158, 0), - + BRAIN("BRAIN", 197, 62, 212), BRIBERY("BRIBE", 172, 201, 235), diff --git a/forge-gui/res/cardsfolder/upcoming/rottenmouth_viper.txt b/forge-gui/res/cardsfolder/upcoming/rottenmouth_viper.txt new file mode 100644 index 00000000000..5305df56615 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/rottenmouth_viper.txt @@ -0,0 +1,19 @@ +Name:Rottenmouth Viper +ManaCost:5 B +Types:Creature Elemental Snake +PT:6/6 +A:SP$ PermanentCreature | Cost$ 5 B Sac | 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.