From 37d17108b3b9d497527979be9180873472d1b5c3 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Sep 2020 10:37:34 -0400 Subject: [PATCH] [ZNR] Implemented Rockslide Sorcerer --- .../src/mage/cards/r/RockslideSorcerer.java | 45 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RockslideSorcerer.java diff --git a/Mage.Sets/src/mage/cards/r/RockslideSorcerer.java b/Mage.Sets/src/mage/cards/r/RockslideSorcerer.java new file mode 100644 index 0000000000..cfa3f8662b --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RockslideSorcerer.java @@ -0,0 +1,45 @@ +package mage.cards.r; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.target.common.TargetAnyTarget; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RockslideSorcerer extends CardImpl { + + public RockslideSorcerer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Whenever you cast an instant, sorcery, or Wizard spell, Rockslide Sorcerer deals 1 damage to any target. + Ability ability = new SpellCastControllerTriggeredAbility( + new DamageTargetEffect(1), StaticFilters.FILTER_SPELL_INSTANT_SORCERY_WIZARD, false + ); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability); + } + + private RockslideSorcerer(final RockslideSorcerer card) { + super(card); + } + + @Override + public RockslideSorcerer copy() { + return new RockslideSorcerer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index fffdf127fe..b9fb903448 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -132,6 +132,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("Ravager's Mace", 235, Rarity.UNCOMMON, mage.cards.r.RavagersMace.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("Roiling Regrowth", 201, Rarity.UNCOMMON, mage.cards.r.RoilingRegrowth.class)); cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class)); cards.add(new SetCardInfo("Sea Gate Colossus", 251, Rarity.COMMON, mage.cards.s.SeaGateColossus.class));