Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in EvolvePokemon #2883

Closed
BeAtS85 opened this issue Aug 7, 2016 · 1 comment
Closed

Typo in EvolvePokemon #2883

BeAtS85 opened this issue Aug 7, 2016 · 1 comment

Comments

@BeAtS85
Copy link

BeAtS85 commented Aug 7, 2016

Expected Behavior

"type": "EvolvePokemon",
"config": {
"evolve_all": "all",
"first_evolve_by": "cp",
"evolve_above_cp": 500,
"evolve_above_iv": 0.8,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": true
}

Bot evolved all pokemon meeting the conditions and activates a lucky egg.

Actual Behavior

Bot gives an error and quits.

Steps to Reproduce

Set Use_lucky_egg to "true"

The problem is in evolve_pokemon.py.

        # Make sure the user has a lucky egg and skip if not
        if lucky_egg_count > 0:
            response_dict_lucky_egg = self.bot.use_lucky_egg()
            if response_dict_lucky_egg:
                result = response_dict_lucky_egg.get('responses', {}).get('USE_ITEM_XP_BOOST', {}).get('result', 0)
                if result is 1:  # Request success
                    self.emit_event(
                        'used_lucky_egg',
                        formmated='Used lucky egg ({amount_left} left).',
                        data={
                             'amount_left': lucky_egg_count - 1
                        }

Change formmated='Used lucky egg ({amount_left} left).', to formatted='Used lucky egg ({amount_left} left).',

Other Information

OS: Win 10
Git Commit: 6960f35
Python Version: Python 2.7.11

@mjmadsen
Copy link
Contributor

mjmadsen commented Aug 7, 2016

#2912 There is a PR in for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants