Halving current HP as an Attack

Hello,


I have tried to make a skill that halves the enemys HP by giving it an Effect.


A commen Event then takes the enemys HP and sets it as a variable.


This variable gets halved and then the commen event deals damge to the enemy by the amount of the vaiable.


My problem is that everytime I use the skill it misses. 


Ill attach the screenshots of the Commen Event, the State and the Skill


Thank you for reading this.


ThydSimon

Gravity Commen.PNG

Gravity Commen2.PNG

Gravity Commen3.PNG

Gravity Skill.PNG

Gravity State.PNG
I'm assuming that the issue is that the Skill hits, but fails to apply the state. This is easily Fixed by either giving the state the 'Nonresistance' trait or making every enemy have a 100% (A) vulnerability to it.
I've done that exact skill myself before (though it is used by enemies instead of the player. Here's the Pictures: )
Spoiler
G18i2Bm.png
sfAs86h.png
WDeAHSo.png

Original thread: https://forums.rpgmakerweb.com/threads/halving-current-hp-as-an-attack.73216/