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)
This commit is contained in:
Skjalf
2023-09-17 10:18:13 -03:00
committed by GitHub
parent 4b21f01b91
commit 71de2e5c26
@@ -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;
}