Need Help with Eval Yanfly Skill Core(Lunatic)

So i'm trying to make 2 skills that give you Mp back under certain conditions but it seems like even if the conditions are true nothing happens, Ex: if the enemy is bleeding and user has state 88 he doesn't get 3 Mp nor 1 Mp...
Is the < ... Eval> wrong? or the code if so can someone help?
Spoiler: If skill was a critical hit and user has state
<After Eval>

if (critical) && (user.isStateAffected(87)) {

user.gainMp(6);

}

else {

user.gainMp(2);

}

</After Eval>
Spoiler: if target is bleeding and user has state
<Post-Damage Eval>

if (target.isStateAffected(3)) && (user.isStateAffected(88)) {

user.gainMp(3);

}

else {

user.gainMp(1);

}

</Post-Damage Eval>
Your if statement should be contained in a single set of parentheses.

It should look like this:
Code:
if (A && B) {do something}

and not like this, which is what you're doing:
Code:
if (A) && (B) {do something}

The rest looks fine to me, although I can't say if the eval tags are correct or not, but if you just copied them from skill core there is no reason they should not be.
For critical condition, I think it should be this:
Code:
target.result().critical
After some testing i got them to work
also forgot about an "MP" not "Mp" i know .. case sensitive but i tried it anyway...
Thanks for the help
I really should just learn some js guh this problems seem so easy to solve yet i just don't know how haha
Thanks again

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-eval-yanfly-skill-core-lunatic.119082/