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?
Is the < ... Eval> wrong? or the code if so can someone help?
<After Eval>
if (critical) && (user.isStateAffected(87)) {
user.gainMp(6);
}
else {
user.gainMp(2);
}
</After Eval>
if (critical) && (user.isStateAffected(87)) {
user.gainMp(6);
}
else {
user.gainMp(2);
}
</After Eval>
<Post-Damage Eval>
if (target.isStateAffected(3)) && (user.isStateAffected(88)) {
user.gainMp(3);
}
else {
user.gainMp(1);
}
</Post-Damage Eval>
if (target.isStateAffected(3)) && (user.isStateAffected(88)) {
user.gainMp(3);
}
else {
user.gainMp(1);
}
</Post-Damage Eval>