mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- replaced AceEvent-2.0 with AceEvent-3.0/AceTimer-3.0
This commit is contained in:
@ -523,10 +523,10 @@ function IceTargetHealth.prototype:Enable(core)
|
||||
IceTargetHealth.super.prototype.Enable(self, core)
|
||||
|
||||
if self.registerEvents then
|
||||
self:RegisterEvent("UNIT_HEALTH", "Update")
|
||||
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
||||
self:RegisterEvent("UNIT_FLAGS", "Update")
|
||||
self:RegisterEvent("UNIT_FACTION", "Update")
|
||||
self:RegisterEvent("UNIT_HEALTH", "UpdateEvent")
|
||||
self:RegisterEvent("UNIT_MAXHEALTH", "UpdateEvent")
|
||||
self:RegisterEvent("UNIT_FLAGS", "UpdateEvent")
|
||||
self:RegisterEvent("UNIT_FACTION", "UpdateEvent")
|
||||
self:RegisterEvent("RAID_TARGET_UPDATE", "UpdateRaidTargetIcon")
|
||||
self:RegisterEvent("UPDATE_FACTION", "CheckPvP")
|
||||
self:RegisterEvent("PLAYER_FLAGS_CHANGED", "CheckPvP")
|
||||
@ -621,6 +621,10 @@ function IceTargetHealth.prototype:EnableClickTargeting(bEnable)
|
||||
end
|
||||
|
||||
|
||||
function IceTargetHealth.prototype:UpdateEvent(event, unit)
|
||||
self:Update(unit)
|
||||
end
|
||||
|
||||
function IceTargetHealth.prototype:Update(unit)
|
||||
IceTargetHealth.super.prototype.Update(self)
|
||||
|
||||
|
Reference in New Issue
Block a user