mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Implemented Slitherwisp
This commit is contained in:
parent
076d98d0a2
commit
99b4d67c9c
2 changed files with 61 additions and 0 deletions
60
Mage.Sets/src/mage/cards/s/Slitherwisp.java
Normal file
60
Mage.Sets/src/mage/cards/s/Slitherwisp.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Slitherwisp extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("another spell with flash");
|
||||
|
||||
static {
|
||||
filter.add(new AbilityPredicate(FlashAbility.class));
|
||||
filter.add(AnotherPredicate.instance);
|
||||
}
|
||||
|
||||
public Slitherwisp(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{B}{B}");
|
||||
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.subtype.add(SubType.NIGHTMARE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// Whenever you cast another spell with flash, you draw a card and each opponent loses 1 life.
|
||||
Ability ability = new SpellCastControllerTriggeredAbility(
|
||||
new DrawCardSourceControllerEffect(1)
|
||||
.setText("you draw a card"),
|
||||
filter, false
|
||||
);
|
||||
ability.addEffect(new LoseLifeOpponentsEffect(1).concatBy("and"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private Slitherwisp(final Slitherwisp card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Slitherwisp copy() {
|
||||
return new Slitherwisp(this);
|
||||
}
|
||||
}
|
|
@ -242,6 +242,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Skull Prophet", 206, Rarity.UNCOMMON, mage.cards.s.SkullProphet.class));
|
||||
cards.add(new SetCardInfo("Skycat Sovereign", 207, Rarity.RARE, mage.cards.s.SkycatSovereign.class));
|
||||
cards.add(new SetCardInfo("Sleeper Dart", 240, Rarity.COMMON, mage.cards.s.SleeperDart.class));
|
||||
cards.add(new SetCardInfo("Slitherwisp", 208, Rarity.RARE, mage.cards.s.Slitherwisp.class));
|
||||
cards.add(new SetCardInfo("Snapdax, Apex of the Hunt", 209, Rarity.MYTHIC, mage.cards.s.SnapdaxApexOfTheHunt.class));
|
||||
cards.add(new SetCardInfo("Snare Tactician", 30, Rarity.COMMON, mage.cards.s.SnareTactician.class));
|
||||
cards.add(new SetCardInfo("Song of Creation", 210, Rarity.RARE, mage.cards.s.SongOfCreation.class));
|
||||
|
|
Loading…
Reference in a new issue