mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Added base BG methods and hooks
This has only been tested on Mangos Zero and will definitely need tweaking on Trinity More methods will be added SHORTLY
This commit is contained in:
10
HookMgr.cpp
10
HookMgr.cpp
@@ -1932,3 +1932,13 @@ CreatureAI* Eluna::GetAI(Creature* creature)
|
||||
return NULL;
|
||||
return new ElunaCreatureAI(creature);
|
||||
}
|
||||
|
||||
void Eluna::OnBGStart(BattleGround* bg, BattleGroundTypeId bgId, uint32 instanceId)
|
||||
{
|
||||
ENTRY_BEGIN(BGEventBindings, bg->GetTypeID(), BG_EVENT_ON_START, return);
|
||||
Push(L, bg);
|
||||
Push(L, bgId);
|
||||
Push(L, instanceId);
|
||||
ENTRY_EXECUTE(0);
|
||||
ENDCALL();
|
||||
}
|
||||
Reference in New Issue
Block a user