KUI_FriendHighlight

KUI_FriendHighlight

11.3k Downloads

No Guild icon needed on the personal bar

tflo opened this issue ยท 1 comments

commented

I think you agree with me that the Guild icon should not be displayed on the personal bar (aka Personal Resource Display), as it is somewhat logic that my current toon is in the same guild as my current toon:

image

Only tested for one day, but this simple check seems to fix it fine:

diff --git a/KUI_FriendHighlight/KUI_FriendHighlight.lua b/KUI_FriendHighlight/KUI_FriendHighlight.lua
--- a/KUI_FriendHighlight/KUI_FriendHighlight.lua
+++ b/KUI_FriendHighlight/KUI_FriendHighlight.lua
@@ -7,9 +7,9 @@
 local function Frame_UpdateGuildText(f)
     f.FriendHighlight_UpdateGuildText(f);
 
-    if UnitIsPlayer(f.unit) then
+    if UnitIsPlayer(f.unit) and not UnitIsUnit(f.unit, 'player') then
         local friend = C_FriendList.IsFriend(UnitGUID(f.unit))
         if friend then
             mod:ShowFriendIcon(f)
             return
         end
commented

Thanks for catching this and working up a fix. Truth be told, it took me quite a while to remember how to turn Personal Resource Display back on to test it!

Fixed in 1.0.18.