forked from External/mage
[AFR] Implemented You Happen On a Glade (#7966)
This commit is contained in:
parent
01c51f6939
commit
2125958f73
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/y/YouHappenOnAGlade.java
Normal file
49
Mage.Sets/src/mage/cards/y/YouHappenOnAGlade.java
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.y;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterPermanentCard;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Raphael-Schulz
|
||||
*/
|
||||
public final class YouHappenOnAGlade extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterPermanentCard("permanent card from your graveyard");
|
||||
|
||||
public YouHappenOnAGlade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||
|
||||
// Choose one —
|
||||
// • Journey On — Search your library for up to two basic land cards, reveal them, put them into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(
|
||||
new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(0, 2, StaticFilters.FILTER_CARD_BASIC_LANDS), true, true)
|
||||
);
|
||||
this.getSpellAbility().withFirstModeFlavorWord("Journey On");
|
||||
|
||||
// • Make Camp — Return target permanent card from your graveyard to your hand.
|
||||
Mode mode = new Mode((new ReturnFromGraveyardToHandTargetEffect()));
|
||||
mode.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.getSpellAbility().addMode(mode.withFlavorWord("Make Camp"));
|
||||
}
|
||||
|
||||
private YouHappenOnAGlade(final YouHappenOnAGlade card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YouHappenOnAGlade copy() {
|
||||
return new YouHappenOnAGlade(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -136,6 +136,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("You Come to the Gnoll Camp", 168, Rarity.COMMON, mage.cards.y.YouComeToTheGnollCamp.class));
|
||||
cards.add(new SetCardInfo("You Find a Cursed Idol", 213, Rarity.COMMON, mage.cards.y.YouFindACursedIdol.class));
|
||||
cards.add(new SetCardInfo("You Find the Villains' Lair", 84, Rarity.COMMON, mage.cards.y.YouFindTheVillainsLair.class));
|
||||
cards.add(new SetCardInfo("You Happen On a Glade", 214, Rarity.UNCOMMON, mage.cards.y.YouHappenOnAGlade.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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue