[CHK] fixed Nine-Ringed Bo ability being sorcery speed (fixes
-
package mage.cards.n;
-import java.util.UUID;
import mage.abilities.Ability;
-import mage.abilities.common.ActivateAsSorceryActivatedAbility;
+import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.ExileTargetIfDiesEffect;
@@ -11,29 +9,26 @@ 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.FilterCreaturePermanent;
-import mage.target.common.TargetCreaturePermanent;
+import mage.target.TargetPermanent;
+
+import java.util.UUID;
/**
- *
* @author LevelX
*/
public final class NineRingedBo extends CardImpl {
- private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("spirit");
-
- static {
- filter.add(SubType.SPIRIT.getPredicate());
- }
+ private static final FilterPermanent filter = new FilterCreaturePermanent(SubType.SPIRIT, "Spirit creature");
public NineRingedBo(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {T}: Nine-Ringed Bo deals 1 damage to target Spirit creature. If that creature would die this turn, exile it instead.
- Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
+ Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
ability.addEffect(new ExileTargetIfDiesEffect());
- ability.addTarget(new TargetCreaturePermanent(filter));
+ ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}
