fix haunting figment build failure

This commit is contained in:
Evan Kranzler 2022-08-29 20:29:38 -04:00
parent 551b2861a5
commit 41f06036b5

View file

@ -4,7 +4,7 @@ import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.Condition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.decorator.ConditionalRestrictionEffect;
import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
@ -36,7 +36,7 @@ public final class HauntingFigment extends CardImpl {
this.addAbility(VigilanceAbility.getInstance());
// Haunting Figment can't be blocked as long as you've cast an instant or sorcery spell this turn.
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
this.addAbility(new SimpleStaticAbility(new ConditionalRestrictionEffect(
new CantBeBlockedSourceEffect(Duration.WhileOnBattlefield), HauntingFigmentCondition.instance,
"can't be blocked as long as you've cast an instant or sorcery spell this turn"
)), new SpellsCastWatcher());