PokemonGo-Bot
PokemonGo-Bot copied to clipboard
[Bug] Move to fort only work when softbanned.
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
HandleSoftBan uses MoveToFort. Then MoveToFort need to be available when softbanned.