Quantcast
WoWInterface - View Single Post - Detecting a spell sound or registering a callback on it
View Single Post
03-07-18, 12:19 AM   #6
Eungavi
A Theradrim Guardian
Join Date: Nov 2017
Posts: 64
Originally Posted by Banknorris View Post
Usually when you apply a dot, hot, aura on a target that does not have it from you, you get a SPELL_AURA_APPLIED as your combat log sub event and when reapplying a non-expired dot, hot, aura you get a SPELL_AURA_REFRESH sub-event instead. Maybe that is the case.
Hi Banknorris,

The first thing that I've done with COMBAT_LOG_EVENT_UNFILTERED was to see which sub events are fired with those spells (192657 and 192660).

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  3. f:SetScript("OnEvent", function(self, event, ...)
  4.     local _, subEvent, _, sourceGUID, _, _, _, _, _, _, _, spellID = ...
  5.  
  6.     if sourceGUID == UnitGUID("player") and (spellID and (spellID == 192660 or spellID == 192657)) then
  7.         local spellName = GetSpellInfo(spellID)
  8.         print(subEvent, spellID, spellName)
  9.     end
  10. end)

Sadly, the only sub event fired was SPELL_DAMAGE



If I'm guessing correctly, SPELL_AURA_APPLIED and SPELL_AURA_REFRESH are not fired since this spell doesn't even apply any debuff on enemies.

So... yeah :/

Last edited by Eungavi : 03-07-18 at 04:42 AM.
  Reply With Quote