Skip to content

Commit e8d907e

Browse files
no copycat pp tracking
1 parent 053807c commit e8d907e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/poke_env/battle/pokemon.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,14 @@ def check_move_consistency(self, active_request: Dict[str, Any]):
261261
if not matches:
262262
continue
263263
move = matches[0]
264-
if "pp" in move_request and self._data.gen not in [1, 2, 3, 7, 8]:
264+
if (
265+
"pp" in move_request
266+
and self._data.gen not in [1, 2, 3, 7, 8]
267+
and move.id != "copycat"
268+
):
265269
# exclude early gens because of unreliable Showdown event messages
266270
# exclude gen 7 and 8 because of Z-move and Max Move PP untrackability
271+
# TODO: tracking copycat pp requires tracking last move used in battle
267272
assert (
268273
move_request["pp"] == move.current_pp
269274
), f"{move_request['pp']} != {move.current_pp}\n{move_request}"

0 commit comments

Comments
 (0)