forked from External/mage
refactor of watchers to use map functions
This commit is contained in:
parent
fbbfc6c611
commit
4aa51210f9
18 changed files with 69 additions and 158 deletions
|
|
@ -4,6 +4,7 @@ import java.util.HashSet;
|
|||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.WatcherScope;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
|
@ -37,7 +38,7 @@ public class CastFromHandWatcher extends Watcher {
|
|||
spellsCastFromHand.clear();
|
||||
step = null;
|
||||
}
|
||||
if (event.getType() == GameEvent.EventType.SPELL_CAST && event.getZone().equals(Zone.HAND)) {
|
||||
if (event.getType() == GameEvent.EventType.SPELL_CAST && event.getZone() == Zone.HAND) {
|
||||
if (step == null) {
|
||||
step = game.getTurn().getStep();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue