From bafe036e794652a70c805de50c30145591378372 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 22 Mar 2026 20:49:25 -0700 Subject: [PATCH] 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. --- src/game/game_handler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 6f8b7b19..1064eadd 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -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)