All pastes #98430 Raw Edit

Unnamed

public lua v1 · immutable
#98430 ·published 2006-07-24 14:36 UTC
rendered paste body
function BigWigsTwins:Scan()	if (UnitName("target") == (self.veklor or self.veknilash) and UnitAffectingCombat("target")) then		return true	elseif (UnitName("playertarget") == (self.veklor or self.veknilash) and UnitAffectingCombat("playertarget")) then		return true	else		local i		for i = 1, GetNumRaidMembers(), 1 do			if (UnitName("raid"..i.."target") == (self.veklor or self.veknilash) and UnitAffectingCombat("raid"..i.."target")) then				return true			end		end	end	local lasttarget = UnitName("target")	TargetByName(self.veklor, true)	if (UnitName("target") == self.veklor and UnitAffectingCombat("target")) then		TargetByName(lasttarget, true)		return true	end	TargetByName(self.veknilash, true)	if (UnitName("target") == self.veknilash and UnitAffectingCombat("target")) then		TargetByName(lasttarget, true)		return true	end	if (lasttarget) then		TargetByName(lasttarget, true)	else		ClearTarget()	end	return falseend