Originally Posted by Timewasted
I would think that adding a check for either "UnitExists("target")" or "UnitName("target") ~= nil" would do what you want. There's also a PLAYER_TARGET_CHANGED event, but it seems that you'd end up calling UnitExists or UnitName anyways.
|
Specifically, what you probably want to add is:
elseif (event == PLAYER_TARGET_CHANGED) then
if (UnitExists("target"))
RuneFrame:SetAlpha(.7)
MultiBarBottomLeft:Show()
else
RuneFrame:SetAlpha(0)
MultiBarBottomLeft:Hide()
end
I can't guarantee it'll work.
Edit: That's probably missing a check whether you're in combat or not.