Good point. You probably want to change this line:
Code:
if UnitIsUnit("target", "arena"..i) then
to this:
Code:
if UnitIsUnit(unit, "arena"..i) then
__________________ Retired author of too many addons.
Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions.