surv barswapping 6.0.2

This is an attempt to get a viable macro, obviously its work in progress and is an adaption of another spec’s

#show cobra Shot
/castsequence arcane shot, cobra shot, explosive shot,mend pet
/cast !lock and load
/swapactionbar 1 2
/startattack
/petattack
Macro 2

#show cobra Shot
/castsequence , cobra shot, explosive shot,mend pet
/swapactionbar 2 3
/targetenemy [noexists][dead][noharm]
/startattack [exists,harm,nodead]
Macro 3

#show cobra Shot
/castsequence black arrow, cobra Shot, Mend Pet
/swapactionbar 3 4
/targetenemy [noexists][dead][noharm]
/startattack [exists,harm,nodead]
Macro 4

#show cobra Shot
/castsequence Barrage, explosive Shot, Mend Pet
/swapactionbar 4 1
/targetenemy [noexists][dead][noharm]
/startattack [exists,harm,nodead]

any constructive feed back would be appreciated