I have this code for one of my states that works for the most part in converting 0.1% of damage taken into MP that the target recovers while still taking the rest of the HP damage but for some reason it doesnt work when the target currently has 0 MP, which sucks when the point of the state is to recover MP upon being damaged.
What part of the code do I change and what do I change it to so that the effect is still applied even when the target's MP is at 0?
What part of the code do I change and what do I change it to so that the effect is still applied even when the target's MP is at 0?