From cddbbd0dd9f2e8962354cd9f4019c9f8d5fce6bf Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 2 Sep 2020 15:59:52 -0400 Subject: [PATCH] [ZNR] Implemented Grotag Bug-Catcher --- .../src/mage/cards/g/GrotagBugCatcher.java | 47 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GrotagBugCatcher.java diff --git a/Mage.Sets/src/mage/cards/g/GrotagBugCatcher.java b/Mage.Sets/src/mage/cards/g/GrotagBugCatcher.java new file mode 100644 index 0000000000..22ed916fe4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GrotagBugCatcher.java @@ -0,0 +1,47 @@ +package mage.cards.g; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.dynamicvalue.common.PartyCount; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +/** + * @author TheElk801 + */ +public final class GrotagBugCatcher extends CardImpl { + + public GrotagBugCatcher(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.GOBLIN); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(1); + this.toughness = new MageInt(2); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Whenever Grotag Bug-Catcher attacks, it gets +1/+0 until end of turn for each creature in your party. + this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect( + PartyCount.instance, StaticValue.get(0), Duration.EndOfTurn, true + ), false)); + } + + private GrotagBugCatcher(final GrotagBugCatcher card) { + super(card); + } + + @Override + public GrotagBugCatcher copy() { + return new GrotagBugCatcher(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 4bc891a67f..7d19ddb382 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -85,6 +85,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Forest", 278, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Gnarlid Colony", 185, Rarity.COMMON, mage.cards.g.GnarlidColony.class)); cards.add(new SetCardInfo("Grimclimb Pathway", 259, Rarity.RARE, mage.cards.g.GrimclimbPathway.class)); + cards.add(new SetCardInfo("Grotag Bug-Catcher", 142, Rarity.COMMON, mage.cards.g.GrotagBugCatcher.class)); cards.add(new SetCardInfo("Into the Roil", 62, Rarity.COMMON, mage.cards.i.IntoTheRoil.class)); cards.add(new SetCardInfo("Island", 269, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class));