This commit is contained in:
eichhornchen 2021-01-10 21:44:45 +01:00
parent 18ace5144c
commit 236481ae1c
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ class FightingEntity(Entity):
based on their respective stats. based on their respective stats.
""" """
damage = 0 damage = 0
if amount != 0 : if amount != 0:
damage = max(1, amount - self.constitution) damage = max(1, amount - self.constitution)
self.health -= damage self.health -= damage
if self.health <= 0: if self.health <= 0: