View Single Post
03-29-22, 12:22 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
frame:RegisterEvent will send the event for all units (it will ignore the "player" parameter).

If you want to register an event for a particular unit (or units) you need to use frame:RegisterUnitEvent

Code:
local stance = CreateFrame("Frame")
stance:RegisterUnitEvent("UNIT_AURA", "player")
stance:RegisterEvent("PLAYER_ENTERING_WORLD")
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-29-22 at 12:28 PM.
  Reply With Quote