[TSP] small change to paradox haze to not use watcher with argument

This commit is contained in:
Evan Kranzler 2022-03-23 18:44:32 -04:00
parent 474c9655a4
commit 53877424a0
2 changed files with 28 additions and 59 deletions

View file

@ -1,36 +0,0 @@
package mage.watchers.common;
import mage.constants.WatcherScope;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType;
import mage.watchers.Watcher;
/**
* The watcher checks if a specific phase event has already happened during the
* current turn. If not it returns false, otherwise true.
*
* @author LevelX2
*/
public class FirstTimeStepWatcher extends Watcher {
private final EventType eventType;
public FirstTimeStepWatcher(EventType eventType) {
super(WatcherScope.GAME);
this.eventType = eventType;
}
@Override
public void watch(GameEvent event, Game game) {
if (event.getType() == eventType) {
condition = true;
}
}
@Override
public String getBasicKey(){
return eventType.toString() + FirstTimeStepWatcher.class.getSimpleName();
}
}