Hi I have an addon for moving around DK runes and fading them out of combat. But now i WoD the cooldown spiral no longer seems to inherit the alpha from the frame it self, the scale also seems off (but I'm not sure on that)
Pic:
http://i.imgur.com/IYZoR19.jpg
The code I'm using is just a simple
RuneFrame:SetAlpha(RHaic) where RHaic is a local variable, this works fine on live but results in the cooldown spiral still showing when I'm testing it on the WoD beta. Is this related to the changes to animation and if so how do I fix it?
Code:
if (event == "PLAYER_ENTERING_WORLD" or event == "PLAYER_REGEN_ENABLED") and not UnitInVehicleControlSeat("player") then
RuneFrame:SetAlpha(RHaoc)
RuneFrame:SetScale(RHs)
elseif event == "PLAYER_REGEN_DISABLED" and not UnitInVehicleControlSeat("player") then
RuneFrame:SetAlpha(RHaic)
RuneFrame:SetScale(RHs)
end
if ((event == "UNIT_ENTERING_VEHICLE") and UnitInVehicleControlSeat("player")) then
local unitID = ...
if unitID == "player" then
RuneFrame:SetAlpha(RHaiv)
end
elseif event == "PLAYER_ENTERING_WORLD" then
if InCombatLockdown() then
RuneFrame:SetAlpha(RHaic)
RuneFrame:SetScale(RHs)
else
RuneFrame:SetAlpha(RHaoc)
RuneFrame:SetScale(RHs)
end
elseif event == "UNIT_EXITED_VEHICLE" then
local unitID = ...
if unitID == "player" then
if InCombatLockdown() then
RuneFrame:SetAlpha(RHaic)
RuneFrame:SetScale(RHs)
else
RuneFrame:SetAlpha(RHaoc)
RuneFrame:SetScale(RHs)
end
end
end