From d6d5d7f2b324a2c1c35d5bd8b91762ce375c192c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Krist=C3=B3f?= <20043803+balazskristof@users.noreply.github.com> Date: Thu, 15 May 2025 17:00:38 +0200 Subject: [PATCH] [FIC] Implement Gau, Feral Youth (#13632) --- Mage.Sets/src/mage/cards/g/GauFeralYouth.java | 75 +++++++++++++++++++ .../src/mage/sets/FinalFantasyCommander.java | 2 + 2 files changed, 77 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GauFeralYouth.java diff --git a/Mage.Sets/src/mage/cards/g/GauFeralYouth.java b/Mage.Sets/src/mage/cards/g/GauFeralYouth.java new file mode 100644 index 00000000000..27f682ac9bc --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GauFeralYouth.java @@ -0,0 +1,75 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.condition.Condition; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerValue; +import mage.abilities.effects.common.DamagePlayersEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.triggers.BeginningOfEndStepTriggeredAbility; +import mage.constants.*; +import mage.counters.CounterType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.game.Game; +import mage.watchers.common.CardsLeftGraveyardWatcher; + +/** + * @author balazskristof + */ +public final class GauFeralYouth extends CardImpl { + + public GauFeralYouth(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.BERSERKER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Rage -- Whenever Gau attacks, put a +1/+1 counter on it. + this.addAbility(new AttacksTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance())).withFlavorWord("Rage")); + + // At the beginning of each end step, if a card left your graveyard this turn, Gau deals damage equal to its power to each opponent. + this.addAbility( + new BeginningOfEndStepTriggeredAbility( + TargetController.ANY, + new DamagePlayersEffect(SourcePermanentPowerValue.NOT_NEGATIVE, TargetController.OPPONENT) + .setText("{this} deals damage equal to its power to each opponent"), + false, + GauFeralYouthCondition.instance + ), + new CardsLeftGraveyardWatcher() + ); + } + + private GauFeralYouth(final GauFeralYouth card) { + super(card); + } + + @Override + public GauFeralYouth copy() { + return new GauFeralYouth(this); + } +} + +enum GauFeralYouthCondition implements Condition { + instance; + + @Override + public boolean apply(Game game, Ability source) { + return !game + .getState() + .getWatcher(CardsLeftGraveyardWatcher.class) + .getCardsThatLeftGraveyard(source.getControllerId(), game) + .isEmpty(); + } + + @Override + public String toString() { + return "if a card left your graveyard this turn"; + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java index 82c3d9e9fbd..07c33eea321 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java +++ b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java @@ -149,6 +149,8 @@ public final class FinalFantasyCommander extends ExpansionSet { cards.add(new SetCardInfo("Furious Rise", 294, Rarity.UNCOMMON, mage.cards.f.FuriousRise.class)); cards.add(new SetCardInfo("Furycalm Snarl", 397, Rarity.RARE, mage.cards.f.FurycalmSnarl.class)); cards.add(new SetCardInfo("Game Trail", 398, Rarity.RARE, mage.cards.g.GameTrail.class)); + cards.add(new SetCardInfo("Gau, Feral Youth", 152, Rarity.RARE, mage.cards.g.GauFeralYouth.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Gau, Feral Youth", 55, Rarity.RARE, mage.cards.g.GauFeralYouth.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("General Leo Cristophe", 135, Rarity.RARE, mage.cards.g.GeneralLeoCristophe.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("General Leo Cristophe", 20, Rarity.RARE, mage.cards.g.GeneralLeoCristophe.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Generous Patron", 305, Rarity.RARE, mage.cards.g.GenerousPatron.class));