PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[Bug] Move to fort only work when softbanned.

Open FilipiMor opened this issue 10 years ago • 1 comments

Expected Behavior

Move to fort work when not softbanned

Actual Behavior

Move to fort return return WorkerResult.SUCCESS when not softbanned

Steps to Reproduce

Use move to fort without any navigator, and it will not move at all.

Other Information

OS: Windows Git Commit: adebc5a9c101cf6ea00dd637abc542959b2eff16 Don't know when bug was introduced. Python Version: Python 2.7.12

    def should_run(self):
         has_space_for_loot = self.bot.has_space_for_loot()
         if not has_space_for_loot:
             logger.log("Not moving to any forts ...", 'yellow')
         return has_space_for_loot or self.bot.softban

and then

    def work(self):
        if not self.should_run():
            return WorkerResult.SUCCESS

expected not self.bot.softban return has_space_for_loot or not self.bot.softban

FilipiMor avatar Aug 02 '16 17:08 FilipiMor

HandleSoftBan uses MoveToFort. Then MoveToFort need to be available when softbanned.

FilipiMor avatar Aug 02 '16 23:08 FilipiMor