Skip to content

Commit

Permalink
Merge pull request #847 from danielzhang2001/DanielsBranch
Browse files Browse the repository at this point in the history
added synchronize to count as passive kills
  • Loading branch information
danielzhang2001 authored Sep 2, 2024
2 parents 425b2a7 + cb023ea commit a25c04f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions showdown/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def process_poison(
poison_found = True
break
elif re.search(
r"\|p(\d)a: ([^\|\n]+)\|ability: Synchronize\n\|-status\|p(\d)a: "
r"\|p(\d)a: ([^\|\n]+)\|ability: Synchronize\|-status\|p(\d)a: "
+ re.escape(fainted_pokemon)
+ r"\|(tox|psn)",
action,
Expand All @@ -319,7 +319,7 @@ def process_poison(
):
print("status detected in synchronize!")
sync_match = re.search(
r"\|p(\d)a: ([^\|\n]+)\|ability: Synchronize\n\|-status\|p(\d)a: "
r"\|p(\d)a: ([^\|\n]+)\|ability: Synchronize\|-status\|p(\d)a: "
+ re.escape(fainted_pokemon)
+ r"\|(tox|psn)",
action,
Expand Down

0 comments on commit a25c04f

Please sign in to comment.