# HG changeset patch # User Chris Mellon # Date 1287208600 18000 # Node ID a6f5a0f2d4295896aa83f49aadf132fb50cbf4e4 # Parent 27aa0d9ffe438066c9586530bc858124840d4f6e correctly position debuffs when temp enchants are present diff -r 27aa0d9ffe43 -r a6f5a0f2d429 KBF.lua --- 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