feat: fire CURRENT_SPELL_CAST_CHANGED when player begins casting

CURRENT_SPELL_CAST_CHANGED fires when the player starts a new cast
via handleSpellStart. Some addons register for this as a catch-all
signal that the current spell state changed, complementing the more
specific UNIT_SPELLCAST_START/STOP/FAILED events.
This commit is contained in:
Kelsi 2026-03-22 20:49:25 -07:00
parent abe5cc73df
commit bafe036e79

View file

@ -19574,6 +19574,7 @@ void GameHandler::handleSpellStart(network::Packet& packet) {
currentCastSpellId = data.spellId;
castTimeTotal = data.castTime / 1000.0f;
castTimeRemaining = castTimeTotal;
if (addonEventCallback_) addonEventCallback_("CURRENT_SPELL_CAST_CHANGED", {});
// Play precast (channeling) sound with correct magic school
// Skip sound for profession/tradeskill spells (crafting should be silent)