diff --git a/game/modules/tome/data/timed_effects/other.lua b/game/modules/tome/data/timed_effects/other.lua index e5c35cb2c8a1a87c1592ab1113c0702c0ffdcaf9..d3da97e3c64e72294fcb0dd3cca0a9b6c790e45d 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, }