MZ Check for target's current HP Percentage

I'm currently using Visustella's action sequences for some skills in a project of mine.
I wanted to have a few skills that have a different effect depending if the target has a state, or is below or above a certain percentage of their hp
I was able to get the state part working by using "BattleManager._target.isStateAffected(X)" in a conditional branch, though I can't really figure out how to get the HP Percentage part working... I currently have "BattleManager._target.hpRate >= 0.90", but whenever using that, it always returns the "Else" result...
I'm terrible at js in general, so any help here would be appreciated :,)

image_2025-07-09_143842027.png
hpRate()
Yup, just figured it out by myself, I feel kinda stupid LOL but at least I was going the right way

Original thread: https://forums.rpgmakerweb.com/threads/check-for-targets-current-hp-percentage.178821/