mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
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)
Closes #16506
(cherry-picked from commit 6904073c9c)
This commit is contained in:
@@ -1442,7 +1442,10 @@ void GameObject::Use(Unit* user)
|
||||
player->SendCinematicStart(info->camera.camera);
|
||||
|
||||
if (info->camera.eventID)
|
||||
{
|
||||
GetMap()->ScriptsStart(sEventScripts, info->camera.eventID, player, this);
|
||||
EventInform(info->camera.eventID, user);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user