From 102dc5e045c8fbcd42637cf728b8abda5d319b91 Mon Sep 17 00:00:00 2001 From: xenohedron Date: Wed, 23 Aug 2023 23:49:52 -0400 Subject: [PATCH] Implement [WOE] Intrepid Trufflesnout --- .../mage/cards/i/IntrepidTrufflesnout.java | 45 +++++++++++++++++++ Mage.Sets/src/mage/sets/WildsOfEldraine.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/IntrepidTrufflesnout.java diff --git a/Mage.Sets/src/mage/cards/i/IntrepidTrufflesnout.java b/Mage.Sets/src/mage/cards/i/IntrepidTrufflesnout.java new file mode 100644 index 00000000000..2e9acbba457 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IntrepidTrufflesnout.java @@ -0,0 +1,45 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.AttacksAloneSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.AdventureCard; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.game.permanent.token.FoodToken; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author xenohedron + */ +public final class IntrepidTrufflesnout extends AdventureCard { + + public IntrepidTrufflesnout(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.INSTANT}, "{1}{G}", "Go Hog Wild", "{1}{G}"); + + this.subtype.add(SubType.BOAR); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // Whenever Intrepid Trufflesnout attacks alone, create a Food token. + this.addAbility(new AttacksAloneSourceTriggeredAbility(new CreateTokenEffect(new FoodToken()))); + + // Target creature gets +2/+2 until end of turn. + this.getSpellCard().getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn)); + this.getSpellCard().getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private IntrepidTrufflesnout(final IntrepidTrufflesnout card) { + super(card); + } + + @Override + public IntrepidTrufflesnout copy() { + return new IntrepidTrufflesnout(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WildsOfEldraine.java b/Mage.Sets/src/mage/sets/WildsOfEldraine.java index d3eb98d8a83..2f542cc7989 100644 --- a/Mage.Sets/src/mage/sets/WildsOfEldraine.java +++ b/Mage.Sets/src/mage/sets/WildsOfEldraine.java @@ -98,6 +98,7 @@ public final class WildsOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Imodane, the Pyrohammer", 137, Rarity.RARE, mage.cards.i.ImodaneThePyrohammer.class)); cards.add(new SetCardInfo("Ingenious Prodigy", 56, Rarity.RARE, mage.cards.i.IngeniousProdigy.class)); cards.add(new SetCardInfo("Into the Fae Court", 57, Rarity.COMMON, mage.cards.i.IntoTheFaeCourt.class)); + cards.add(new SetCardInfo("Intrepid Trufflesnout", 320, Rarity.UNCOMMON, mage.cards.i.IntrepidTrufflesnout.class)); cards.add(new SetCardInfo("Island", 263, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Johann's Stopgap", 58, Rarity.COMMON, mage.cards.j.JohannsStopgap.class)); cards.add(new SetCardInfo("Johann, Apprentice Sorcerer", 207, Rarity.UNCOMMON, mage.cards.j.JohannApprenticeSorcerer.class));