My ability does his effects twice instead of once

Hey i'm trying to do an AoE magic HP drain ability.


Here is my action sequence code : 


<setup action>


display action


wait for movement


</setup action>


<whole action>


motion spell: user


animation 144: target


wait for animation


action effect: target


death break


</whole action>


<finish action>


clear battle log


perform finish


wait for movement


</finish action>


and the damage formula is 200 + a.mat - b.mdf.


When i use this in game, it does the damage written in the formula twice to each enemy, and heal my character twice the total amount. I just want the ability to hit once and heal once per enemy. What's wrong with this one ?


I copied the ability from another "All enemies" magic ability with the exact same code and it works perfectly fine (deals damage only once per enemy)
I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


Since MV doesn't have action sequences by default...


Please give a link to the plugin you're using for the action sequences, and give a screenshot of the skill itself in the database as there might be some data there to cause this.
Here is the screen, i'm using Yanfly's action sequence pack.


(my RMMV is in french, sorry if you can't read everything)

spell.png
Looking over your sequence, I would have thought it would have only applied once.  Two possible things you could at least try:


1) Add in sections (with no content) for the other phases, such as <target action> - there should be a total of 5 sections.


2) Possibly remove the Death Break and see what happens?


If you're using other peoples' plugins as well, it's also very possible there's a script incompatability, since another script might run the "normal" effect of the skill and Yanfly's Action Sequence Pack will run it again as part of the action sequence.  Try your exact same skill in a clean project with no other scripts besides those required for the action sequence pack.  If that works (the effect only happens once), add in all of the other Yanfly scripts and try again.  If that works, add in your other scripts one at a time and keep trying until you see the problem.
According to Yanfly, you need all 5 sections. If  you don't, the system will run the defaults, which can result in it running extra times. For sections you don't want, put a blank action for it.
Okay, puting a blank "target action" works perfectly. But I don't understand why my other "all ennemies" damage spells for other classes works as intended with only "whole action" in it.


Thanks for the help though !

Original thread: https://forums.rpgmakerweb.com/threads/my-ability-does-his-effects-twice-instead-of-once.63779/