def try_chase(self):
        stale_pulse = future_pulse(-chase_time)
        removed = [opponent for opponent, stats in self.opponents.items() if stats.last_seen < stale_pulse]
        for opponent in removed:
            self.end(opponent, False)
        if not self.opponents:
            return
        for stats in sorted(self.opponents.values(), key=lambda x: x.last_seen, reverse=True):
            if stats.con_level < 1 and stats.last_exit in self.me.env.action_providers:
                try:
                    self.me.start_action(stats.last_exit, {'source': self.me})
                    break
                except ActionError:
                    pass
        self.hunt_timer = register_p(self.select_action, seconds=10)
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/lpmud/fight.py/Fight.try_chase/original