class Game_Battler
#--------------------------------------------------------------------------
# * Set Hp
#--------------------------------------------------------------------------
alias damage_minimum_hp= hp=
def hp=(hp)
# Get old hp and
old_hp, new_hp = self.hp, hp
# If Damage is A Number and Difference is damage
if self.damage.is_a?(Numeric) and old_hp - new_hp == self.damage
# Get Damage
n = self.damage
# Set New Damage
damage_hp = [n, 1].max
# Set Hp
self.damage_minimum_hp = old_hp - damage_hp
# Set Damage
self.damage = damage_hp
else
# The usaul
self.damage_minimum_hp = hp
end
end
end