mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -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
|
-- OVERRIDE
|
||||||
function TargetCast.prototype:Enable(core)
|
|
||||||
TargetCast.super.prototype.Enable(self, core)
|
|
||||||
|
|
||||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "TargetChanged")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function TargetCast.prototype:TargetChanged(unit)
|
function TargetCast.prototype:TargetChanged(unit)
|
||||||
if not (UnitExists(self.unit)) then
|
TargetCast.super.prototype.TargetChanged(self, unit)
|
||||||
|
|
||||||
|
if not (self.target) then
|
||||||
self:StopBar()
|
self:StopBar()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user