mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Stuck auras (pfUI issue #20 part 2): a no-duration debuff (Ghost/Spirit in battlegrounds) stayed visible after the unit resurrected. It can only come from the Aura::Source cache fallback — the descriptor path re-reads the live aura array each call. The aura is cached with expirationMs == 0 (infinite), so OnWorldTick never expires it, and its real removal came via a bulk object drop (death/leave-visibility, then resurrect) rather than a per-aura removal, so OnAuraRemoved never fired to evict it. The infinite entry lingered and the fallback resurrected it on the now-alive unit. The fallback only exists for rogue stealth and party range fluctuation, which both clear the unit's entire aura array at once. Gate both fallback entry points on DescriptorHasVisibleAura: if the descriptor exposes any live aura it's authoritative, so a cache-only aura is genuinely gone. Stealth/range recovery is unaffected — those produce a wholesale-empty aura array, so the fallback still fires there exactly as before.