Aff Dot weaving

can someone make a macro thet casts agony corruption and UA then switches targets?

Here is one I’m working on.

Sequences[‘AFFDOT’] = {
PreMacro = [[
/targetenemy [noharm][dead]
/startattack
/console Sound_EnableSFX 0
]],
‘/castsequence Unstable Affliction,Agony,Corruption’,
‘/castsequence reset=15 Corruption,Agony,Unstable Affliction’,

PostMacro = [[
/targetenemy
/use [combat]13
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}

Trying to post the code


Sequences['AFFDOT'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/startattack
/console Sound_EnableSFX 0
]],
'/castsequence Unstable Affliction,Agony,Corruption',
'/castsequence reset=15 Corruption,Agony,Unstable Affliction',

PostMacro = [[
/targetenemy
/use [combat]13
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}