Skip to content

Commit

Permalink
Fix #953
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviana committed Oct 8, 2022
1 parent 4cd58d8 commit e136705
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions libs/oUF_Plugins/oUF_TagsWithHeal/oUF_TagsWithHeal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ local _ENV = {
end
end
end,
UnitHasHealthData = function(unit) return not UnitPlayerControlled(unit) or UnitIsUnit("player", unit) or UnitIsUnit("pet", unit) or UnitPlayerOrPetInParty(unit) or UnitPlayerOrPetInRaid(unit) end,
DruidForms = {
[24858] = GetSpellInfo(24858), --moonkin
[1066] = GetSpellInfo(1066), -- seal
Expand Down Expand Up @@ -459,12 +458,6 @@ local tagStrings = {
else
return DEAD
end
elseif not UnitHasHealthData(unit) then
if maxhp < 1 then
return "0%"
else
return math.ceil((hp / maxhp) * 100).."%"
end
end
return hp.."/"..maxhp
end]],
Expand All @@ -482,12 +475,6 @@ local tagStrings = {
else
return DEAD
end
elseif not UnitHasHealthData(unit) then
if maxhp < 1 then
return "0%"
else
return math.ceil((hp / maxhp) * 100).."%"
end
end
return hp.."/"..maxhp.." "..math.ceil((UnitHealth(unit) / UnitHealthMax(unit)) * 100).."%"
end]],
Expand All @@ -506,12 +493,6 @@ local tagStrings = {
return GHOST
elseif not UnitIsConnected(unit) then
return FRIENDS_LIST_OFFLINE
elseif not UnitHasHealthData(unit) then
if maxhp < 1 then
return "0%"
else
return math.ceil((hp / maxhp) * 100).."%"
end
end
if hp > 1000000 then
hp = (math.floor(hp/10000)/100).."M"
Expand Down Expand Up @@ -540,12 +521,6 @@ local tagStrings = {
return GHOST
elseif not UnitIsConnected(unit) then
return FRIENDS_LIST_OFFLINE
elseif not UnitHasHealthData(unit) then
if maxhp < 1 then
return "0%"
else
return math.ceil((hp / maxhp) * 100).."%"
end
end
if hp > 1000000 then
hp = (math.floor(hp/10000)/100).."M"
Expand Down

0 comments on commit e136705

Please sign in to comment.