Add GameObjectAI Support

This commit is contained in:
Elmsroth
2020-05-29 09:47:14 +02:00
parent f7adf33028
commit 69a7b14d72

View File

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