mutators: add check for inn when enabling

This commit is contained in:
UnShame 2018-02-23 01:20:35 +03:00
parent 36989758f3
commit b8caf1d98e

View file

@ -124,7 +124,10 @@ local function set_mutator_state(mutator, state)
return return
end end
if state and not mutator:can_be_enabled() then if state and (
not mutator:can_be_enabled() or
Managers.state and Managers.state.game_mode and Managers.state.game_mode._game_mode_key ~= "inn"
) then
return return
end end