change to friendly unit detection
Sidoine De Wispelaere [12-23-09 - 16:44]
change to friendly unit detection
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@175 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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