I have a state which expires after 3 turns, then there is a 50% chance that it will automatically be reapplied on the target again. I use this Custom Remove Effect in Yanfly's Buffs & States Core for my state (http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/):
When it expires, i can see the animation played, but the target is totally unaffected by "target.addState(411)" (411 is the same state itself). I guess i cannot reapply the same state via this method so is there any other way to do so?
<Custom Remove Effect>
if (Math.random() < 0.5){
target.addState(411);
target.startAnimation(49);}
</Custom Remove Effect>
if (Math.random() < 0.5){
target.addState(411);
target.startAnimation(49);}
</Custom Remove Effect>
When it expires, i can see the animation played, but the target is totally unaffected by "target.addState(411)" (411 is the same state itself). I guess i cannot reapply the same state via this method so is there any other way to do so?