Hi guys, I'm brand new to lua and a novice programmer at best, so I was wondering if somebody a little more experienced could help me. I'm trying to write what I thought would be a simple profile to automatically dispel CC from my teammates in arena, but it's proving a horrible task because I'm dumb. xD
Here's the code I've got so far, if anybody could tell me what more I need add/have changed, I'd be super grateful.
Code:
for i=1,#members do
if dispellableCC(members[i].Unit)
and members[i].IsPlayer
and LineOfSight(members[i].Unit)
and not UnitDebuffID(members[i].Unit, 30108)
and not UnitDebuffID(members[i].Unit, 34914)
and not UnitDebuffID(members[i].Unit, 131736) then
_castSpell(527,members[i].Unit)
end
end