mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[STX] Implemented Dream Strix
This commit is contained in:
parent
2bd60f539b
commit
4a92635b7c
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/d/DreamStrix.java
Normal file
50
Mage.Sets/src/mage/cards/d/DreamStrix.java
Normal file
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BecomesTargetTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.LearnEffect;
|
||||
import mage.abilities.effects.common.SacrificeSourceEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DreamStrix extends CardImpl {
|
||||
|
||||
public DreamStrix(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.BIRD);
|
||||
this.subtype.add(SubType.ILLUSION);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Dream Strix becomes the target of a spell, sacrifice it.
|
||||
this.addAbility(new BecomesTargetTriggeredAbility(
|
||||
new SacrificeSourceEffect().setText("sacrifice it"), StaticFilters.FILTER_SPELL_A
|
||||
));
|
||||
|
||||
// When Dream Strix dies, learn.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new LearnEffect()));
|
||||
}
|
||||
|
||||
private DreamStrix(final DreamStrix card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DreamStrix copy() {
|
||||
return new DreamStrix(this);
|
||||
}
|
||||
}
|
|
@ -57,6 +57,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Defend the Campus", 12, Rarity.COMMON, mage.cards.d.DefendTheCampus.class));
|
||||
cards.add(new SetCardInfo("Double Major", 179, Rarity.RARE, mage.cards.d.DoubleMajor.class));
|
||||
cards.add(new SetCardInfo("Dragonsguard Elite", 127, Rarity.RARE, mage.cards.d.DragonsguardElite.class));
|
||||
cards.add(new SetCardInfo("Dream Strix", 42, Rarity.RARE, mage.cards.d.DreamStrix.class));
|
||||
cards.add(new SetCardInfo("Dueling Coach", 15, Rarity.UNCOMMON, mage.cards.d.DuelingCoach.class));
|
||||
cards.add(new SetCardInfo("Eager First-Year", 16, Rarity.COMMON, mage.cards.e.EagerFirstYear.class));
|
||||
cards.add(new SetCardInfo("Elemental Masterpiece", 182, Rarity.COMMON, mage.cards.e.ElementalMasterpiece.class));
|
||||
|
|
Loading…
Reference in a new issue