Skip to content
Snippets Groups Projects
Commit 54737f10 authored by DarkGod's avatar DarkGod
Browse files

fixed keepsake

parent 70515869
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -789,7 +789,7 @@ end
function _M:changeLevel(lev, zone, params)
params = params or {}
if self:getPlayer(true).last_kill_turn and self:getPlayer(true).last_kill_turn >= self.turn - self:noStairsTime() then
if not params.direct_switch and (self:getPlayer(true).last_kill_turn and self:getPlayer(true).last_kill_turn >= self.turn - self:noStairsTime()) then
local left = math.ceil((10 + self:getPlayer(true).last_kill_turn - self.turn + self:noStairsTime()) / 10)
self.logPlayer(self.player, "#LIGHT_RED#You may not change level so soon after a kill (%d game turns left to wait)!", left)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment