Yanfly's Action Sequence and Sequence Input issue

Hello people,

I am having trouble with these two plugins. That's what I've wrote in Attack's notetag:
Code:
<Post-Damage Eval>
if (target.hp < target.mhp * 0.2 && user.isStateAffected(11)) {target.setHp(0)}
{user.setMp(Math.round(user.mp + (user.mmp * 0.15)))}
</Post-Damage Eval>

<setup action>
</setup action>
<target action>
START SEQUENCE INPUT: ok, 49
MOVE user: target, FRONT BASE, 5, auto offset x -15
WAIT FOR MOVEMENT
END SEQUENCE INPUT

if $gameVariables.value(49) <= 25 && $gameVariables.value(49) > 0 #If button is pressed at the right time
 motion swing: target 
 perform action
 motion wait: target
 action animation: user
 action effect: user
else #If not, the enemy proceeds to attack normally
 motion swing: user
 perform action
 motion wait: user
 action animation: target
 action effect: target
 WAIT FOR EFFECT
 wait: 15
</target action>

Basically, whenever and enemy attacks If the player presses Z button at the correct moment the actor counterattacks. However, for some reason the damage calculation of the counterattack is based on the attacker (enemy) stats not the actor's attributes.

So, for instance, If you counterattack a weak slime your counterattack damage will be low. However, If you attack a strong boss your counterattack damage will be insane. I'd like to have the counterattack damage based on the actor's attribute, not the enemy.

This is where I got Sequence Input plugin: http://sumrndm.site/sequence-input/
In the example video, the author does exactly what I wanted to do. However, in the video It worked perfectly.

I appreciate any help/solution!
action effect: user causes the user of the skill to be the target of the skill effect. This sequence is working exactly as it should be. The damage calculation for the action effect is derived from the parameters of the attacker, after all.
You'd need to eval in a different damage formula, which doesn't sound very difficult, but I can't seem to figure out where you'd do it in a particularly easy way.

So you'd need to manually show different animations, and calculate a different hp damage formula and then cause those things to the user instead of the action effect.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-action-sequence-and-sequence-input-issue.117130/