View Single Post
01-30-10, 06:15 AM   #4
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Originally Posted by wurmfood View Post
Code:
local postCastStart = function(self, event, unit, name, rank, text, castid, interrupt)
	if( interrupt ) then
		self.Castbar.bg:Hide()
		self.Castbar.Shield:Show()
	else
		self.Castbar.bg:Show()
		self.Castbar.Shield:Hide()
	end
end

local spellInterruptable = function(self, event, unitID)
	if( self.unit == unitID ) then
		if( event == 'UNIT_SPELLCAST_NOT_INTERRUPTABLE' ) then
			self.Castbar.bg:Hide()
			self.Castbar.Shield:Show()
		else
			self.Castbar.bg:Show()
			self.Castbar.Shield:Hide()
		end
	end
end
hey wurm thx for the reply i was just wondering if

local postCastStart = function(self, event, unit, name, rank, text, castid, interrupt)
if( interrupt ) then
self.Castbar.bg:Hide()
self.Castbar.Shield:Show()
else
self.Castbar.bg:Show()
self.Castbar.Shield:Hide()
end
end

is at all necessary?

Last edited by alimjocox : 01-30-10 at 06:17 AM.
  Reply With Quote