mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
more watcher cleanup
This commit is contained in:
parent
f7d70a7b11
commit
37722a58c2
10 changed files with 15 additions and 10 deletions
|
|
@ -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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ import mage.watchers.Watcher;
|
|||
*/
|
||||
public class MorbidWatcher extends Watcher {
|
||||
|
||||
/**
|
||||
* Game default watcher
|
||||
*/
|
||||
public MorbidWatcher() {
|
||||
super(WatcherScope.GAME);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue