mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- made sure that the target cast bar properly calls up to its super when targets are changed. this makes sure that the internal "i has a target" variable is updated and the alpha settings are then respected as they should be ("ooc and target" takes precedence over "ooc and not full")
This commit is contained in:
@ -28,15 +28,10 @@ end
|
||||
|
||||
|
||||
-- OVERRIDE
|
||||
function TargetCast.prototype:Enable(core)
|
||||
TargetCast.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "TargetChanged")
|
||||
end
|
||||
|
||||
|
||||
function TargetCast.prototype:TargetChanged(unit)
|
||||
if not (UnitExists(self.unit)) then
|
||||
TargetCast.super.prototype.TargetChanged(self, unit)
|
||||
|
||||
if not (self.target) then
|
||||
self:StopBar()
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user