mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
UNIT_SPELLCAST_INTERRUPTED vs FAILED now follows the failure reason, as 1.12 (0x6E4940, 0x6E2238) and 4.3.4 (HandleSpellFailedOrGo) decide it: SPELL_FAILED_INTERRUPTED / _COMBAT give INTERRUPTED, every other reason FAILED. A failure for the in-flight spell (read before the engine's handler pops it, its own test at 0x6E2201) ends the cast in progress and is reported with that cast's guid, then STOP. Casting while moving is a FAILED attempt, and line of sight or a dead target at the end of a cast is FAILED, not INTERRUPTED. A per-cast "reason reported" flag replaces the interrupt dedup window. Channels with SPELL_ATTR_EX3_HIDE_CHANNEL_BAR record no channel and fire no channel events, as 1.12's MSG_CHANNEL_START handler and 4.3.4 skip them. Add UNIT_SPELLCAST_INTERRUPTIBLE / _NOT_INTERRUPTIBLE: Spell::Cast watches the target and focus and fires when the notInterruptible answer for the same cast flips, as 4.3.4 does from the unit's aura update.