Buba your resto druid profile is amazing, but Natures Cure doesn't work for me at all. Have to switch to Sheemoon's for fights that require dispel.
Can you please take a look?
Edit, this code seems to work:
PHP Code:
local candispel = 1
local i = 1
local buff,_,_,count,bufftype,duration = UnitDebuff(members[1].Unit, i)
while buff do
if bufftype == "Magic"
and UnitIsFriend("player",members[1].Unit)
and candispel ~= nil
then
PQR_CustomTarget = members[1].Unit
return true end
i = i + 1;
buff,_,_,count,bufftype,duration = UnitDebuff(members[1].Unit, i)
end