mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[TSP] small change to paradox haze to not use watcher with argument
This commit is contained in:
parent
474c9655a4
commit
53877424a0
2 changed files with 28 additions and 59 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue