From 4c3d5e14f09347d7d4d85fd9d3e2e3fa373e11ad Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 12 May 2009 04:09:31 +0000 Subject: [PATCH] - 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") --- modules/TargetCast.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/TargetCast.lua b/modules/TargetCast.lua index 4c4159f..eed6e91 100644 --- a/modules/TargetCast.lua +++ b/modules/TargetCast.lua @@ -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