mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Add GameObjectAI Support
This commit is contained in:
@@ -1638,6 +1638,7 @@ namespace LuaGlobalFunctions
|
||||
// DEBUG_LOG(GetMangosString(LANG_GAMEOBJECT_CURRENT), gInfo->name, db_lowGUID, x, y, z, o);
|
||||
|
||||
map->Add(pGameObj);
|
||||
pGameObj->AIM_Initialize();
|
||||
|
||||
eObjectMgr->AddGameobjectToGrid(db_lowGUID, eObjectMgr->GetGOData(db_lowGUID));
|
||||
|
||||
@@ -1661,6 +1662,7 @@ namespace LuaGlobalFunctions
|
||||
pGameObj->SetRespawnTime(durorresptime / IN_MILLISECONDS);
|
||||
|
||||
map->Add(pGameObj);
|
||||
pGameObj->AIM_Initialize();
|
||||
|
||||
Eluna::Push(L, pGameObj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user