unitframes: add 40y-rangecheck

This commit is contained in:
shagu
2017-04-16 16:07:41 +02:00
parent 31012d4921
commit 0b3e9df0d9
11 changed files with 115 additions and 1 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
end
if this.config.faderange == "1" then
if CheckInteractDistance(this.label .. this.id, 4) or not UnitName(this.label .. this.id) then
if pfUI.api.UnitInRange(this.label .. this.id, 4) or not UnitName(this.label .. this.id) then
if this:GetAlpha() ~= 1 then
this:SetAlpha(1)
if this.config.portrait == "bar" then