bdUnitframes

bdUnitframes

40.8k Downloads

Show Casttarget on Castbar

pquerner opened this issue ยท 1 comments

commented

Show optional cast target.
Ie. "Flash of Light --> <Targetname>"

commented

local UNIT_SPELLCAST_SENT = function (self, event, unit, spell, rank, target, castid)
	local castbar = self.Castbar
	castbar.curTarget = (target and target ~= "") and target or nil

	if castbar.isTradeSkill then
		castbar.tradeSkillCastId = castid
	end
end

		if(not (unit and unit:match'%wtarget$')) then
//...
			self:RegisterEvent('UNIT_SPELLCAST_SENT', UNIT_SPELLCAST_SENT, true)
//..
		end

THats from ElVUI