Good to see you solved it! :kaojoy:
Just to clarify, your original notetag would be read as:
For future reference: you can flip expressions and use
Just to clarify, your original notetag would be read as:
<target filter: return target.hpRate() >
> closes the tag (because I was lazy when implementing these tags). The result of this is that valid targets must have a "truthy" HP%...but the only not-truthy number in JavaScript is 0. :kaoswt:For future reference: you can flip expressions and use
< instead where necessary. E.g. to target only battlers with more than 20% HP:<target filter: return 0.2 < target.hpRate();>