Fixed error of CastFromHandCondition.

This commit is contained in:
LevelX2 2016-03-01 21:38:52 +01:00
parent ad49eeb4ea
commit 6299425c1d
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,7 @@ public class CastFromHandCondition implements Condition {
return false;
}
}
CastFromHandWatcher watcher = (CastFromHandWatcher) game.getState().getWatchers().get(CastFromHandWatcher.class.getName(), source.getSourceId());
CastFromHandWatcher watcher = (CastFromHandWatcher) game.getState().getWatchers().get(CastFromHandWatcher.class.getName());
if (watcher != null && watcher.spellWasCastFromHand(source.getSourceId())) {
return true;
}