Currently i'm using instance variables in a formula like this:
(Hero.damage - Enemy.Defense) <-- That's in the event to "subtract from the instance variable" (HP) of the enemy.
The problem is, when the damage dealt is less than the Enemy's Defense, the HP from the enemy goes up, kinda like the attack is healing the enemy... I need to make so the resistance reduces de damage to 0 at the worst scenario, but never heals the enemy from the attacks the player makes.
There is a tool or some kind of trick to make a mechanic like that work?