[AFR] Implemented You Find the Villains' Lair

This commit is contained in:
Evan Kranzler 2021-06-29 21:49:35 -04:00
parent b0214e939a
commit 7c7095e974
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.CounterTargetEffect;
import mage.abilities.effects.common.DrawDiscardControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.TargetSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class YouFindTheVillainsLair extends CardImpl {
public YouFindTheVillainsLair(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}{U}");
// Choose one
// Foil Their Scheme Counter target spell.
this.getSpellAbility().addEffect(new CounterTargetEffect());
this.getSpellAbility().addTarget(new TargetSpell());
this.getSpellAbility().getEffects().setFlavorWord("Foil Their Scheme");
// Learn Their Secrets Draw two cards, then discard two cards.
this.getSpellAbility().addMode(new Mode(
new DrawDiscardControllerEffect(2, 2)
).setFlavorWord("Learn Their Secrts"));
}
private YouFindTheVillainsLair(final YouFindTheVillainsLair card) {
super(card);
}
@Override
public YouFindTheVillainsLair copy() {
return new YouFindTheVillainsLair(this);
}
}

View file

@ -56,6 +56,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
cards.add(new SetCardInfo("Tiamat", 235, Rarity.MYTHIC, mage.cards.t.Tiamat.class));
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 See a Guard Approach", 85, Rarity.COMMON, mage.cards.y.YouSeeAGuardApproach.class));
}
}