Repaired a but : bears dealt 1 damage instead of 0.
This commit is contained in:
@ -774,7 +774,8 @@ class FightingEntity(Entity):
|
||||
The entity takes damage from the attacker
|
||||
based on their respective stats.
|
||||
"""
|
||||
damage = max(1, amount - self.constitution)
|
||||
if amount != 0 :
|
||||
damage = max(1, amount - self.constitution)
|
||||
self.health -= damage
|
||||
if self.health <= 0:
|
||||
self.die()
|
||||
|
Reference in New Issue
Block a user