Fixed error of CastFromHandCondition.

This commit is contained in:
LevelX2 2016-03-01 21:18:53 +01:00
parent c83e1f29d3
commit ad49eeb4ea

View file

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