forked from External/mage
[SNC] Implemented Ognis, the Dragon's Lash
This commit is contained in:
parent
b1e1f70a83
commit
3d40bfd7e3
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/o/OgnisTheDragonsLash.java
Normal file
56
Mage.Sets/src/mage/cards/o/OgnisTheDragonsLash.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksCreatureYouControlTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OgnisTheDragonsLash extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter
|
||||
= new FilterControlledCreaturePermanent("a creature you control with haste");
|
||||
|
||||
static {
|
||||
filter.add(new AbilityPredicate(HasteAbility.class));
|
||||
}
|
||||
|
||||
public OgnisTheDragonsLash(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B/R}{R}{R/G}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.VIASHINO);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Whenever a creature you control with haste attacks, create a tapped Treasure token.
|
||||
this.addAbility(new AttacksCreatureYouControlTriggeredAbility(
|
||||
new CreateTokenEffect(new TreasureToken(), 1, true, false), false, filter
|
||||
));
|
||||
}
|
||||
|
||||
private OgnisTheDragonsLash(final OgnisTheDragonsLash card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OgnisTheDragonsLash copy() {
|
||||
return new OgnisTheDragonsLash(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -112,6 +112,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Obscura Initiate", 50, Rarity.COMMON, mage.cards.o.ObscuraInitiate.class));
|
||||
cards.add(new SetCardInfo("Obscura Interceptor", 209, Rarity.RARE, mage.cards.o.ObscuraInterceptor.class));
|
||||
cards.add(new SetCardInfo("Obscura Storefront", 252, Rarity.COMMON, mage.cards.o.ObscuraStorefront.class));
|
||||
cards.add(new SetCardInfo("Ognis, the Dragon's Lash", 210, Rarity.RARE, mage.cards.o.OgnisTheDragonsLash.class));
|
||||
cards.add(new SetCardInfo("Out of the Way", 52, Rarity.UNCOMMON, mage.cards.o.OutOfTheWay.class));
|
||||
cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Plasma Jockey", 115, Rarity.COMMON, mage.cards.p.PlasmaJockey.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue