fix mishandling of the ProcessSpell return, we need to return false if we fail to call the lua function correctly
This commit is contained in:
parent
c25ac12cd6
commit
6b0f551552
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user