Allow CureByControlEffect to be ran outside spell script
This commit is contained in:
parent
e246609d34
commit
0a80911ed7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user