- added support for binding a custom bar/counter to a larger variety of units (pets, focus targets, etc.)

This commit is contained in:
Parnic
2009-04-18 06:37:01 +00:00
parent e115ea51f6
commit 7a049340c2
2 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@ local AceOO = AceLibrary("AceOO-2.0")
IceCustomBar = AceOO.Class(IceUnitBar)
local validUnits = {"player", "target"}
local validUnits = {"player", "target", "focus", "pet", "vehicle", "targettarget"}
local buffOrDebuff = {"buff", "debuff"}
IceCustomBar.prototype.auraDuration = 0
@ -21,6 +21,9 @@ function IceCustomBar.prototype:Enable(core)
IceCustomBar.super.prototype.Enable(self, core)
self:RegisterEvent("UNIT_AURA", "UpdateCustomBar")
self:RegisterEvent("UNIT_PET", "UpdateCustomBar")
self:RegisterEvent("PLAYER_PET_CHANGED", "UpdateCustomBar")
self:RegisterEvent("PLAYER_FOCUS_CHANGED", "UpdateCustomBar")
self:Show(true)