From e49dd408d989f099de2bcc87e248779456bf1a31 Mon Sep 17 00:00:00 2001 From: Hachem_Muche <Hachem_Muche@stanfordalumni.org> Date: Wed, 16 Jul 2014 13:04:14 -0700 Subject: [PATCH] Creatures in pits will correctly wake up when the pit is breached. --- game/modules/tome/data/timed_effects/other.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/data/timed_effects/other.lua b/game/modules/tome/data/timed_effects/other.lua index e5c35cb2c8..d3da97e3c6 100644 --- a/game/modules/tome/data/timed_effects/other.lua +++ b/game/modules/tome/data/timed_effects/other.lua @@ -2260,7 +2260,14 @@ newEffect{ self:effectTemporaryValue(eff, "status_effect_immune", 1) self.energy.value = 0 end, - deactivate = function(self, eff) + deactivate = function(self, eff) --wake up vaulted npcs in LOS + self:computeFOV(5, nil, + function(x, y, dx, dy, sqdist) + local act = game.level.map(x, y, Map.ACTOR) + if act then + act:removeEffect(act.EFF_VAULTED, true, true) + end + end, true, false, false) end, } -- GitLab