Enemy Defense

It seems that no matter how low I set the defense of my enemies, they cannot be harmed in any way shape or form. Case in point: I have an enemy with 10 defense and a character with 40 attack. The characters attacks always inflict no damage. What's the matter?

In addition their other stats seem like they are skyrocketing every time I battle them. 
Check your damage formula.
Never mind, I fixed it.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-defense.23957/