From 0a80911ed7944a824131be9013f0a411741d49d0 Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 12 Sep 2024 08:40:47 -0400 Subject: [PATCH] Allow CureByControlEffect to be ran outside spell script --- source/WorldServer/LuaFunctions.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/WorldServer/LuaFunctions.cpp b/source/WorldServer/LuaFunctions.cpp index 239148c..acbb5ff 100644 --- a/source/WorldServer/LuaFunctions.cpp +++ b/source/WorldServer/LuaFunctions.cpp @@ -9523,13 +9523,8 @@ int EQ2Emu_lua_CureByControlEffect(lua_State* state) { return 0; LuaSpell* spell = lua_interface->GetCurrentSpell(state); - if (!spell) { - lua_interface->LogError("%s: LUA CureByControlEffect command error: can only be used in a spell script", lua_interface->GetScriptName(state)); - lua_interface->ResetFunctionStack(state); - return 0; - } - if(spell->resisted) { + if(spell && spell->resisted) { lua_interface->ResetFunctionStack(state); return 0; }