edited the attack skill's damage formula, now enemies only die to crits?

i changed the default formula to "a.atk - b.def / 2" so that it would be the users attack minus half the target's defense. now for some reason an enemy with 8 hp does not die when hit with two attacks of 7 hp, the only thing that seems to kill them are criticals?
even when i edit their max hp stat to be less than the amount one attack does they still dont die from it? im not sure what i did wrong...
Does it not die if you literally put 9999 in the damage formula?
that... isn't normal.
does it happen with othr attacks too?
is it really the only thing you changed?
Double-post notice: lancerforce
If you want to add something, just use the Edit button on your earlier post and type in the additional info/comment.
Double-post notice: lancerforce
If you want to add something, just use the Edit button on your earlier post and type in the additional info/comment.
that... isn't normal.
does it happen with othr attacks too?
is it really the only thing you changed?
i think so? i cant think of anything i did that would have messed it up...
please show us screenshots of the enemy database.

best guess is that you gave it a trait that changes the damage result, and we need to see the entire enemy data to check for such cases.
i think so? i cant think of anything i did that would have messed it up...
Have you tried my suggestion?
stast.png

1578447383157.png

here are the stats, the enemy on the left and the player on the right, which has 7 attack by default plus 2 from the weapon. 9999 damage attack did the trick, the enemy is defeated after about 4 attacks normally, which doesnt make any sense to me...
Are you using any scripts that may change damage? Does the bug persists when replicating it in a fresh project?
ok so a fresh project it works fine so it must be a script i have... i'll take a look (sorry if this was silly of me)
found it! i feel a little dumb for not thinking of that but thank you!
But now the question is, do you know what script it was doing so?

I was going to say, another workaround might be how you do the equation.

You had "a.atk - b.def / 2" but you could try out something like "a.atk - (b.def / 2)"

Original thread: https://forums.rpgmakerweb.com/threads/edited-the-attack-skills-damage-formula-now-enemies-only-die-to-crits.116965/