Originally Posted by Phanx
(2) Modify your event handler code to explicitly check whether the fired event is PLAYER_REGEN_ENABLED before hiding the frame:
Code:
if event == "PLAYER_REGEN_DISABLED" then
self:Show()
else
self:Hide()
end
|
Should be:
Code:
if event == "PLAYER_REGEN_DISABLED" then
self:Show()
elseif event == "PLAYER_REGEN_ENABLED" then
self:Hide()
end