Skip to content

Commit

Permalink
Merge pull request #6024 from davidakachaos/correct_hp
Browse files Browse the repository at this point in the history
Correcting HP of Pokemon
  • Loading branch information
Jcolomar authored Apr 22, 2017
2 parents 74dad78 + bf087b3 commit 03cfee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def __init__(self, data):
# Maximum health points
self.hp_max = data['stamina_max']
# Current health points
self.hp = data.get('stamina', self.hp_max)
self.hp = data.get('stamina', 0) #self.hp_max)
assert 0 <= self.hp <= self.hp_max

# Individial Values of the current specific pokemon (different for each)
Expand Down

0 comments on commit 03cfee3

Please sign in to comment.