Implemented Pouncing Lynx

This commit is contained in:
Evan Kranzler 2019-04-04 18:51:24 -04:00
parent 41cdbf70f9
commit 21f889e7d5
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.p;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.MyTurnCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.FirstStrikeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PouncingLynx extends CardImpl {
public PouncingLynx(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
this.subtype.add(SubType.CAT);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// As long as it's your turn, Pouncing Lynx has first strike.
this.addAbility(new SimpleStaticAbility(
new ConditionalContinuousEffect(
new GainAbilitySourceEffect(
FirstStrikeAbility.getInstance(),
Duration.WhileOnBattlefield
), MyTurnCondition.instance,
"As long as it's your turn, "
+ "{this} has first strike."
)
));
}
private PouncingLynx(final PouncingLynx card) {
super(card);
}
@Override
public PouncingLynx copy() {
return new PouncingLynx(this);
}
}

View file

@ -87,6 +87,7 @@ public final class WarOfTheSpark extends ExpansionSet {
cards.add(new SetCardInfo("Paradise Druid", 171, Rarity.UNCOMMON, mage.cards.p.ParadiseDruid.class));
cards.add(new SetCardInfo("Plains", 250, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plains", 252, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Pouncing Lynx", 25, Rarity.COMMON, mage.cards.p.PouncingLynx.class));
cards.add(new SetCardInfo("Primordial Wurm", 174, Rarity.COMMON, mage.cards.p.PrimordialWurm.class));
cards.add(new SetCardInfo("Ravnica at War", 28, Rarity.RARE, mage.cards.r.RavnicaAtWar.class));
cards.add(new SetCardInfo("Relentless Advance", 64, Rarity.COMMON, mage.cards.r.RelentlessAdvance.class));