From 2220fe3c7d6e042409f91203631958dc377f5e58 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 26 Jun 2019 07:20:48 -0400 Subject: [PATCH] Implemented Gnarlback Rhino --- .../src/mage/cards/g/GnarlbackRhino.java | 41 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2020.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GnarlbackRhino.java diff --git a/Mage.Sets/src/mage/cards/g/GnarlbackRhino.java b/Mage.Sets/src/mage/cards/g/GnarlbackRhino.java new file mode 100644 index 0000000000..198ec210d7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GnarlbackRhino.java @@ -0,0 +1,41 @@ +package mage.cards.g; + +import mage.MageInt; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.HeroicAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GnarlbackRhino extends CardImpl { + + public GnarlbackRhino(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}"); + + this.subtype.add(SubType.RHINO); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Whenever you cast a spell that targets Gnarlback Rhino, draw a card. + this.addAbility(new HeroicAbility(new DrawCardSourceControllerEffect(1), false, false)); + } + + private GnarlbackRhino(final GnarlbackRhino card) { + super(card); + } + + @Override + public GnarlbackRhino copy() { + return new GnarlbackRhino(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index c265f64d1a..fe05337f78 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -145,6 +145,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Fry", 140, Rarity.UNCOMMON, mage.cards.f.Fry.class)); cards.add(new SetCardInfo("Gift of Paradise", 173, Rarity.COMMON, mage.cards.g.GiftOfParadise.class)); cards.add(new SetCardInfo("Glaring Aegis", 18, Rarity.COMMON, mage.cards.g.GlaringAegis.class)); + cards.add(new SetCardInfo("Gnarlback Rhino", 300, Rarity.UNCOMMON, mage.cards.g.GnarlbackRhino.class)); cards.add(new SetCardInfo("Goblin Bird-Grabber", 142, Rarity.COMMON, mage.cards.g.GoblinBirdGrabber.class)); cards.add(new SetCardInfo("Goblin Ringleader", 143, Rarity.UNCOMMON, mage.cards.g.GoblinRingleader.class)); cards.add(new SetCardInfo("Goblin Smuggler", 144, Rarity.COMMON, mage.cards.g.GoblinSmuggler.class));