diff --git a/dungeonbattle/entities/monsters.py b/dungeonbattle/entities/monsters.py index 67063da..61a6ebf 100644 --- a/dungeonbattle/entities/monsters.py +++ b/dungeonbattle/entities/monsters.py @@ -30,6 +30,8 @@ class Monster(FightingEntity): self.move_right() else: self.move_left() + if self.distance_squared(target) <= 1: + self.hit(target) else: for _ in range(100): if choice([self.move_up, self.move_down,