From f624ebf932bdf17665e2cc7565f11ff8c3943380 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Sep 2018 23:34:25 +0200 Subject: [PATCH] buff: use texture to check for buff existence --- modules/buff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/buff.lua b/modules/buff.lua index f6a5e0e0..0f9633e6 100644 --- a/modules/buff.lua +++ b/modules/buff.lua @@ -47,7 +47,7 @@ pfUI:RegisterModule("buff", function () buff.texture:SetTexture(GetInventoryItemTexture("player", 17)) buff.backdrop:SetBackdropBorderColor(GetItemQualityColor(GetInventoryItemQuality("player", 17) or 1)) end - elseif buff.bid >= 0 and (( buff.btype == "HARMFUL" and C.buffs.debuffs == "1" ) or ( buff.btype == "HELPFUL" and C.buffs.buffs == "1" )) then + elseif GetPlayerBuffTexture(buff.bid) and (( buff.btype == "HARMFUL" and C.buffs.debuffs == "1" ) or ( buff.btype == "HELPFUL" and C.buffs.buffs == "1" )) then -- Set Buff Texture and Border buff.mode = buff.btype buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))