1
0

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:
Emagi 2025-06-22 08:55:11 -04:00
parent c25ac12cd6
commit 6b0f551552

View File

@ -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) {