Hi I want my follow bot to remove poison and disease in the group. Unfortunately it only removes the debuff from the first target and does not switch to other targets. He then just stands around and tries to continue to use the spell but remains focused on the first group member.
I've read around in the forum, but apparently it's mostly about keeping buffs up. Or maybe I just have a monkey brain that is too small
Thank you very much for everyone who takes the time
hasDebuff = false;
for i=1,40 do
local texture, count, debuffType = UnitDebuff("target", i);
if debuffType == "Poison" then
hasDebuff = true
break;
end
end
true
hasDebuff