new to ruby, logic question.

trying to add a state to every combatant when their hp reaches 75% of their max hp, got the code working syntax free (didn' tknow spaces mattered in this language).

thing is it's applying multiple times and not even when the HP hits the 75% threshold, just some quick insight into ruby would be nice since i currently lack a proper debugging tool.

line's been added in at

Game_BattlerBase line 506 (in the refresh def)

@hp <= @mhp * 0.75 ? add_state(26) : remove_state(26)thanks in advance!

EDIT: using prg maker vx ace

Original thread: https://forums.rpgmakerweb.com/threads/new-to-ruby-logic-question.16647/