Skip to content
Snippets Groups Projects
Commit 799c42d0 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'master' of git.net-core.org:darkgod/t-engine4

parents 4f1f6c81 4d3e2d4f
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
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