Bah, getting another headache. I'm in a raid with 3 (!) arms warriors, so naturally its ****ing up my macros. If -MY- Rend isnt first, then it will spam cast it thinking that its not up. I need it to check all the debuffs (i think) and cast rend only if NONE of those buffs are both not mine and not rend. I am not sure how to approach it.
EDIT: Never mind. Had a friend help me out and got this.
Code:
/run i=1 while(i<=40)do a={UnitDebuff("target",i)} if(a[1]=="Rend" and a[8]=="player")then break elseif(i==40)then CastSpellByName("Rend") i=i+1 else i=i+1 end end