[ODY] fixed Skyshooter not sacrificing itself to activate (fixes
-
package mage.cards.s;
-import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
+import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.FlyingAbility;
@@ -13,18 +12,20 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
-import mage.constants.Zone;
+import mage.filter.FilterPermanent;
import mage.filter.common.FilterAttackingOrBlockingCreature;
import mage.filter.predicate.mageobject.AbilityPredicate;
-import mage.target.common.TargetAttackingOrBlockingCreature;
+import mage.target.TargetPermanent;
+
+import java.util.UUID;
/**
- *
* @author LevelX2
*/
public final class Skyshooter extends CardImpl {
- private static final FilterAttackingOrBlockingCreature filter = new FilterAttackingOrBlockingCreature("attacking or blocking creature with flying");
+ private static final FilterPermanent filter
+ = new FilterAttackingOrBlockingCreature("attacking or blocking creature with flying");
static {
filter.add(new AbilityPredicate(FlyingAbility.class));
@@ -40,11 +41,12 @@ public final class Skyshooter extends CardImpl {
// Reach
this.addAbility(ReachAbility.getInstance());
+
// {tap}, Sacrifice Skyshooter: Destroy target attacking or blocking creature with flying.
- Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
- ability.addTarget(new TargetAttackingOrBlockingCreature(1,1, filter, false));
+ Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new TapSourceCost());
+ ability.addCost(new SacrificeSourceCost());
+ ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
-
}
private Skyshooter(final Skyshooter card) {
