mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
[VOW] Implemented Geistlight Snare
This commit is contained in:
parent
6d488d9900
commit
7adfebdf9f
2 changed files with 62 additions and 0 deletions
61
Mage.Sets/src/mage/cards/g/GeistlightSnare.java
Normal file
61
Mage.Sets/src/mage/cards/g/GeistlightSnare.java
Normal file
|
@ -0,0 +1,61 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CounterUnlessPaysEffect;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GeistlightSnare extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent(SubType.SPIRIT);
|
||||
private static final Condition condition1 = new PermanentsOnTheBattlefieldCondition(filter);
|
||||
private static final Condition condition2 = new PermanentsOnTheBattlefieldCondition(StaticFilters.FILTER_ENCHANTMENT_PERMANENT);
|
||||
private static final Hint hint1 = new ConditionHint(condition1, "You control a Spirit");
|
||||
private static final Hint hint2 = new ConditionHint(condition2, "You control an enchantment");
|
||||
|
||||
public GeistlightSnare(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||
|
||||
// This spell costs {1} less to cast if you control a Spirit. It also costs {1} less to cast if you control an enchantment.
|
||||
Ability ability = new SimpleStaticAbility(
|
||||
Zone.ALL, new SpellCostReductionSourceEffect(1, condition1).setCanWorksOnStackOnly(true)
|
||||
.setText("this spell costs {1} less to cast if you control a Spirit")
|
||||
).setRuleAtTheTop(true);
|
||||
ability.addEffect(new SpellCostReductionSourceEffect(1, condition2).setCanWorksOnStackOnly(true)
|
||||
.setText("It also costs {1} less to cast if you control an enchantment"));
|
||||
|
||||
// Counter target spell unless its controller pays {3}.
|
||||
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(3)));
|
||||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
this.getSpellAbility().addHint(hint1);
|
||||
this.getSpellAbility().addHint(hint2);
|
||||
}
|
||||
|
||||
private GeistlightSnare(final GeistlightSnare card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GeistlightSnare copy() {
|
||||
return new GeistlightSnare(this);
|
||||
}
|
||||
}
|
|
@ -37,6 +37,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Dreamroot Cascade", 262, Rarity.RARE, mage.cards.d.DreamrootCascade.class));
|
||||
cards.add(new SetCardInfo("Fell Stinger", 112, Rarity.UNCOMMON, mage.cards.f.FellStinger.class));
|
||||
cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Geistlight Snare", 60, Rarity.UNCOMMON, mage.cards.g.GeistlightSnare.class));
|
||||
cards.add(new SetCardInfo("Gluttonous Guest", 114, Rarity.COMMON, mage.cards.g.GluttonousGuest.class));
|
||||
cards.add(new SetCardInfo("Gryff Rider", 15, Rarity.COMMON, mage.cards.g.GryffRider.class));
|
||||
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||
|
|
Loading…
Reference in a new issue