From e73767ecbe57499becd4411b70e348264c40b4dd Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Sep 2020 21:18:15 -0400 Subject: [PATCH] [ZNR] Implemented Risen Riptide --- Mage.Sets/src/mage/cards/r/RisenRiptide.java | 49 ++++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RisenRiptide.java diff --git a/Mage.Sets/src/mage/cards/r/RisenRiptide.java b/Mage.Sets/src/mage/cards/r/RisenRiptide.java new file mode 100644 index 0000000000..edd9b551e5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RisenRiptide.java @@ -0,0 +1,49 @@ +package mage.cards.r; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.continuous.SetPowerToughnessSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubLayer; +import mage.constants.SubType; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.KickedPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RisenRiptide extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("a kicked spell"); + + static { + filter.add(KickedPredicate.instance); + } + + public RisenRiptide(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(0); + this.toughness = new MageInt(5); + + // Whenever you cast a kicked spell, Risen Riptide has base power and toughness 5/5 until end of turn. + this.addAbility(new SpellCastControllerTriggeredAbility(new SetPowerToughnessSourceEffect( + 5, 5, Duration.EndOfTurn, SubLayer.SetPT_7b + ).setText("{this} has base power and toughness 5/5 until end of turn"), filter, false)); + } + + private RisenRiptide(final RisenRiptide card) { + super(card); + } + + @Override + public RisenRiptide copy() { + return new RisenRiptide(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index a59b29d1ec..cd4f2860c6 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -169,6 +169,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Prowling Felidar", 34, Rarity.COMMON, mage.cards.p.ProwlingFelidar.class)); cards.add(new SetCardInfo("Rabid Bite", 199, Rarity.COMMON, mage.cards.r.RabidBite.class)); cards.add(new SetCardInfo("Ravager's Mace", 235, Rarity.UNCOMMON, mage.cards.r.RavagersMace.class)); + cards.add(new SetCardInfo("Risen Riptide", 73, Rarity.COMMON, mage.cards.r.RisenRiptide.class)); cards.add(new SetCardInfo("Riverglide Pathway", 264, Rarity.RARE, mage.cards.r.RiverglidePathway.class)); cards.add(new SetCardInfo("Rockslide Sorcerer", 154, Rarity.UNCOMMON, mage.cards.r.RockslideSorcerer.class)); cards.add(new SetCardInfo("Roil Eruption", 155, Rarity.COMMON, mage.cards.r.RoilEruption.class));