Skip to content
Snippets Groups Projects
Commit 7a33b2d4 authored by Simon André Curtis's avatar Simon André Curtis
Browse files

Fixes the nightmare part of curse of nightmares.

parent 6c82feb9
No related branches found
No related tags found
No related merge requests found
......@@ -1218,7 +1218,9 @@ newEffect{
on_timeout = function(self, eff) -- Chance for nightmare fades over time
if eff.nightmareChance then eff.nightmareChance = math.max(0, eff.nightmareChance-1) end
end,
-- called by _M:onTakeHit function in in mod.class.Actor.lua
callbackOnHit = function(self, eff, cb)
game:onTickEnd(function() eff.doNightmare(self, eff) end)
end,
doNightmare = function(self, eff)
if math.min(eff.unlockLevel, eff.level) >= 4 then
-- build chance for a nightmare
......
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