Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created July 8, 2014 19:49
Show Gist options
  • Save nefftd/05af933ef4ec3c343439 to your computer and use it in GitHub Desktop.
Save nefftd/05af933ef4ec3c343439 to your computer and use it in GitHub Desktop.
local _,dtype
for i = 1,40 do
_,_,_,_,dtype = UnitAura(unit,i,'HARMFUL')
if dtype == 'Magic' then
return '[M]' -- DOES have magic debuff; change as you see fit
end
end
return '' -- DOESN'T have magic debuff; change as you see fit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment