Commits

Anonymous committed 9ed94db

Fixing frame showing on mindcontrolled allies.

Comments (0)

Files changed (1)

 
     local catform = UnitAura("player", FBNLite.Spells["Cat Form"]);
     local bearform = UnitAura("player", FBNLite.Spells["Bear Form"]);
-    local showSuggestionFrame = (UnitName("target") ~= nil and UnitIsFriend("player","target") == nil and UnitHealth("target") > 0 and ((catform ~= nil) or (bearform ~= nil)))
+    local showSuggestionFrame = (UnitName("target") ~= nil and (UnitIsFriend("player","target") == nil or UnitAffectingCombat("player")) and UnitHealth("target") > 0 and ((catform ~= nil) or (bearform ~= nil)))
 
     SuggestionFrameSetVisibility(showSuggestionFrame or not FBNLiteDB.locked)
     OoCFrameSetVisibility(FBNLiteDB.OoCFrameShow or not FBNLiteDB.locked)