Hello, I have recently looked into the mechanics of item activation in Generation 3, more specifically White Herb.
Background
I recently attended the Pokemon VG European International Championships and at the event organised a Gen 3 VGC tournament. During the tournament, I observed a strange mechanic with White Herb, which was that a player led double Intimidate, the White Herb activated at the end of T0 and thus reset the attack stat to +0 which differs from the behaviour on showdown, which will activate the White Herb after the first Intimidate drop and end the turn at -1 attack.
https://replay.pokemonshowdown.com/gen3orrecolosseum-2377208213
Additionally, one of the players saved a game which exhibited more strange behaviour:
With this in mind, I devised some tests to determine how items activated:
Test 1:
https://pokepast.es/557fd48cbb76ebd9
vs
https://pokepast.es/9453fa9a2f4520b5
https://replay.pokemonshowdown.com/gen3doublesou-2377244334
Turn 0: Arcanine and Mawile Intimidate, Dusclops White Herb should activate at the end of the turn.
Turn 1: Mawile uses Tickle into Arcanine, which activates the White Herb at the end of the move.
Turn 2: Dusclops uses Will-O-Wisp, burning Mawile (holding Petaya berry). Mawile’s Health is brought below 25% after burn damage but the Petaya Berry does not activate.
Turn 3: Gyarados Replaces Arcanine, Gengar (in P1 Slot 2) uses Sleep Talk and after Gengar moves, White Herb activates returning Gengar to +0 attack. At the end of the turn, Mawile’s Petaya Berry activates.
Turn 4: (On cartridge) due to port priority, Gyarados switches out first and is replaced by Arcanine, activates intimidate and then Gengar switches out into Snorlax. Mawile faints to burn and is replaced by Granbull, whose intimidate activates but Snorlax’s White Herb is not consumed.
Turn 5: Gyarados replaces Granbull, intimidates Snorlax again without activating White Herb and only then does Arcanine Charm after which Snorlax’s White Herb activates and attack resets to +0.
(
https://replay.pokemonshowdown.com/gen3doublesou-2377253302 on Showdown the White Herb activates on switch in)
Test 2:
https://pokepast.es/a609d99f36ea71e4
vs
https://pokepast.es/16a794cc29582c6d
https://replay.pokemonshowdown.com/gen3doublesou-2377279012
Turn 1: Metagross switches to Gyarados, intimidate reduces Dusclops and Snorlax’s attack, (on cartridge) Dusclops’ (P1 Slot 1) White Herb activates resetting its attack to +0, then Mawile uses Flamethrower targeting Dusclops, then Snorlax’s White Herb activates and Snorlax uses curse.
(on showdown) Dusclops’ White Herb activates only after Mawile’s Flamethrower.
Turn 2: Set up.
Turn 3: Gyarados switches into Granbull, intimidates Dusclops and Gengar, then Gengar attacks and only after Gengar’s move is completed, White Herb activates resetting Gengar’s attack stat to +0.
Summary
These tests verified the three possible activation conditions for White Herb (as well as any status heal berry such as Lum Berry).
- End of Turn
- End of move/attack
- Switch in
However there is a very notable bug that means that White Herb only activates on switch in if the White Herb Holder is in position 0 which as Mosquito explained in the above post, means Player 1, Slot 1. Meaning this is an unintentional instance of port priority in Pokemon Emerald (it should loop for all Pokemon on the field), the intended mechanic is for all White Herbs to trigger if conditions are met (a stat is reduced) after switching in, including resetting Intimidate drops.
Pokemon XD: Gale of Darkness fixes this bug and so my view is that Showdown should reflect the intended mechanic, as currently it seems (I may be wrong) that Showdown does not use the third activation condition correctly. From my observations (see the beginning of turn 4
https://replay.pokemonshowdown.com/gen3doublesou-2377253302) the item activates after switching in but
before abilities like Intimidate. This would explain all the differences in behaviour between Showdown and cartridge that I have observed.
Port Priority tests
(Perspective of Player 1) Snorlax in slot 1, White Herb activates after switching in only for Snorlax
(Perspective of Player 1) Gengar in slot 1, White Herb activates after switching in only for Gengar
(Perspective of Player 1) Dusclops in Player 2 slot 1, White Herb does not activate after switching for any Pokemon
XD: Gale of Darkness tests
Test that White Herb resets both intimidate attack drops on a double intimidate lead
Test that White Herb activates after switching in and after ability activation