Flank Attack idea

Hi I would like to have a skill , I call it : Flank Attack.

This is an enemy's skill, so actors won't use this.

This skill hits two times, and the first hit goes to the the 1st member
and the second hit goes to the 4th member in your party.
If the 4th member doesn't exist or already dead, the second hit will be cancelled.
if the 1st member is already dead, it will target anyone as usual.

Any help (MV Script or damage formula) is appreciated.
Thanks
I would use Yanfly’s Action Sequences for this.

Original thread: https://forums.rpgmakerweb.com/threads/flank-attack-idea.139324/