--- Localization/enUS.lua Thu Oct 15 13:52:57 2009 +++ Localization/enUS.lua Fri Oct 16 20:16:41 2009 @@ -19,11 +19,15 @@ L["All buffs on me"] = true L["Show the duration of buffs on me on this bar"] = true L["All debuffs on me"] = true -L["Show the duration of my debuffs on me on this bar"] = true +L["Show the duration of debuffs on me on this bar"] = true L["My buffs on me"] = true L["Show the duration of my buffs on me on this bar"] = true L["My debuffs on me"] = true -L["Show the duration of debuffs on me on this bar"] = true +L["Show the duration of my debuffs on me on this bar"] = true +L["All buffs on my pet"] = true +L["Show the duration of buffs on my pet on this bar"] = true +L["All debuffs on my pet"] = true +L["Show the duration of debuffs on my pet on this bar"] = true L["My focus buffs"] = true L["Show the duration of my buffs on my focus on this bar"] = true L["My focus debuffs"] = true --- Modules/Auras.lua Thu Oct 15 13:52:57 2009 +++ Modules/Auras.lua Fri Oct 16 20:10:21 2009 @@ -9,14 +9,21 @@ L["Show the duration of buffs on me on this bar"]) SexyCooldown.RegisterFilter(self, "DEBUFFS_ON_ME", L["All debuffs on me"], - L["Show the duration of my debuffs on me on this bar"]) + L["Show the duration of debuffs on me on this bar"]) SexyCooldown.RegisterFilter(self, "MY_BUFFS_ON_ME", L["My buffs on me"], L["Show the duration of my buffs on me on this bar"]) SexyCooldown.RegisterFilter(self, "MY_DEBUFFS_ON_ME", L["My debuffs on me"], - L["Show the duration of debuffs on me on this bar"]) + L["Show the duration of my debuffs on me on this bar"]) + + SexyCooldown.RegisterFilter(self, "BUFFS_ON_PET", + L["All buffs on my pet"], + L["Show the duration of buffs on my pet on this bar"]) + SexyCooldown.RegisterFilter(self, "DEBUFFS_ON_PET", + L["All debuffs on my pet"], + L["Show the duration of debuffs on my pet on this bar"]) SexyCooldown.RegisterFilter(self, "MY_FOCUS_BUFFS", L["My focus buffs"], @@ -48,6 +55,7 @@ function mod:Refresh() self:UpdateUnit("player") + self:UpdateUnit("pet") self:UpdateUnit("target") self:UpdateUnit("focus") end @@ -94,7 +102,7 @@ end function mod:UpdateUnit(unit) - if unit ~= "player" and unit ~= "target" and unit ~= "focus" then return end + if unit ~= "player" and unit ~= "pet" and unit ~= "target" and unit ~= "focus" then return end wipe(tmp) existingBuffs[unit] = existingBuffs[unit] or {} @@ -111,6 +119,9 @@ check(unit, "buff", "MY_BUFFS_ON_ME", UnitBuff, "HELPFUL", "player") check(unit, "debuff", "MY_DEBUFFS_ON_ME", UnitDebuff, "HARMFUL", "player") + elseif unit == "pet" then + check(unit, "buff", "BUFFS_ON_PET", UnitBuff, "HELPFUL") + check(unit, "debuff", "DEBUFFS_ON_PET", UnitDebuff, "HARMFUL") elseif unit == "target" then check(unit, "buff", "ALL_TARGET_BUFFS", UnitBuff, "HELPFUL") check(unit, "debuff", "ALL_TARGET_DEBUFFS", UnitDebuff, "HARMFUL")