1
0

Allow CureByControlEffect to be ran outside spell script

This commit is contained in:
Emagi 2024-09-12 08:40:47 -04:00
parent e246609d34
commit 0a80911ed7

View File

@ -9523,13 +9523,8 @@ int EQ2Emu_lua_CureByControlEffect(lua_State* state) {
return 0; return 0;
LuaSpell* spell = lua_interface->GetCurrentSpell(state); 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); lua_interface->ResetFunctionStack(state);
return 0; return 0;
} }