Commit a813de41 authored by Ivaria's avatar Ivaria
Browse files

Merge branch 'tbcc' into vanilla

parents 44eae4f2 cf61b553
......@@ -79,10 +79,16 @@ local VUHDO_getRedGreenForDistance = VUHDO_getRedGreenForDistance;
--
local tInfo;
local tIsInInstance;
function VUHDO_shouldDisplayArrow(aUnit)
tIsInInstance, _ = IsInInstance();
if tIsInInstance then
return false;
end
tInfo = VUHDO_RAID[aUnit];
return
not UnitIsUnit("player", aUnit)
return not UnitIsUnit("player", aUnit)
and tInfo
and (not tInfo["range"] or sIsAlways)
and (not sIsDeadOnly or tInfo["dead"])
......
......@@ -932,7 +932,7 @@ function VUHDO_getUnitDirection(aUnit)
tUnitX, tUnitY = VUHDO_getUnitMapPosition(aUnit);
if (tUnitX or 0) + (tUnitY or 0) <= 0 then return nil; end
tFacing = GetPlayerFacing();
tFacing = GetPlayerFacing() or 0;
tFacing = tFacing < 0 and tFacing + VUHDO_2_PI or tFacing;
return VUHDO_PI - VUHDO_atan2(tPlayerX - tUnitX, tUnitY - tPlayerY) - tFacing;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment