Remove classic era checks for functions that were added.

This commit is contained in:
Flamanis
2023-08-31 15:40:06 -05:00
parent 5cef044c5c
commit bc2ab474e7
5 changed files with 13 additions and 35 deletions
+6 -11
View File
@@ -1055,18 +1055,13 @@ do
for index, child in ipairs(Threat.childs) do
local instance = child.instance
if (child.enabled and instance:IsEnabled()) then
if (not DetailsFramework.IsClassicWow()) then
local isTanking, status, threatPercent, rawthreatpct, threatvalue = _UnitDetailedThreatSituation("player", "target")
if (threatPercent) then
child.text:SetText(math.floor(threatPercent).."%")
if (Threat.isTank) then
child.text:SetTextColor(math.abs(threatPercent - 100) * 0.01, threatPercent * 0.01, 0, 1)
else
child.text:SetTextColor(threatPercent * 0.01, math.abs(threatPercent - 100) * 0.01, 0, 1)
end
local isTanking, status, threatPercent, rawthreatpct, threatvalue = _UnitDetailedThreatSituation("player", "target")
if (threatPercent) then
child.text:SetText(math.floor(threatPercent).."%")
if (Threat.isTank) then
child.text:SetTextColor(math.abs(threatPercent - 100) * 0.01, threatPercent * 0.01, 0, 1)
else
child.text:SetText("0%")
child.text:SetTextColor(1, 1, 1, 1)
child.text:SetTextColor(threatPercent * 0.01, math.abs(threatPercent - 100) * 0.01, 0, 1)
end
else
child.text:SetText("0%")