Thanks for help! But it worked for me only with this code
Code:
local f = CreateFrame("Button") --Button instead Frame
f:RegisterUnitEvent("UNIT_AURA", "player")
f:SetScript("OnEvent", function()
if UnitBuff("player", "Molten Armor") then
ActionButton_HideOverlayGlow(ActionButton1) --Reverse than and else
else
ActionButton_ShowOverlayGlow(ActionButton1)
end
end)
Could you explain me the "Reverse then and else" ? Looks like a bug or smth.