I understand very little English .
I am looking for a script to 3.3.5a . On poisons Warlock
To throw at the enemy's Corruption, and if there is Corruption to target the Curse of Agony .
my draft
But that it is not working . Help
/run if not (UnitDebuff("target", "Curse of Agony")) and GetSpellCooldown("Curse of Agony") == 0 and IsUsableSpell("Curse of Agony") and IsSpellInRange("Curse of Agony","target") then
RunMacroText("/cast Проклятие агонии") end
/run if not (UnitDebuff("target", "Corruption")) and GetSpellCooldown("Corruption") == 0 and IsUsableSpell("Corruption") and IsSpellInRange("Corruption","target") then RunMacroText("/cast Corruption") end