Files
ClassicAPI/src
Brues 939b52ae69 Recover dropped auras in C_UnitAuras; evict on removal
The 1.12 engine drops a unit's UNIT_FIELD_AURA slots when it loses sync with
the unit (rogue stealth, party range fluctuation) even though the auras are
still active server-side, so C_UnitAuras.GetAuraDataByIndex /
GetBuffDataByIndex returned nil for auras that are still up.

Fall back to the Aura::Source cache (caster/timing captured from
SMSG_SPELL_GO at cast time, which survives descriptor clears) when the
descriptor has no slot:

- Aura::Source: entries gain a helpful/harmful kind, recorded from the
  descriptor slot at application time (OnAuraAdded/OnAuraStacksChanged);
  SpellGo-only entries stay unknown and are excluded. New Enumerate() returns
  non-expired entries of a given kind for a unit.
- Aura::Data: a shared BuildTable feeds both the descriptor Push and a new
  cache-fed path; PushNthCacheFallback / AppendCacheFallbacks append cache
  entries after the descriptor ones, deduped against populated slots.
- Aura::Api: the index path and GetUnitAuras consult the fallback.

To keep the fallback from resurrecting auras that are genuinely gone
(replaced by a higher rank, dispelled, fell off early), co-hook OnAuraRemoved
(FUN_00612320) and evict the cache entry. A rogue stealthing does NOT route
through OnAuraRemoved (object-visibility drop, not per-aura removal), so
eviction and stealth-recovery coexist: real removals evict, visibility drops
don't.

Add FUN_ON_AURA_REMOVED offset.
Fixes #5
2026-06-28 13:47:26 -05:00
..
2026-06-04 15:43:19 -05:00
2026-06-18 23:23:26 -05:00
2026-05-14 14:24:11 -05:00
2026-05-09 22:15:14 -05:00
2026-05-29 03:54:17 -05:00
2026-05-14 14:24:11 -05:00
2026-05-17 20:50:10 -05:00
2026-05-19 18:30:13 -05:00
2026-05-25 23:37:14 -05:00
2026-05-30 22:36:30 -05:00
2026-06-23 02:00:52 -05:00
2026-06-07 15:18:56 -05:00
2026-05-30 03:54:37 -05:00
2026-05-16 17:58:07 -05:00
2026-05-12 21:51:46 -05:00
2026-05-14 14:24:11 -05:00
2026-05-24 01:38:28 -05:00
2026-05-07 10:47:34 -05:00