From 41cc36de834f032e0ccec499f968ce6dcf51d850 Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 31 Jan 2025 20:06:45 -0500 Subject: [PATCH] if no targets left in the spell its ok to remove, flip the flag to just remove the maintained part of the spell --- source/WorldServer/SpellProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/WorldServer/SpellProcess.cpp b/source/WorldServer/SpellProcess.cpp index 888a439..8cac165 100644 --- a/source/WorldServer/SpellProcess.cpp +++ b/source/WorldServer/SpellProcess.cpp @@ -2867,7 +2867,7 @@ void SpellProcess::CheckRemoveTargetFromSpell(LuaSpell* spell, bool allow_delete MRemoveTargetList.releasewritelock(__FUNCTION__, __LINE__); } if(found_target) - lua_interface->RemoveSpell(spell, true, false, !remove_spawn->Alive() ? "target_dead" : "target_removed", false, true, remove_spawn); + lua_interface->RemoveSpell(spell, true, false, !remove_spawn->Alive() ? "target_dead" : "target_removed", false, false, remove_spawn); should_delete = true; dropped_lock = true; break;