mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Use the engine's own aura tests where C_UnitAuras guessed or gave up: - RAID calls the two tests behind UnitBuff/UnitDebuff's raid-filter argument (castable buff 0x4B3870, known dispel type 0x4B3920); isRaid reports the same answer. - CANCELABLE / NOT_CANCELABLE read the descriptor's cancelable bit. - PLAYER also counts a caster whose charmer or creator is the player (totems, guardians, charmed units), as 4.3.4's IsAuraCaster does. The charmer-or-creator read moves to Unit::Identity::OwnerGuid. - Filter tokens and spell-name lookups ignore case (SStrCmpI). - castByPlayer (UnitAura position 13) is a player caster only, as in 4.3.4; isFromPlayerOrPlayerPet keeps pets. - canApplyAura: the player or pet knows the spell and it applies an aura. - Player timers look up the buff record by slot and honour its until-cancelled flag, so a permanent aura no longer reads the stale expiry its slot kept from an earlier aura. Corrects the player-buff record and visible-aura comments in Offsets.h.