From 30f5ed9200c0f14fb688a1c71dda7570358f163b Mon Sep 17 00:00:00 2001
From: Shibari <ShibariTOME@Gmail.com>
Date: Thu, 6 Sep 2018 12:37:22 -0400
Subject: [PATCH] Remove ground effects from player summons on level exit not
 just the player themself

---
 game/modules/tome/class/Player.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua
index 68ef2e3f35..c1fa11897b 100644
--- a/game/modules/tome/class/Player.lua
+++ b/game/modules/tome/class/Player.lua
@@ -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))
-- 
GitLab