mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Game/Scripting: Add OnGameEvent hook for game objects.
Called when specific game event starts
This commit is contained in:
@@ -1776,6 +1776,11 @@ void ScriptMgr::OnGameObjectUpdate(GameObject* go, uint32 diff)
|
||||
tmpscript->OnUpdate(go, diff);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnGameEvent(bool start, uint16 eventId)
|
||||
{
|
||||
FOREACH_SCRIPT(GameObjectScript)->OnGameEvent(start, eventId);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnDummyEffect(Unit* caster, uint32 spellId, SpellEffIndex effIndex, GameObject* target)
|
||||
{
|
||||
ASSERT(caster);
|
||||
|
||||
Reference in New Issue
Block a user