diff --git a/app/main.py b/app/main.py index c91e0472..e6e9c1a8 100644 --- a/app/main.py +++ b/app/main.py @@ -32,6 +32,7 @@ class Carnivore(Animal): def bite(self, herbivore: Animal) -> None: if isinstance(herbivore, Herbivore) and not herbivore.hidden: - if herbivore.health <= 0: - herbivore.die_animal() herbivore.health -= 50 + + if herbivore.health <= 0: + herbivore.die_animal()