WeakAuras

WeakAuras

206M Downloads

UNIT_SPELLCAST_SENT:player does not trigger custom function

spamwax opened this issue ยท 4 comments

commented

Describe the bug

UNIT_SPELLCAST_SENT should be sent to custom trigger function if it's filtered using :player format, but it is not sent and trigger function is not called.

Do you have an error log of what happened?
No error is reported by bugsack or bug-grabber

To Reproduce

Steps to reproduce the behavior:

  1. Create an aura
  2. Set trigger to Custom->Event
  3. In Event(s) field enter UNIT_SPELLCAST_SENT:player
  4. In Custom Trigger enter a print for debug:
function(event, arg1)
    if not arg1 then arg1 = "empty" end
    
    print(string.format("(%s), arg1: >>%s<<", event, arg1))
    return true
end
  1. Set Hide to Timed and enter any number, I used 3
  2. Start casting a spell
  3. No message is printed!

However if :player is removed and I cast a spell I see something like this (using above funtion)

(UNIT_SPELLCAST_SENT), arg1: >>player<<

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes, WA is the only addon

Which version of WeakAuras are you using?
3.0.4

Are you on World of Warcraft Classic or Retail?

  • Classic
  • Retail
  • Beta (Shadowlands 9.0.2.36292)

Was it working in a previous version? If yes, which was the last good one?
I am not sure! My limited tests showed that despite event's documentation this event is only fired when player starts casting but even if that is true adding a :player should not completely ignore the event.

commented

That's not a bug. The :unit suffix uses the RegisterUnitEvent function, whereas without the suffix it is using the RegisterEvent function.

The former function should be used for all events that can be filtered by unit. UNIT_SPELLCAST_SENT does not fall into that category.

commented

Thanks for info, where do I find info/list of events that fall into either category?

commented

I'm not sure blizzard has documented that somewhere.

commented

So old fashion trial and error I guess.