summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSkjalf <47818697+Nyeriah@users.noreply.github.com>2023-09-17 10:18:13 -0300
committerGitHub <noreply@github.com>2023-09-17 10:18:13 -0300
commit71de2e5c263e16905f548427c1c8e899bb6c09a3 (patch)
tree4ca48104df7e548c027bc3b8feef14fefdf0b677 /src
parent4b21f01b91ad7ee4edd3a09a59366b5f73287e94 (diff)
fix(Core/GameObject): Also send EventInform() calls for GAMEOBJECT_TY… (#17283)
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)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index 1365834de9..ef2723897b 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;
}