From 80b3065628cb60a5041f609778063c926b2ee1ec Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Sun, 30 Oct 2022 18:45:21 -0500 Subject: [PATCH] [BRO] Implemented Gaea's Courser --- Mage.Sets/src/mage/cards/g/GaeasCourser.java | 49 ++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GaeasCourser.java diff --git a/Mage.Sets/src/mage/cards/g/GaeasCourser.java b/Mage.Sets/src/mage/cards/g/GaeasCourser.java new file mode 100644 index 0000000000..68aea0a2ea --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GaeasCourser.java @@ -0,0 +1,49 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.CardsInControllerGraveyardCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +/** + * + * @author weirddan455 + */ +public final class GaeasCourser extends CardImpl { + + private static final Condition condition + = new CardsInControllerGraveyardCondition(3, StaticFilters.FILTER_CARD_CREATURE); + + public GaeasCourser(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}"); + + this.subtype.add(SubType.CENTAUR); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + + // Whenever Gaea's Courser attacks, if there are three or more creature cards in your graveyard, draw a card. + this.addAbility(new ConditionalInterveningIfTriggeredAbility( + new AttacksTriggeredAbility(new DrawCardSourceControllerEffect(1)), + condition, + "Whenever {this} attacks, if there are there or more creature cards in your graveyard, draw a card." + )); + } + + private GaeasCourser(final GaeasCourser card) { + super(card); + } + + @Override + public GaeasCourser copy() { + return new GaeasCourser(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index b224ed678f..eb1daa37f4 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -37,6 +37,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Drafna, Founder of Lat-Nam", 47, Rarity.RARE, mage.cards.d.DrafnaFounderOfLatNam.class)); cards.add(new SetCardInfo("Feldon, Ronom Excavator", 135, Rarity.RARE, mage.cards.f.FeldonRonomExcavator.class)); cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class)); cards.add(new SetCardInfo("Giant Growth", 183, Rarity.COMMON, mage.cards.g.GiantGrowth.class)); cards.add(new SetCardInfo("Go for the Throat", 102, Rarity.UNCOMMON, mage.cards.g.GoForTheThroat.class)); cards.add(new SetCardInfo("Hall of Tagsin", 263, Rarity.RARE, mage.cards.h.HallOfTagsin.class));