mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
[FDN] Implement Fleeting Flight
This commit is contained in:
parent
13d33d7de1
commit
85b05caa40
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/f/FleetingFlight.java
Normal file
42
Mage.Sets/src/mage/cards/f/FleetingFlight.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.effects.common.PreventDamageToTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ciaccona007
|
||||
*/
|
||||
public final class FleetingFlight extends CardImpl {
|
||||
|
||||
public FleetingFlight(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}");
|
||||
|
||||
// Put a +1/+1 counter on target creature. It gains flying until end of turn. Prevent all combat damage that would be dealt to it this turn.
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn)
|
||||
.setText("It gains flying until end of turn"));
|
||||
this.getSpellAbility().addEffect(new PreventDamageToTargetEffect(Duration.EndOfTurn, true)
|
||||
.setText("Prevent all combat damage that would be dealt to it this turn"));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private FleetingFlight(final FleetingFlight card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FleetingFlight copy() {
|
||||
return new FleetingFlight(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -203,6 +203,7 @@ public final class Foundations extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Flamewake Phoenix", 198, Rarity.RARE, mage.cards.f.FlamewakePhoenix.class));
|
||||
cards.add(new SetCardInfo("Flashfreeze", 590, Rarity.UNCOMMON, mage.cards.f.Flashfreeze.class));
|
||||
cards.add(new SetCardInfo("Fleeting Distraction", 155, Rarity.COMMON, mage.cards.f.FleetingDistraction.class));
|
||||
cards.add(new SetCardInfo("Fleeting Flight", 13, Rarity.COMMON, mage.cards.f.FleetingFlight.class));
|
||||
cards.add(new SetCardInfo("Fog Bank", 591, Rarity.UNCOMMON, mage.cards.f.FogBank.class));
|
||||
cards.add(new SetCardInfo("Forest", 280, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Frenzied Goblin", 199, Rarity.UNCOMMON, mage.cards.f.FrenziedGoblin.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue