Per your suggestion I changed it to the 2.1 arguments as it seems to have gone unchanged between 2.1 and 3.0. Here is what I came up with, but it still doesn't work:
anyPoison = false;
for i=1,40 do
local name, rank, icon, count, debuffType, duration, timeLeft = UnitDebuff("player", i);
if debuffType == "Poison" then
anyPoison = true
return;
end
end
research = true
var = anyPoison
If I misunderstood what you were saying I apologize. I AM trying to learn this I promise ?