I had a feeling it might be failing at the enemy level check, hence the console log test. While enemies don't have levels by default, but you can still use that tag to make the comparison as though they did:
Try that. No plugin even required for it to work, either. However, <Level: x> is case sensitive, so <level: x> or <LEVEL: x> won't work.
Also, if enemies try to use this skill against actors, it will fail. Here's a version that is completely usable by both actors and enemies alike:
Code:
a.level > (+b.enemy().meta.Level || 1) ? b.hp : 0
Try that. No plugin even required for it to work, either. However, <Level: x> is case sensitive, so <level: x> or <LEVEL: x> won't work.
Also, if enemies try to use this skill against actors, it will fail. Here's a version that is completely usable by both actors and enemies alike:
Code:
(a.isActor() ? a.level : (+a.enemy().meta.Level || 1)) > (b.isActor() ? b.level : (+b.enemy().meta.Level || 1)) ? b.hp : 0