• Smogon Premier League is here and the team collection is now available. Support your team!

Mechanics Gens 3-4: Truant, Sleep and Freeze should block Pursuit activation

What type of bug are you reporting? Mechanics

What is the bug?
Hello.

I am actually reporting two bugs because I think they are intertwined.

This is with how pursuit interacts with being used while waking up in gen 4. In-game, if a pokemon wakes up and uses pursuit against another pokemon that is switching out, the pokemon gets switched out and does not take any damage. The incoming pokemon will take damage from pursuit without the 2x boost for switching.

Additionally, if the pokemon that is asleep clicks pursuit but remains asleep, nothing happens to indicate that the sleeping pokemon clicked pursuit.

In showdown, the order of operations is reversed. The asleep pokemon will wake up, use pursuit on the pokemon that is switching out and get the 2x damage boost. The incoming pokemon will not get harmed.

Additionally, if the pokemon that clicked pursuit remains asleep, an information leak will occur and the simulator will say "(pokemon) is being withdrawn!" "opposing (pokemon) is fast asleep."

tbh im suprised this hasn't been noticed yet considering that pursuit + sleep are both staples of gen 4 ou.

Are you able to replicate it? If so, how?
It can very easily be replicated in game.

Here is how it is supposed to work in-game.

Here is how it is currently implemented on showdown:
https://play.pokemonshowdown.com/battle-gen4ou-2511822423
 
This is actually very interesting. Should be an easy fix. Thanks!

Edit: Would you be able to test it in Gens 2 and 3?
 
I also wonder whether there are other status conditions under which it fails. From what I can see in the decompiled code, Pursuit doesn't try to activate if status & 0b100111 is true, which makes me think there may be additional statuses that prevent it from activating. Moreover, the code also suggests that the ability Truant prevents Pursuit from activating.
 
Confirmations:
  • In Gen 2, Sleep does not prevent Pursuit from attempting to activate.
  • In Gen 3, Sleep, Freeze and Truant prevent Pursuit from activating.
  • In Gen 4, Sleep, Freeze and Truant prevent Pursuit from activating.
  • In Gen 5, neither Sleep nor Truant prevents Pursuit from attempting to activate.
I think I discovered something related: if Pursuit is able to activate in Gens 3 and 4, it seems that the Pokémon will never get paralyzed (at least I'm not being able to). I'm not sure about the other gens.

Fix: https://github.com/smogon/pokemon-showdown/pull/11680
 
Back
Top