forked from External/mage
[TLA] Implement The Cave of Two Lovers
This commit is contained in:
parent
e47b17828b
commit
ac055bb808
2 changed files with 71 additions and 0 deletions
70
Mage.Sets/src/mage/cards/t/TheCaveOfTwoLovers.java
Normal file
70
Mage.Sets/src/mage/cards/t/TheCaveOfTwoLovers.java
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.common.SagaAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.effects.keyword.EarthbendTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SagaChapter;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.permanent.token.AllyToken;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.common.TargetControlledLandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TheCaveOfTwoLovers extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("a Mountain or Cave card");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.MOUNTAIN.getPredicate(),
|
||||
SubType.CAVE.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public TheCaveOfTwoLovers(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}");
|
||||
|
||||
this.subtype.add(SubType.SAGA);
|
||||
|
||||
// (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)
|
||||
SagaAbility sagaAbility = new SagaAbility(this);
|
||||
|
||||
// I -- Create two 1/1 white Ally creature tokens.
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_I,
|
||||
new CreateTokenEffect(new AllyToken(), 2)
|
||||
);
|
||||
|
||||
// II -- Search your library for a Mountain or Cave card, reveal it, put it into your hand, then shuffle.
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_II,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true
|
||||
));
|
||||
|
||||
// III -- Earthbend 3.
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_III,
|
||||
new EarthbendTargetEffect(3), new TargetControlledLandPermanent()
|
||||
);
|
||||
this.addAbility(sagaAbility);
|
||||
}
|
||||
|
||||
private TheCaveOfTwoLovers(final TheCaveOfTwoLovers card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheCaveOfTwoLovers copy() {
|
||||
return new TheCaveOfTwoLovers(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -146,6 +146,7 @@ public final class AvatarTheLastAirbender extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Swamp", 284, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Swamp", 289, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Swamp", 294, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Cave of Two Lovers", 126, Rarity.UNCOMMON, mage.cards.t.TheCaveOfTwoLovers.class));
|
||||
cards.add(new SetCardInfo("The Rise of Sozin", 117, Rarity.MYTHIC, mage.cards.t.TheRiseOfSozin.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Rise of Sozin", 356, Rarity.MYTHIC, mage.cards.t.TheRiseOfSozin.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Tiger-Seal", 318, Rarity.RARE, mage.cards.t.TigerSeal.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue