From aad519f8cbeb6291230f9a61bff3268b049f0ae4 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 30 Jun 2021 08:43:40 -0400 Subject: [PATCH] [AFR] Implemented You Hear Something on Watch --- .../mage/cards/y/YouHearSomethingOnWatch.java | 41 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/y/YouHearSomethingOnWatch.java diff --git a/Mage.Sets/src/mage/cards/y/YouHearSomethingOnWatch.java b/Mage.Sets/src/mage/cards/y/YouHearSomethingOnWatch.java new file mode 100644 index 0000000000..e3a7e3c3a8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/y/YouHearSomethingOnWatch.java @@ -0,0 +1,41 @@ +package mage.cards.y; + +import mage.abilities.Mode; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.target.common.TargetAttackingCreature; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class YouHearSomethingOnWatch extends CardImpl { + + public YouHearSomethingOnWatch(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); + + // Choose one — + // • Rouse the Party — Creatures you control get +1/+1 until end of turn. + this.getSpellAbility().addEffect(new BoostControlledEffect(1, 1, Duration.EndOfTurn)); + this.getSpellAbility().getModes().getMode().withFlavorWord("Rouse the Party"); + + // • Set Off Traps — This spell deals 5 damage to target attacking creature. + Mode mode = new Mode(new DamageTargetEffect(5, "this spell")); + mode.addTarget(new TargetAttackingCreature()); + this.getSpellAbility().addMode(mode.withFlavorWord("Set Off Traps")); + } + + private YouHearSomethingOnWatch(final YouHearSomethingOnWatch card) { + super(card); + } + + @Override + public YouHearSomethingOnWatch copy() { + return new YouHearSomethingOnWatch(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 0ffd80fc6e..c16ee52dcc 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -68,6 +68,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Trelasarra Moon Dancer", 236, Rarity.UNCOMMON, mage.cards.t.TrelasarraMoonDancer.class)); cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class)); cards.add(new SetCardInfo("You Find the Villains' Lair", 84, Rarity.COMMON, mage.cards.y.YouFindTheVillainsLair.class)); + cards.add(new SetCardInfo("You Hear Something on Watch", 42, Rarity.COMMON, mage.cards.y.YouHearSomethingOnWatch.class)); cards.add(new SetCardInfo("You See a Guard Approach", 85, Rarity.COMMON, mage.cards.y.YouSeeAGuardApproach.class)); cards.add(new SetCardInfo("You See a Pair of Goblins", 170, Rarity.UNCOMMON, mage.cards.y.YouSeeAPairOfGoblins.class)); }