mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Reuses the C_LossOfControl classifier so the two never drift. Extract ClassifyControlLoss out of the LoC module into a shared Spell::CrowdControl: Classify(rec) returns the hard control-loss type string (stun/fear/silence/root/charm/confuse/pacify/possess/disarm) and still backs C_LossOfControl; IsCrowdControl(spellID) backs the aura filter. Crowd control is broader than loss of control: IsCrowdControl also counts movement slows / snares (SPELL_AURA_MOD_DECREASE_SPEED = 33, added to Offsets.h), which are crowd control but not a loss of control — so a Frostbolt/Hamstring slow is CROWD_CONTROL while C_LossOfControl still ignores it. Classify (LoC) is unchanged. Wire it as a third CcMode dimension on the Aura::Data::Match struct, checked in MatchesAura; tokenizer honors CROWD_CONTROL / !CROWD_CONTROL. Docs updated. Verified in-game: Psychic Scream (fear) and a Frostbolt slow both classify as CROWD_CONTROL; DoTs and buffs do not.