mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 20:00:48 +00:00
tooltip: exclude pet from mobhealth
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ pfUI:RegisterModule("tooltip", 20400, function ()
|
|||||||
local level = UnitLevel("mouseover") or ""
|
local level = UnitLevel("mouseover") or ""
|
||||||
local index = name .. ":" .. level
|
local index = name .. ":" .. level
|
||||||
local ppp = MobHealth_PPP(index)
|
local ppp = MobHealth_PPP(index)
|
||||||
if perc and ppp and ppp > 0 then
|
if perc and ppp and ppp > 0 and not UnitIsUnit("mouseover", "pet") then
|
||||||
hp = round(perc * ppp)
|
hp = round(perc * ppp)
|
||||||
hpm = round(100 * ppp)
|
hpm = round(100 * ppp)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user