From bf087b3c62f0a93724487376670e4fdcf9dd5661 Mon Sep 17 00:00:00 2001 From: David Westerink Date: Fri, 21 Apr 2017 08:42:56 +0200 Subject: [PATCH] Corrected HP for Pokemon If HP is zero, the Pokemon is dead/fainted. Dont set it to Max HP --- pokemongo_bot/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/inventory.py b/pokemongo_bot/inventory.py index d85fc84f05..c1df3903de 100644 --- a/pokemongo_bot/inventory.py +++ b/pokemongo_bot/inventory.py @@ -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)