From 69a7b14d723f0145df9eb2cb2fcf40b50b48a3ff Mon Sep 17 00:00:00 2001 From: Elmsroth Date: Fri, 29 May 2020 09:47:14 +0200 Subject: [PATCH] Add GameObjectAI Support --- GlobalMethods.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GlobalMethods.h b/GlobalMethods.h index 26a4e5d..eb01788 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -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); }