MZ How to get a state to force a skill, targeting its host? Trying to use <JS On Add State>

Basically I'd like a skill to fire once a state is applied.

The state itself is being added through a script:

JavaScript:
for (const target of BattleManager._targets) {
if (target.states().contains($dataStates[43])
&& target.states().contains($dataStates[44])) {

target.addState(53);

And all that works fine. But now I'd like a skill to deal damage to the target, once the state is applied.

The notetag I'm using is
<JS On Add State>
user.forceAction(52, -1);
BattleManager.forceAction(user);
</JS On Add State>

But it isn't doing anything... Ideas?

Edit: Okay so "user" needed to be "target" LOL. I think it's working? I'm not sure how to delete the post =X

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-a-state-to-force-a-skill-targeting-its-host-trying-to-use-js-on-add-state.144219/