Originally Posted by
jpoplive
Does this also do magic dispel for mist specs?
Code:
if IsInRaid() then
group = "raid" elseif IsInGroup() then
group = "party" end for i = 1, GetNumGroupMembers() do
for d = 1, 40 do
if ( select(5, UnitDebuff(group..i, d)) == "Poison"
or select(5, UnitDebuff(group..i, d)) == "Disease"
or select(5, UnitDebuff(group..i, d)) =="Magic" ) then
PQR_CustomTarget = group..i
if PQR_UnitDistance("player", PQR_CustomTarget) <= 40 then
CastSpellByName(GetSpellInfo(115450), PQR_CustomTarget)
end
end
end
end
That should do poison, disease and magic I believe. Only issue I could see with it is it's not going to check if the debuff SHOULD be dispelled so you'll auto dispell things you shouldn't possibly, like Megara's cinders.