Auto-Apply Wounded State and Effect on HP Below 60%

Okay, I'm trying to achieve this using the Yanfly Buffs & States Core and Auto Passive States.

I've created a Wounded state and put the following code in the Effect Note:
Code:
<Custom Apply Effect>
code here....
</Custom Apply Effect>
<Passive Condition: HP Below 60%>
<Passive Condition: HP Above 30%>

This applies the state to the actor when his HP falls below 60% but it doesn't run the custom effect :\

Changing <Custom Apply Effect> to <Custom Turn Start Effect> almost makes it work but the effect code runs the turn after the one in which the state is applied. Any help will be greeeeatly appreciated!
Passive states are always on the target. Using Passive Condition doesn't apply the state when the condition is met because it's already there. It just makes it active. What exactly are you trying to do with the state?
Passive states are always on the target. Using Passive Condition doesn't apply the state when the condition is met because it's already there. It just makes it active. What exactly are you trying to do with the state?
I thought that it is something like that but it's strange that <Custom Turn Start Effect> applies the effect on the next turn...

I am showing a big picture of the actor in battle and I want to change it when the actor is wounded. My code is just changing the variable that contains the image name to the actor_wounded version.
SOLVED

I managed to do it via Battle Event and the Yanfly's Base Troop Events Plugin

Wrote the following code to run at the end of every turn:
Code:
$gameParty.allMembers().forEach(function(actor) {
   if ( (actor.hp/actor.mhp) < 0.65 ) {
     picture code here...
   }
});

Original thread: https://forums.rpgmakerweb.com/threads/auto-apply-wounded-state-and-effect-on-hp-below-60.86859/