diff --git a/app/main.py b/app/main.py index d3ede356..29f10d77 100644 --- a/app/main.py +++ b/app/main.py @@ -26,8 +26,8 @@ def hide(self) -> None: class Carnivore(Animal): @staticmethod - def bite(animal: Herbivore) -> None: - if not animal.hidden and isinstance(animal, Herbivore): - animal.health -= 50 - if animal.health <= 0: - Animal.alive.remove(animal) + def bite(creature: Animal) -> None: + if not creature.hidden and isinstance(creature, Herbivore): + creature.health -= 50 + if creature.health <= 0: + Animal.alive.remove(creature)