From 8128ec1401e2ed1810f9af663989799f56ff411f Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 12 May 2019 20:40:39 +0200 Subject: [PATCH] unitframes: run events on unit happiness --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index d6f0c113..26615936 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -615,7 +615,7 @@ function pfUI.uf.OnEvent() pfUI.uf:RefreshUnit(this, "lootIcon") elseif event == "PARTY_LEADER_CHANGED" then pfUI.uf:RefreshUnit(this, "leaderIcon") - elseif event == "UNIT_PET" and this.label == "pet" then + elseif ( event == "UNIT_HAPPINESS" or event == "UNIT_PET" ) and this.label == "pet" then pfUI.uf:RefreshUnit(this) -- UNIT_XXX Events