nameplates: fix debuff display

This commit is contained in:
shagu
2017-07-02 23:47:39 +02:00
parent f3458e7953
commit c487288454
+3 -3
View File
@@ -181,7 +181,7 @@ pfUI:RegisterModule("nameplates", function ()
-- add debuff frames
if C.nameplates["showdebuffs"] == "1" then
if this.debuffs == nil then this.debuffs = {} end
if not this.debuffs then this.debuffs = {} end
for j=1, 16, 1 do
if this.debuffs[j] == nil then
this.debuffs[j] = this:CreateTexture(nil, "BORDER")
@@ -446,9 +446,9 @@ pfUI:RegisterModule("nameplates", function ()
end
-- update debuffs
if this.debuffs and C.nameplates["showdebuffs"] ~= "1" then
if this.debuffs and C.nameplates["showdebuffs"] == "1" then
if UnitExists("target") and healthbar:GetAlpha() == 1 then
local j = 1
local j = 1
local k = 1
for j, e in ipairs(pfUI.nameplates.debuffs) do
this.debuffs[j]:SetTexture(pfUI.nameplates.debuffs[j])