Hello, someone would have to make available some dodge system, where he defends% of the damage received.
I have a system, but it is not working, if someone can help me to correct the problem.
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType...