mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
DiffPartyRecords (0x005E5510) already sets bit 0x80 when the zone in a party record (+0x14) differs, but SignalPartyRecordChanges (0x005E5720) raises nothing for it. The existing SignalSite redirects (the calls in ReadPartyMemberStats and ComparePartyRecord, and the AddPartyMember tail) now fire UNIT_AREA_CHANGED (unitTarget) on that bit, after the engine's own events, once per token of the member. The server sends the zone only to members that cannot see the player. A member in view is built with the player's own zone (BuildPartyRecord stores s_zoneId), the same zone GetRaidRosterInfo gives for a held object, so ComparePartyRecord sets the bit when a member comes into view from another zone. CGPlayer_C::PostInit skips ComparePartyRecord for the active player, so "player" gets no event.