- 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:
Parnic
2009-05-12 04:09:31 +00:00
parent 045f492742
commit 4c3d5e14f0

View File

@ -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