Skip to content
Snippets Groups Projects
Commit 7323ed57 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Ice Storm stays in place after the source is dead (just in case); map effects...

Ice Storm stays in place after the source is dead (just in case); map effects actually check for duration set to 0
parent 34f6e061
No related branches found
No related tags found
No related merge requests found
......@@ -1181,7 +1181,7 @@ function _M:processEffects(update_shape_only)
local todel = {}
for i, e in ipairs(self.effects) do
-- Run damage and decrease duration only on certain ticks
if not update_shape_only then
if not update_shape_only and e.duration > 0 then
for lx, ys in pairs(e.grids) do
for ly, _ in pairs(ys) do
local act = game.level.map(lx, ly, engine.Map.ACTOR)
......
......@@ -219,6 +219,7 @@ newTalent{
5, nil,
{type="icestorm", only_one=true},
function(e)
if e.src.dead then return end
e.x = e.src.x
e.y = e.src.y
return true
......
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