mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
fix haunting figment build failure
This commit is contained in:
parent
551b2861a5
commit
41f06036b5
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue