mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
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:
parent
abe5cc73df
commit
bafe036e79
1 changed files with 1 additions and 0 deletions
|
|
@ -19574,6 +19574,7 @@ void GameHandler::handleSpellStart(network::Packet& packet) {
|
||||||
currentCastSpellId = data.spellId;
|
currentCastSpellId = data.spellId;
|
||||||
castTimeTotal = data.castTime / 1000.0f;
|
castTimeTotal = data.castTime / 1000.0f;
|
||||||
castTimeRemaining = castTimeTotal;
|
castTimeRemaining = castTimeTotal;
|
||||||
|
if (addonEventCallback_) addonEventCallback_("CURRENT_SPELL_CAST_CHANGED", {});
|
||||||
|
|
||||||
// Play precast (channeling) sound with correct magic school
|
// Play precast (channeling) sound with correct magic school
|
||||||
// Skip sound for profession/tradeskill spells (crafting should be silent)
|
// Skip sound for profession/tradeskill spells (crafting should be silent)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue