fix #8139 nullpointer

This commit is contained in:
Ingmar Goudt 2021-08-19 13:18:30 +02:00
parent e488997124
commit 5111438750

View file

@ -114,6 +114,6 @@ class WildMagicSorcererWatcher extends Watcher {
}
WildMagicSorcererWatcher watcher = game.getState().getWatcher(WildMagicSorcererWatcher.class);
return watcher.playerMap.containsKey(stackObject.getControllerId())
&& watcher.playerMap.get(stackObject).refersTo(((Spell) stackObject).getMainCard(), game);
&& watcher.playerMap.get(stackObject.getControllerId()).refersTo(((Spell) stackObject).getMainCard(), game);
}
}