From 79c3ec1fb23f6458cb3b8c46aac00505cc428b27 Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 22 Nov 2024 14:38:00 -0500 Subject: [PATCH] Fix spells ticking after cancellation/expiring --- source/WorldServer/LuaInterface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/WorldServer/LuaInterface.cpp b/source/WorldServer/LuaInterface.cpp index 9b85644..873bbed 100644 --- a/source/WorldServer/LuaInterface.cpp +++ b/source/WorldServer/LuaInterface.cpp @@ -887,6 +887,9 @@ void LuaInterface::RemoveSpell(LuaSpell* spell, bool call_remove_function, bool } } spell->char_id_targets.clear(); // TODO: reach out to those clients in different + + spell->timer.Disable(); + spell->MSpellTargets.releasereadlock(__FUNCTION__, __LINE__); if(removing_all_spells) {