Hi! I'm new to Lua
I'm trying to apply WoW ingame proc glow effect to ActionButton if player has a certain buff.
Here is the code
Code:
frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function(self, elapsed)
if ( UnitBuff("player", "Molten Armor") ) then
ActionButton_ShowOverlayGlow(ActionButton1)
else
ActionButton_HideOverlayGlow(ActionButton1)
end
end)
If player has Molten Armor then add glow effect to ActionButton1 else dont show glow effect at all.
This code is not working for me. Need help