UNIT_SPELLCAST_SENT not firing
View Single Post
11-09-14, 09:15 AM
A Pyroguard Emberseer
Join Date: Feb 2007
Originally Posted by
This fixes it. Any thoughts on why the event isn't firing on the unit in this case? Also, thanks for the help.
When you register a UNIT_* event on a frame in oUF, it ties the unit the event fires for to the unit associated with the frame.
So, if you register say UNIT_HEALTH on your player frame, the function will only fire if the event fired for the player unit.
The 3rd argument to frame:RegisterEvent() is to override this check, which is why the argument is called "unitless"
See this source for more details:
In the past, oUF's event handler checked everything itself, but somewhere during Cata or Mists we got a new method called RegisterUnitEvent to do this work for us, and is what oUF uses today.
View Public Profile
Send a private message to p3lim
Find More Posts by p3lim