I'm trying to use YEPSkillCore to make the player take damage and drain the MP if it misses the attack. This is the code I tried using (but is not working)
What am I doing wrong?
What am I doing wrong?
JavaScript:
<Post-Damage Eval>
var result = target.result();
if (result.missed || result.evaded){
<HP Cost: 5%>
<MP Cost: 10%>
} else {
<HP Cost: 0%>
<MP Cost: 0%>
}
</Post-Damage Eval>