feat(Core/Scripting): Added new hook: OnInstanceIdRemoved. (#14670)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Co-authored-by: 55Honey <71938210+55Honey@users.noreply.github.com>
This commit is contained in:
parent
e581cd34ac
commit
b1bc1c24e4
3 changed files with 21 additions and 0 deletions
|
|
@ -176,3 +176,16 @@ bool ScriptMgr::OnAllowedForPlayerLootCheck(Player const* player, ObjectGuid sou
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Called when an instance Id is deleted, usually because it expired or no players are bound to it anymore.
|
||||
*
|
||||
* @param instanceId The unique id of the instance
|
||||
*/
|
||||
void ScriptMgr::OnInstanceIdRemoved(uint32 instanceId)
|
||||
{
|
||||
ExecuteScript<GlobalScript>([&](GlobalScript* script)
|
||||
{
|
||||
script->OnInstanceIdRemoved(instanceId);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue