Mercurial > wow > kbf
diff KBF.lua @ 19:a6f5a0f2d429
correctly position debuffs when temp enchants are present
author | Chris Mellon <arkanes@gmai.com> |
---|---|
date | Sat, 16 Oct 2010 00:56:40 -0500 |
parents | 27aa0d9ffe43 |
children | 54e30adde56b |
line wrap: on
line diff
--- a/KBF.lua Fri Oct 15 22:40:50 2010 -0500 +++ b/KBF.lua Sat Oct 16 00:56:40 2010 -0500 @@ -67,6 +67,7 @@ self:BindBarToWeaponEnchant(tempEnchant, 16) end self:UpdateBarExpirationTime(tempEnchant) + buffCount = buffCount + 1 end tempEnchant = self.secureFrame:GetAttribute("tempEnchant2") if tempEnchant and tempEnchant:IsShown() then @@ -74,6 +75,7 @@ self:BindBarToWeaponEnchant(tempEnchant, 17) end self:UpdateBarExpirationTime(tempEnchant) + buffCount = buffCount + 1 end -- debuffs @@ -99,7 +101,7 @@ self:SetBarAppearance(frame, name, icon, stacks, duration, expirationTime) frame:ClearAllPoints() -- position it under all the buffs, with a half-bar spacing - frame:SetPoint("TOP", self.anchor, "BOTTOM", 0, (buffCount * -16) - 8) + frame:SetPoint("TOP", self.anchor, "BOTTOM", 0, (buffCount * -16)) frame:Show() frame.filter = "HARMFUL" frame.unit = unit