mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
SpellGo only sees directly-cast auras, so proc-applied debuffs (Shadow Weaving etc.) had no expiration. Co-hook two more engine functions that fire for every aura application: - CGUnit_C::OnAuraAdded (0x006123F0) - any aura newly occupying a slot, procs included; stamps now + base duration (no caster). - CGUnit_C::OnAuraStacksChanged (0x00612450) - re-stamps on a stack-count change so a climbing stacking debuff (Shadow Weaving 1->5) refreshes. Both pass fromCast=false to Store, which skips entries SpellGo already owns, so directly-cast auras keep their talented timing + caster regardless of hook order. Consolidate the object-GUID read into Unit::Identity:: GuidForObject so the lookup and the new hooks key the cache identically. Known limitation (documented): a refresh at MAX stacks (5->5) changes no client-visible aura field, so the server sends no UpdateField and no callback fires - there's no packet to hook. The countdown runs out and expirationTime falls back to 0 (unknown) while the aura still shows.