Fix tooltip (debuff was showing buff tooltip)

This commit is contained in:
Logan Payton
2018-06-06 17:27:16 -04:00
parent f3ce4a0f98
commit 2222abe39c
+2 -1
View File
@@ -80,7 +80,8 @@ local HIDDEN = 0
local function UpdateTooltip(self)
if self:GetParent().__owner.unit == "player" then
GameTooltip:SetPlayerBuff(self:GetID() - 1)
local index = GetPlayerBuff(self:GetID() - 1, self.filter)
GameTooltip:SetPlayerBuff(index)
elseif self.filter == 'HELPFUL' then
GameTooltip:SetUnitBuff(self:GetParent().__owner.unit, self:GetID(), self.filter)
else