Shades of Black Effect bugged

I've been running into an issue trying to use Yanfly's Shades of Black effect in my game.
His tips + tricks video is here: http://yanfly.moe/2016/12/12/tips-tricks-shades-of-black-final-fantasy-12-rpg-maker-mv/

I have a skill [let's say skill(76)] that is supposed to randomly cast one of two AOE skills. Everything works fine EXCEPT for the fact that there is an extra tick of damage on my targets before the actual skill itself is used.
Essentially
Cast skill(76)
>>Extra tick of damage on a single target<<
Cast skill(84) OR Cast skill (85)
>>Normal damage is dealt to all targets<<

Now, I'm fairly certain the issue is that yanfly only designed this skill to cast skills that have single targets. When I change the scope of skill(76) from all enemies to 1 enemy it works fine. It even converts my AOE skills into single target skills. The extra tick of damage only occurs when skill(76) has it's targeting scope set to multiple targets. I'm wondering if anyone can identify why that is the case and how to fix it.

Below is the notetag for skill(76):

<Instant>

<After Eval>

// Create the pool for random basic skills that can be used.

var tier1skills = [];

tier1skills.push(84,85);

// Create the pool for random advanced skills that can be used.

// Calculate the chance for a basic skill

// Get a random skill ID from the basic pool

var skillId = tier1skills[Math.floor(Math.random() * tier1skills.length)];

// Set this action's skill to the action

this.setSkill(skillId);

</After Eval>

<Setup Action>

clear battle log

display action

immortal: targets, true

perform start

wait for movement

cast animation

wait for animation

action effect

clear battle log

display action

</Setup Action>

<Target Action>

</Target Action>

This is the notetag for skill(84):
<setup action>
immortal: target, true
cast animation
wait for animation
</setup action>
<whole action>
opacity not focus: 0, 30
camera focus: targets, 30
zoom: 125%, 30
wait for zoom

animation 294: targets
wait for animation
action effect

opacity not focus: 100%, 60
</whole action>
<target action>

</target action>
<finish action>
reset zoom
reset camera
immortal: targets, false
clear battle log
perform finish
wait for movement
</finish action>

This is the notetag for skill(85):
<setup action>
immortal: target, true
cast animation
wait for animation
</setup action>
<whole action>
opacity not focus: 0, 30
camera focus: targets, 30
zoom: 125%, 30
wait for zoom

animation 295: targets
wait for animation
action effect

opacity not focus: 100%, 60
</whole action>
<target action>

</target action>
<finish action>
reset zoom
reset camera
immortal: target, false
clear battle log
perform finish
wait for movement
</finish action>

These are the settings for skills 84 and 85 respectively
upload_2018-4-8_22-21-16.png


upload_2018-4-8_22-21-30.png


and just in case it's needed: this is the skill that casts the shades of black effect:
upload_2018-4-8_22-22-5.png
It is frustrating that no one has replied to this yet, as I'm having the exact same problem.

A patch-job solution I've found is to remove the action effects from all the possible skills that can be used this way. However, in order for this to work, you'd need to make copies of each of the skills so that they can be used in place of the original skills that still have their action effects. Also, the damage will still occur right at the beginning of the skill, so, all actions and animations must take place after the damage is dealt or at the same time. Either that, or you'd have to put the action sequence in the <setup action> section of the Magik/Shades of Black skill.

I hope that you can get some use out of this.

Original thread: https://forums.rpgmakerweb.com/threads/shades-of-black-effect-bugged.93812/