mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update np
This commit is contained in:
@@ -344,24 +344,6 @@ function mod:UnitLevel(frame)
|
||||
end
|
||||
|
||||
function mod:GetUnitInfo(frame)
|
||||
if UnitExists("target") == 1 and frame:GetParent():IsShown() and frame:GetParent():GetAlpha() == 1 then
|
||||
if UnitIsPlayer("target") then
|
||||
if UnitIsEnemy("target", "player") then
|
||||
return 2, "ENEMY_PLAYER"
|
||||
else
|
||||
return 5, "FRIENDLY_PLAYER"
|
||||
end
|
||||
else
|
||||
if UnitIsEnemy("target", "player") then
|
||||
return 2, "ENEMY_NPC"
|
||||
elseif UnitReaction("target", "player") == 4 then
|
||||
return 4, "ENEMY_NPC"
|
||||
else
|
||||
return 5, "FRIENDLY_NPC"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local r, g, b = mod:RoundColors(frame.oldHealthBar:GetStatusBarColor())
|
||||
if r == 1 and g == 0 and b == 0 then
|
||||
return 2, "ENEMY_NPC"
|
||||
|
||||
Reference in New Issue
Block a user