forked from External/mage
46 lines
1.4 KiB
Java
46 lines
1.4 KiB
Java
package mage.cards.f;
|
|
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
|
import mage.abilities.keyword.FlyingAbility;
|
|
import mage.abilities.keyword.ReinforceAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.common.FilterCreaturePermanent;
|
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
|
import mage.target.common.TargetCreaturePermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class FowlStrike extends CardImpl {
|
|
|
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with flying");
|
|
|
|
static {
|
|
filter.add(new AbilityPredicate(FlyingAbility.class));
|
|
}
|
|
|
|
public FowlStrike(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
|
|
|
|
// Destroy target creature with flying.
|
|
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
|
|
|
// Reinforce 2--{2}{G}
|
|
this.addAbility(new ReinforceAbility(2, new ManaCostsImpl<>("{2}{G}")));
|
|
}
|
|
|
|
private FowlStrike(final FowlStrike card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public FowlStrike copy() {
|
|
return new FowlStrike(this);
|
|
}
|
|
}
|