[CHK] fixed Nine-Ringed Bo ability being sorcery speed (fixes #7863)

This commit is contained in:
Evan Kranzler 2021-05-31 15:12:59 -04:00
parent 0d163f6afd
commit ed0f921a77

View file

@ -1,9 +1,7 @@
package mage.cards.n; package mage.cards.n;
import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.ActivateAsSorceryActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageTargetEffect; import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.ExileTargetIfDiesEffect; import mage.abilities.effects.common.ExileTargetIfDiesEffect;
@ -11,29 +9,26 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType; import mage.constants.SubType;
import mage.constants.Zone; import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent; import mage.filter.common.FilterCreaturePermanent;
import mage.target.common.TargetCreaturePermanent; import mage.target.TargetPermanent;
import java.util.UUID;
/** /**
*
* @author LevelX * @author LevelX
*/ */
public final class NineRingedBo extends CardImpl { public final class NineRingedBo extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("spirit"); private static final FilterPermanent filter = new FilterCreaturePermanent(SubType.SPIRIT, "Spirit creature");
static {
filter.add(SubType.SPIRIT.getPredicate());
}
public NineRingedBo(UUID ownerId, CardSetInfo setInfo) { public NineRingedBo(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); 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. // {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.addEffect(new ExileTargetIfDiesEffect());
ability.addTarget(new TargetCreaturePermanent(filter)); ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability); this.addAbility(ability);
} }