Reset goes after the conditionals.


Code:
 
/castsequence [target=focus, nodead, harm, exists] [target=party1target, nodead, harm] reset=combat/shift  Lightning Bolt, Lightning Bolt, Chain Lightning
It should look like that.