Any lua coders mind giving me a hand in fixing this code i've written, doesn't seem to work. It's for use on a paladin.
The problem i'm having with this is that it doesnt seem to work on Disease's, and is very selective about poisons?Code:cast=CastSpellByName i=1 while(i<=40) do a={UnitDebuff("player",i)} if a[5]=="Poison" or a[5]=="Disease" then cast("Cleanse") break end i=i+1 end
Thanks to all who help out![]()