Fix issue with placeholder moves from Pokebattler API
This commit is contained in:
parent
2d12e31177
commit
4c8d351e61
@ -166,4 +166,4 @@ class PokebattlerProxy:
|
|||||||
return next(filter(lambda mon: mon["pokemonId"] == name, self.pokemon))["type"]
|
return next(filter(lambda mon: mon["pokemonId"] == name, self.pokemon))["type"]
|
||||||
|
|
||||||
def move_type(self, name: str) -> str:
|
def move_type(self, name: str) -> str:
|
||||||
return next(filter(lambda move: move["moveId"] == name, self.moves))["type"]
|
return next(filter(lambda move: "moveId" in move and move["moveId"] == name, self.moves))["type"]
|
||||||
|
Loading…
Reference in New Issue
Block a user