Game/Scripting: Add OnGameEvent hook for game objects.
Called when specific game event starts
This commit is contained in:
1 parent
0b31236470
commit
e956ea4e62
3 files changed
+15
No files matched your search
@@ -1510,6 +1510,11 @@ InstanceScript* ScriptMgr::CreateInstanceData(InstanceMap* map)
|
||||
return tmpscript->GetInstanceScript(map);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnGameEvent(bool start, uint16 eventId)
|
||||
{
|
||||
FOREACH_SCRIPT(GameObjectScript)->OnGameEvent(start, eventId);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnDummyEffect(Unit* caster, uint32 spellId, SpellEffIndex effIndex, Item* target)
|
||||
{
|
||||
ASSERT(caster);
|
||||
|
||||
Reference in new issue
Block a user