From b375ad4fb194d2da5f862895116f930e2501bb83 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 4 Jun 2019 09:19:25 +0200 Subject: [PATCH] tooltip: exclude pet from mobhealth --- modules/tooltip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tooltip.lua b/modules/tooltip.lua index d22f9368..0ebeeacc 100644 --- a/modules/tooltip.lua +++ b/modules/tooltip.lua @@ -132,7 +132,7 @@ pfUI:RegisterModule("tooltip", 20400, function () local level = UnitLevel("mouseover") or "" local index = name .. ":" .. level 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) hpm = round(100 * ppp) end