mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
[ECL] Implement Unwelcome Sprite
This commit is contained in:
parent
3937203069
commit
605cf28ccb
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java
Normal file
44
Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.condition.common.OpponentsTurnCondition;
|
||||
import mage.abilities.effects.keyword.SurveilEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UnwelcomeSprite extends CardImpl {
|
||||
|
||||
public UnwelcomeSprite(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.FAERIE);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Whenever you cast a spell during an opponent's turn, surveil 2.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(new SurveilEffect(2), false)
|
||||
.withTriggerCondition(OpponentsTurnCondition.instance));
|
||||
}
|
||||
|
||||
private UnwelcomeSprite(final UnwelcomeSprite card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UnwelcomeSprite copy() {
|
||||
return new UnwelcomeSprite(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -129,6 +129,7 @@ public final class LorwynEclipsed extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Thoughtweft Lieutenant", 246, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Thoughtweft Lieutenant", 343, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Unexpected Assistance", 80, Rarity.COMMON, mage.cards.u.UnexpectedAssistance.class));
|
||||
cards.add(new SetCardInfo("Unwelcome Sprite", 81, Rarity.UNCOMMON, mage.cards.u.UnwelcomeSprite.class));
|
||||
cards.add(new SetCardInfo("Vibrance", 249, Rarity.MYTHIC, mage.cards.v.Vibrance.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Vibrance", 295, Rarity.MYTHIC, mage.cards.v.Vibrance.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Vinebred Brawler", 201, Rarity.UNCOMMON, mage.cards.v.VinebredBrawler.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue