From 9bff773d2dee64647bdac7b5e301050aace1ade5 Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Sat, 27 Aug 2016 20:05:39 +0200 Subject: [PATCH] fix energy/mana/rage flicker in raids --- modules/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/player.lua b/modules/player.lua index 7c2802e5..4ba67270 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -44,7 +44,7 @@ pfUI:RegisterModule("player", function () pfUI.uf.player:RegisterEvent("PARTY_LOOT_METHOD_CHANGED") pfUI.uf.player:SetScript("OnEvent", function() - if event == "UNIT_DISPLAYPOWER" or event == "PLAYER_ENTERING_WORLD" then + if ( event == "UNIT_DISPLAYPOWER" and arg1 and arg1 == "player" ) or event == "PLAYER_ENTERING_WORLD" then pfUI.uf.player.power.bar:SetValue(0) end