mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Fixed missing watchers
This commit is contained in:
parent
6e5494c022
commit
65d914ffe7
5 changed files with 24 additions and 40 deletions
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
package mage.game.command.emblems;
|
||||
|
||||
import java.util.List;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastOpponentTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CounterTargetEffect;
|
||||
|
|
@ -14,8 +13,9 @@ import mage.game.stack.Spell;
|
|||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.watchers.common.SpellsCastWatcher;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class JaceUnravelerOfSecretsEmblem extends Emblem {
|
||||
|
|
@ -29,7 +29,9 @@ public final class JaceUnravelerOfSecretsEmblem extends Emblem {
|
|||
setExpansionSetCodeForImage("SOI");
|
||||
Effect effect = new CounterTargetEffect();
|
||||
effect.setText("counter that spell");
|
||||
this.getAbilities().add(new JaceUnravelerOfSecretsTriggeredAbility(effect, false));
|
||||
Ability ability = new JaceUnravelerOfSecretsTriggeredAbility(effect, false);
|
||||
ability.addWatcher(new SpellsCastWatcher());
|
||||
this.getAbilities().add(ability);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue