Game/Scripting: Add OnGameEvent hook for game objects.

Called when specific game event starts
This commit is contained in:
Kittnz
2017-02-17 20:16:22 +01:00
parent da3e38d5ff
commit 343d2c7f91
3 changed files with 15 additions and 0 deletions

View File

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