[AFR] Implemented You Hear Something on Watch

This commit is contained in:
Evan Kranzler 2021-06-30 08:43:40 -04:00
parent 4953472e20
commit aad519f8cb
2 changed files with 42 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));
}