Теперь функция не работает,где ошибка. Раньше на 7.3.5 работала на 8.1 не работает
Код: Выделить всё
function uaz266_Disease()
local i = 1
local buff,_,_,count,bufftype,duration = UnitDebuff("player", i)
while buff do
if bufftype == "Disease" then return true end
i = i + 1;
buff,_,_,count,bufftype,duration = UnitDebuff("player", i)
end
return false
end
function uaz267_Disease()
local i = 1
local buff,_,_,count,bufftype,duration = UnitDebuff("player", i)
while buff do
if bufftype == "Poison" then return true end
i = i + 1;
buff,_,_,count,bufftype,duration = UnitDebuff("player", i)
end
return false
end