Skip to content

Commit 70916af

Browse files
fix mypy
1 parent 05433db commit 70916af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/poke_env/battle/abstract_battle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,9 @@ def parse_message(self, split_message: List[str]):
775775
self.get_pokemon(target).item = None
776776
elif effect == "item: Leppa Berry":
777777
mon = self.get_pokemon(target)
778-
move = mon.moves[to_id_str(event[4])]
778+
mv = mon.moves[to_id_str(event[4])]
779779
# Don't let current pp exceed max pp
780-
move._current_pp = min(move._current_pp + 10, move.max_pp)
780+
mv._current_pp = min(mv._current_pp + 10, mv.max_pp)
781781
elif target != "": # ['', '-activate', '', 'move: Splash']
782782
self.get_pokemon(target).start_effect(effect)
783783
elif event[1] == "-status":

0 commit comments

Comments
 (0)