From 6b0f5515529178336fb278dc9d9384133e1a749e Mon Sep 17 00:00:00 2001 From: Emagi Date: Sun, 22 Jun 2025 08:55:11 -0400 Subject: [PATCH] fix mishandling of the ProcessSpell return, we need to return false if we fail to call the lua function correctly --- 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 8d78ccd..a82559e 100644 --- a/source/WorldServer/SpellProcess.cpp +++ b/source/WorldServer/SpellProcess.cpp @@ -570,7 +570,7 @@ bool SpellProcess::ProcessSpell(LuaSpell* spell, bool first_cast, const char* fu } } spell->MScriptMutex.releasewritelock(__FUNCTION__, __LINE__); - return true; + return ret; } std::string functionCall = ApplyLuaFunction(spell, first_cast, function, timer); if(functionCall.length() < 1) {