Skip to content
Snippets Groups Projects
Commit 30f5ed92 authored by Chris Davidson's avatar Chris Davidson
Browse files

Remove ground effects from player summons on level exit not just the player themself

parent 4a7eb39f
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ function _M:onEnterLevel(zone, level)
-- Clear existing player created effects on the map
for i, eff in ipairs(level.map.effects) do
if eff.src and eff.src.player then
if (eff.src and (eff.src.player or (eff.src.summoner and eff.src:resolveSource().player))) then
eff.duration = 0
eff.grids = {}
print("[onEnterLevel] Cancelling player created effect ", tostring(eff.name))
......
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