buff: use buff.bid cache for tooltips

This commit is contained in:
shagu
2018-03-29 16:42:11 +02:00
parent 50ea0749dd
commit fc0106e741
+2 -2
View File
@@ -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)