if self.damage < 0 and 0-(self.damage) > self.maxhp - self.hp self.damage = 0-(self.maxhp - self.hp) else self.hp -= self.damage end