def METHOD_NAME(self):
    logger.hr(f'{self.FUNCTION_NAME_BASE}{self.battle_count}', level=2)
    prev = self.battle_count
    result = False
    for _ in range(10):
        try:
            result = self.battle_function()
            break
        except MapEnemyMoved:
            if self.battle_count > prev:
                result = True
                break
            else:
                continue
    if not result:
        logger.warning('ScriptError, No combat executed.')
        if self.config.Error_HandleError:
            logger.warning('ScriptError, No combat executed, Withdrawing')
            self.withdraw()
        else:
            raise ScriptError('No combat executed.')
    return result