Quantcast WoWInterface - View Single Post - ShowOverlayGlow
Thread: ShowOverlayGlow
View Single Post
Unread 11-23-12, 09:16 AM   #2
A Molten Giant
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 772
Thumbs up for trying!

Thing is you are looking out for a buff application, and you have a event for that that you can use (much better than having a OnUpdate script, because that runs each frame, not very necessary).

You need the event UNIT_AURA, a frame to work with and since this is a UNIT_* event we can use RegisterUnitEvent.

local f = CreateFrame("Frame")
f:RegisterUnitEvent("UNIT_AURA", "player")
f:SetScript("OnEvent", function()
  if UnitBuff("player", "Molten Armor") then
ActionButton1 is only for the default action bar, if you use an addon then you need to /fstack and find the frame name of your button.
Profile: Curse | Wowhead
Vlad is offline   Reply With Quote