From fc0106e741967123834004fecadd3bb1b9a6bb0a Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 29 Mar 2018 16:42:11 +0200 Subject: [PATCH] buff: use buff.bid cache for tooltips --- modules/buff.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/buff.lua b/modules/buff.lua index 1a00688b..cf5af686 100644 --- a/modules/buff.lua +++ b/modules/buff.lua @@ -106,7 +106,7 @@ pfUI:RegisterModule("buff", function () buff:SetScript("OnEnter", function() GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT") if this.mode == this.btype then - GameTooltip:SetPlayerBuff(GetPlayerBuff(this.bid, this.btype)) + GameTooltip:SetPlayerBuff(this.bid) elseif this.mode == "MAINHAND" then GameTooltip:SetInventoryItem("player", 16) elseif this.mode == "OFFHAND" then @@ -119,7 +119,7 @@ pfUI:RegisterModule("buff", function () end) buff:SetScript("OnClick", function() - CancelPlayerBuff(GetPlayerBuff(this.bid, this.btype)) + CancelPlayerBuff(this.bid) end) CreateBackdrop(buff)