update Tooltip

This commit is contained in:
Crum
2018-07-19 00:09:27 -05:00
parent 6535b78269
commit 7459695a68
+3 -3
View File
@@ -287,7 +287,7 @@ function TT:SetPrice(tt, id, count)
end end
end end
function TT:SetAction(tt, id) function TT:SetAction(tt, buttonID)
if GameTooltipTextRight1:IsShown() then return end if GameTooltipTextRight1:IsShown() then return end
local itemName = GameTooltipTextLeft1:GetText() local itemName = GameTooltipTextLeft1:GetText()
if not itemName then return end if not itemName then return end
@@ -299,8 +299,8 @@ function TT:SetAction(tt, id)
if E.db.tooltip.itemPrice then if E.db.tooltip.itemPrice then
local count = 1 local count = 1
if IsConsumableAction(id) then if IsConsumableAction(buttonID) then
local actionCount = GetActionCount(id) local actionCount = GetActionCount(buttonID)
if actionCount and actionCount == GetItemCount(item) then if actionCount and actionCount == GetItemCount(item) then
count = actionCount count = actionCount
end end