Implemented Spontaneous Flight

This commit is contained in:
Evan Kranzler 2020-04-07 17:54:49 -04:00
parent d2f4cfe9fa
commit 38a94db42c
3 changed files with 38 additions and 1 deletions

View file

@ -21,7 +21,7 @@ public final class FullyGrown extends CardImpl {
// Target creature gets +3/+3 until end of turn. Put a trample counter on it.
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3));
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.TRAMPLE.createInstance())
.setText("Put a +1/+1 counter on it"));
.setText("Put a trample counter on it"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}

View file

@ -0,0 +1,36 @@
package mage.cards.s;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.counters.CounterType;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SpontaneousFlight extends CardImpl {
public SpontaneousFlight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}");
// Target creature gets +2/+2 until end of turn. Put a flying counter on it.
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2));
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.FLYING.createInstance())
.setText("Put a flying counter on it"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private SpontaneousFlight(final SpontaneousFlight card) {
super(card);
}
@Override
public SpontaneousFlight copy() {
return new SpontaneousFlight(this);
}
}

View file

@ -132,6 +132,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("Snapdax, Apex of the Hunt", 209, Rarity.MYTHIC, mage.cards.s.SnapdaxApexOfTheHunt.class));
cards.add(new SetCardInfo("Splendor Mare", 32, Rarity.UNCOMMON, mage.cards.s.SplendorMare.class));
cards.add(new SetCardInfo("Spontaneous Flight", 33, Rarity.COMMON, mage.cards.s.SpontaneousFlight.class));
cards.add(new SetCardInfo("Sprite Dragon", 211, Rarity.UNCOMMON, mage.cards.s.SpriteDragon.class));
cards.add(new SetCardInfo("Thieving Otter", 69, Rarity.COMMON, mage.cards.t.ThievingOtter.class));
cards.add(new SetCardInfo("Thwart the Enemy", 173, Rarity.COMMON, mage.cards.t.ThwartTheEnemy.class));