more watcher cleanup

This commit is contained in:
xenohedron 2023-11-29 20:32:36 -05:00
parent f7d70a7b11
commit 37722a58c2
10 changed files with 15 additions and 10 deletions

View file

@ -46,7 +46,6 @@ public class CastSecondSpellTriggeredAbility extends TriggeredAbilityImpl {
public CastSecondSpellTriggeredAbility(Zone zone, Effect effect, TargetController targetController,
boolean optional, SetTargetPointer setTargetPointer) {
super(zone, effect, optional);
this.addWatcher(new CastSpellLastTurnWatcher());
if (targetController == TargetController.YOU) {
this.addHint(hint);
}
@ -147,4 +146,4 @@ enum SpellCastValue implements DynamicValue {
public String getMessage() {
return "";
}
}
}

View file

@ -19,6 +19,9 @@ public class CastSpellLastTurnWatcher extends Watcher {
private int activePlayerPrevTurnCount = 0;
private int activePlayerThisTurnCount = 0;
/**
* Game default watcher
*/
public CastSpellLastTurnWatcher() {
super(WatcherScope.GAME);
}

View file

@ -13,6 +13,9 @@ import mage.watchers.Watcher;
*/
public class MorbidWatcher extends Watcher {
/**
* Game default watcher
*/
public MorbidWatcher() {
super(WatcherScope.GAME);
}

View file

@ -21,6 +21,9 @@ public class PlayerLostLifeWatcher extends Watcher {
private final Map<UUID, Integer> amountOfLifeLostThisTurn = new HashMap<>();
private final Map<UUID, Integer> amountOfLifeLostLastTurn = new HashMap<>();
/**
* Game default watcher
*/
public PlayerLostLifeWatcher() {
super(WatcherScope.GAME);
}