MV A problem with my Action Sequence

English:
While I was advancing in the development of my project, I had a problem, following a video on how to implement the Persona mechanic, All Out Attack, among several things I had to transfer the code from the video to the Notes of each Skill, that code is a sequence, so I used the YEP_X_ActSeqPack1 plugin, after that, when hitting an enemy with its weakness, it would start the "Down" state, and once all the enemies present had the state, the event would happen.

The problem is that when I perform an attack that hits all the enemies, in this case Maragi of fire element, after it hits everyone, it goes and hits each enemy individually for the second time, also repeating the animation of the attack, it is is the sequence:

Damage Formula:
if (b.elementRate(2) > 1) {b.addState(20); (28 + a.mat * 2 - b.mdf * 2)} else {28 + a.mat * 2 - b.mdf * 2}
Note:
<setup action>
display action
opacity not focus: 30%, 15
wait for opacity
cast animation
wait: 10
</setup action>

<target action>
perform action
motion chant: user
wait: 10
action animation: target
wait for animation
if target.elementRate (2) > 1
if target.isStateAffected(20)
wait: 1
else
add state 22: enemies
end
end
action effect
if target.elementRate(2) > 1
jump user: 150%, 20
wait for jump
end
</target action>

<follow action>
opacity not focus: 100%, 15
wait for opacity
clear battle log
add state 23: user
change switch 82: on
</follow action>

Legend:
State: 20 = Down State
State 22: Newly Downed, check if everyone was Down.
State 23: Initiator, check who in the party did the hit.
Check if everyone is already Down

Original video:
All Out Attack video


Español:
Mientras avanzaba en el desarrollo de mi proyecto, me surgió un inconveniente, siguiendo un video de como implementar la mecanica de Persona, All Out Attack, entre varias cosas tuve que pasar el codigo del video a las Note de cada Skill, ese codigo es de una sequencia, por lo que usé el plugin YEP_X_ActSeqPack1, tras eso, al pegar a un enemigo con su debilidad, le inicia el estado "Down", y una vez todos lo enemigos presentes tuvieran el estado, sucederia el evento.
El problema está en que cuando realizo un ataque que pega a todos los enemigos, en este caso Maragi de elemento fuego, luego de que pega a todos, va y pega por segunda vez a cada enemigo individualmente, repitiendose tambien la animación del ataque, esta es la sequencia:

La formula de daño y sequencia están arriba. También el video original.
You can try changing <target action> and </target action> to <whole action> and </whole action>
You can try changing <target action> and </target action> to <whole action> and </whole action>
Is working, thank You so much.
IIRC, skills that target an entire unit automatically have a whole action effect to do the action animation and effect, and an empty target effect.
If you had kept the target action tags, I think just adding<whole action></whole action> to overwrite the default one would have also done it, but the skill would play out individually on each target
English:
While I was advancing in the development of my project, I had a problem, following a video on how to implement the Persona mechanic, All Out Attack, among several things I had to transfer the code from the video to the Notes of each Skill, that code is a sequence, so I used the YEP_X_ActSeqPack1 plugin, after that, when hitting an enemy with its weakness, it would start the "Down" state, and once all the enemies present had the state, the event would happen.

The problem is that when I perform an attack that hits all the enemies, in this case Maragi of fire element, after it hits everyone, it goes and hits each enemy individually for the second time, also repeating the animation of the attack, it is is the sequence:

Damage Formula:
if (b.elementRate(2) > 1) {b.addState(20); (28 + a.mat * 2 - b.mdf * 2)} else {28 + a.mat * 2 - b.mdf * 2}
Note:
<setup action>
display action
opacity not focus: 30%, 15
wait for opacity
cast animation
wait: 10
</setup action>

<target action>
perform action
motion chant: user
wait: 10
action animation: target
wait for animation
if target.elementRate (2) > 1
if target.isStateAffected(20)
wait: 1
else
add state 22: enemies
end
end
action effect
if target.elementRate(2) > 1
jump user: 150%, 20
wait for jump
end
</target action>

<follow action>
opacity not focus: 100%, 15
wait for opacity
clear battle log
add state 23: user
change switch 82: on
</follow action>

Legend:
State: 20 = Down State
State 22: Newly Downed, check if everyone was Down.
State 23: Initiator, check who in the party did the hit.
Check if everyone is already Down

Original video:
All Out Attack video


Español:
Mientras avanzaba en el desarrollo de mi proyecto, me surgió un inconveniente, siguiendo un video de como implementar la mecanica de Persona, All Out Attack, entre varias cosas tuve que pasar el codigo del video a las Note de cada Skill, ese codigo es de una sequencia, por lo que usé el plugin YEP_X_ActSeqPack1, tras eso, al pegar a un enemigo con su debilidad, le inicia el estado "Down", y una vez todos lo enemigos presentes tuvieran el estado, sucederia el evento.
El problema está en que cuando realizo un ataque que pega a todos los enemigos, en este caso Maragi de elemento fuego, luego de que pega a todos, va y pega por segunda vez a cada enemigo individualmente, repitiendose tambien la animación del ataque, esta es la sequencia:

La formula de daño y sequencia están arriba. También el video original.

I have another problem.
When I hit a enemy with his Weakness, I don't obtain the One More, I delete the Note and after tye Attack I have the One More again.

Edit:
I fix it, in K.O. State's Note I write <noExtraElementWeaknessAction>

Original thread: https://forums.rpgmakerweb.com/threads/a-problem-with-my-action-sequence.169755/