ty for your help, i rip the script mostly from a pqr profile, now i try
local SpellNameTable = {
"Polymorph",
"Fear",
"Howl of Terror",
"Psychic Scream",
"Seduction",
"Hammer of Justice",
"Repentance",
"Deep Freeze",
"Silence",
"Psychic Horror",
"Improved Counterspell",
"Counterspell",
"Freezing Trap",
"Dragon's Breath",
"Entangling Roots",
"Strangulate"
}
local needCleanse1 = false
for _, spellName in ipairs(SpellNameTable) do
for i = 1, 25 do
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff("party1", i)
if name == spellName then
needCleanse1 = true
end
end
end
Unfortunately it doesn't work, is there also the possibility that if "party1" has Vampiric Touch or Unstable Affliction on it, that it doesn't use Cleanse or do I have to enter this in a new condition?