From 71de2e5c263e16905f548427c1c8e899bb6c09a3 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:18:13 -0300 Subject: [PATCH] =?UTF-8?q?fix(Core/GameObject):=20Also=20send=20EventInfo?= =?UTF-8?q?rm()=20calls=20for=20GAMEOBJECT=5FTY=E2=80=A6=20(#17283)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Core/GameObject): Also send EventInform() calls for GAMEOBJECT_TYPE_CAMERA - This allows object and zone AI to process events called by camera objects as well (previously only possible through event_scripts) (cherry-picked from commit https://github.com/TrinityCore/TrinityCore/commit/6904073c9cf2d6d1291bf976b8efff55edae74bc) --- src/server/game/Entities/GameObject/GameObject.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 1365834de..ef2723897 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1724,7 +1724,10 @@ void GameObject::Use(Unit* user) player->SendCinematicStart(info->camera.cinematicId); if (info->camera.eventID) + { GetMap()->ScriptsStart(sEventScripts, info->camera.eventID, player, this); + EventInform(info->camera.eventID); + } return; }