mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
With the Aura::Source caster cache in place, the PLAYER filter token is now derivable: restrict results to auras whose cached caster GUID matches the local player (Unit::Identity::PlayerGuid). Wired into every getter that takes a filter — GetAuraDataByIndex, GetUnitAuraBySpellID, GetAuraDataBySpellName, and GetUnitAuras — via a playerOnly flag threaded into the slot finders and the new Data::IsPlayerCast predicate. Auras whose cast we didn't observe (predate login / no SMSG_SPELL_GO) count as not-player-cast and are excluded, matching the best-effort caster model. Also fix GetUnitAuras range selection so a bare "PLAYER" (no HELPFUL/HARMFUL) returns both ranges restricted to player casts, instead of defaulting to helpful-only. RAID / CANCELABLE / nameplate filter tokens remain accepted-but-no-op.