From 4049f5444a988470f252da8155edd59d4e5e5e13 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Wed, 23 Dec 2009 16:44:28 +0000 Subject: [PATCH] change to friendly unit detection git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@175 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Ovale.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ovale.lua b/Ovale.lua index 4fc127e..2ad1bc8 100644 --- a/Ovale.lua +++ b/Ovale.lua @@ -1489,7 +1489,7 @@ function Ovale:UpdateVisibility() self.frame:Hide() end - if Ovale.db.profile.apparence.targetHostileOnly and (UnitIsDead("target") or UnitCanCooperate("target", "player")) then + if Ovale.db.profile.apparence.targetHostileOnly and (UnitIsDead("target") or not UnitCanAttack("player", "target")) then self.frame:Hide() end end -- 1.7.9.5