mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
[LCI] Implement Over the Edge
This commit is contained in:
parent
8570170003
commit
d1fd7b0270
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/o/OverTheEdge.java
Normal file
42
Mage.Sets/src/mage/cards/o/OverTheEdge.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.keyword.ExploreTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OverTheEdge extends CardImpl {
|
||||
|
||||
public OverTheEdge(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
|
||||
|
||||
// Choose one --
|
||||
// * Destroy target artifact or enchantment.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
|
||||
// * Target creature you control explores, then it explores again.
|
||||
this.getSpellAbility().addMode(new Mode(new ExploreTargetEffect(false))
|
||||
.addEffect(new ExploreTargetEffect().setText(", then it explores again"))
|
||||
.addTarget(new TargetControlledCreaturePermanent()));
|
||||
}
|
||||
|
||||
private OverTheEdge(final OverTheEdge card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OverTheEdge copy() {
|
||||
return new OverTheEdge(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -179,6 +179,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Oteclan Landmark", 29, Rarity.COMMON, mage.cards.o.OteclanLandmark.class));
|
||||
cards.add(new SetCardInfo("Oteclan Levitator", 29, Rarity.COMMON, mage.cards.o.OteclanLevitator.class));
|
||||
cards.add(new SetCardInfo("Out of Air", 69, Rarity.COMMON, mage.cards.o.OutOfAir.class));
|
||||
cards.add(new SetCardInfo("Over the Edge", 205, Rarity.COMMON, mage.cards.o.OverTheEdge.class));
|
||||
cards.add(new SetCardInfo("Palani's Hatcher", 237, Rarity.RARE, mage.cards.p.PalanisHatcher.class));
|
||||
cards.add(new SetCardInfo("Panicked Altisaur", 159, Rarity.COMMON, mage.cards.p.PanickedAltisaur.class));
|
||||
cards.add(new SetCardInfo("Pathfinding Axejaw", 206, Rarity.COMMON, mage.cards.p.PathfindingAxejaw.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue