Hello, recently I have been looking into the mechanics of moves that have multiple targets (like Earthquake, Rock Slide and Dark Void) in Generation 3&4 Doubles, which are currently not implemented correctly in Showdown.
The main difference between how these 'spread moves' work in Gen 4 compared to 5+ is that instead of affecting all targets simultaneously, in Gen 4, spread moves will first affect the fastest target (considering all speed modifiers), then the second fastest and so on until there are no valid targets remaining, this means that if anything changes after the first target is affected, then the changes
may (but not always) be reflected in subsequent targets, this is highly relevant. This post will focus primarily on Gen 4. I will possibly make a follow-up post testing the same mechanics in Gen 3, but I have not done these tests on cartridge yet.
The most important consequence of this, which was well known in VGC (the official competitive format, which is doubles) during the Gen 4 era, is that if a spread move like Rock Slide KOs the faster target, the slower target then takes damage then
is not affected by the spread damage modifier. In other words the second target takes 1.33..x damage. The same is true if a move like Earthquake clears the field, if applicable the final target on the field is not affected by the spread damage modifier.
Additionally for the move Explosion and Self Destruct, there is a further effect, the final
two targets remaining on the field take the full 'single target' damage. This is because when calculating the damage for moves that affect the whole field like Explosion and Earthquake, the game counts the total number of targets remaining on the field, if that number is =<2 (ie the user and the target) then no spread damage modifier is applied, however if the user KOs them self by using Explosion, they are not counted as being on the field.
These two mechanics are not implemented into showdown currently, however I believe a fix to these should also address the other mechanics that come about as a result of the differences in spread moves in gen 4. I have done some tests comparing cartridge (HG) to simulator (Showdown) and noting the how the mechanics work in game in terms of damage calculations and bugs that exist in the simulator as a result.
Test 1: Testing the mechanics explained above.
https://replay.pokemonshowdown.com/gen4vgc2010-2003592079
Turn 1: Rock Slide deals spread reduced damage to Dialga, which is incorrect.
Turn 2: Explosion deals spread reduced damage to Dialga, which is incorrect.
Turn 3: Explosion deals spread reduced damage to Dialga, which is incorrect.
Which corresponds to the twitter link below:
https://twitter.com/x/status/1728603096216179055
Damage Calculation Notes
Regirock Attack = 141
Bronzong Attack = 141
Dialga HP = 207, Defence = 140
Rock Slide dealt 23 damage on cartridge
(21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 24, 24, 24, 25, 25, 26) (Single target)
Rock Slide dealt 19 damage on showdown
(16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19) (Spread damage)
Explosion (Regirock) dealt 101 damage on cartridge
(94, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111) (Single target)
Explosion (Regirock) dealt 72 damage on showdown
(70, 71, 72, 73, 74, 75, 75, 76, 77, 78, 79, 80, 80, 81, 82, 83) (Spread damage)
Explosion (Bronzong) dealt 109 damage on cartridge
(94, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111) (Single target)
Explosion (Bronzong) dealt 81 damage on showdown
(70, 71, 72, 73, 74, 75, 75, 76, 77, 78, 79, 80, 80, 81, 82, 83) (Spread damage)
Test 2: Testing if the user of a move that targets all pokemon is KO'ed mid move, it works the same as explosion (ie the final
two targets take single target damage), if Shell bell is rounded for each target or at the end of the move, Reflect/Light Screen and if KOing an Air Lock or Cloud Nine pokemon will cause the subsequent targets of a Water/Fire attack in the Rain/Sun to take damage with respect to the weather or not.
https://replay.pokemonshowdown.com/gen4doublescustomgame-2003597276
Turn 1: On Showdown, Donphan Earthquake damages all targets, then Jaboca berry activates, then Donphan faints and Houndoom faints. Suicune1&2 take spread reduced damage.
Instead on cartridge (what should happen) Donphan Earthquake first targets Houndoom (the fastest target), Houndoom takes 100% damage, then Jaboca berry activates, then Houndoom and Donphan are KOed, then Suicune2 (faster) takes
single target damage, then Suicune1 (slower) takes
single target damage. So, this is
incorrect on Showdown.
Turn 3: Mamoswine recovers 55 HP from Shell Bell. This is
correct and works the same on cartridge.
Turn 4: Mamoswine EQ damages all targets, Reflect reduces damage by 2/3 instead of 1/2, as happens on cartridge (because Abra is KOed first, so Suicune2 is considered the only opponent). So, this is
incorrect on Showdown.
Turn 6/7: Kyogre Water Spout damages all targets and KOs Rayquaza, Suicune2 takes non Rain boosted, spread reduced Water Spout. What happens on cart is that Kyogre KOs Rayquaza and then Suicune takes Rain Boosted, single target damage. So, this is
incorrect on Showdown.
Which corresponds to the twitter link below:
https://twitter.com/x/status/1728601203976613942
Damage Calculation Notes
Donphan Attack = 189
Mamoswine Attack = 200
Kyogre Sp. Attack = 222
Suicune1&2 HP = 207 Def. & Sp. Def. = 135
Earthquake (Donphan) dealt 91 damage on cartridge
(79, 81, 81, 82, 84, 84, 85, 85, 87, 88, 88, 90, 91, 91, 93, 94)(Single target)
Additional note: In one of my cartridge tests Donphan was burned by Flamethrower, it then did 48&46 damage to Suicune1&2. So from that we can conclude that since burn reduces BP, the effects of burn linger even after Donphan has fainted, so the BP is determined at the start of the move, and not updated (this is also the same for Eruption and Water Spout).
(40, 40, 40, 42, 42, 42, 43, 43, 43, 45, 45, 45, 46, 46, 46, 48) (Burned, single target)
Earthquake (Donphan) dealt 60 damage on showdown
(58, 60, 60, 61, 61, 63, 63, 64, 64, 66, 66, 67, 67, 69, 69, 70) (Spread damage)
Earthquake (Mamoswine) dealt 37 damage on cartridge
(33, 33, 33, 33, 34, 34, 34, 34, 36, 36, 36, 36, 37, 37, 37, 39) (Singles reflect, spread damage)
Earthquake (Mamoswine) dealt 45 damage on showdown
(42, 43, 43, 43, 45, 45, 45, 46, 46, 46, 48, 48, 48, 49, 49, 51) (Doubles reflect, spread damage)
Water Spout dealt 108 damage on cartridge
(104, 105, 106, 108, 108, 110, 111, 112, 114, 115, 116, 117, 119, 120, 121, 123) (Rain Boosted, single target)
Water Spout dealt 56 damage on showdown
(52, 53, 54, 54, 54, 55, 56, 57, 57, 58, 58, 59, 60, 60, 61, 62) (No weather, spread damage)
Test 3: Testing if the BP of Eruption is updated mid move if the user takes damage from Aftermath or Rowap Berry, Flower Gift and Petaya Berry.
https://replay.pokemonshowdown.com/gen4doublescustomgame-2003663868
Turn 1: On Showdown, Groudon Eruption KOs Cherrim, deals Flower Gift reduced damage to Snorlax, then takes Rowap Berry Damage. Should instead eat Rowap Berry after KOing Cherrim, but then still deal
full 150 BP, despite not being full HP. Additionally the effects of Flower Gift should also not considered on Snorlax and it should be single target. So, this is
incorrect on Showdown.
Turn 2: Groudon uses Eruption, KOing Weedle, then damages Snorlax with 56 BP Eruption, then takes Rowap Berry damage and then eats Petaya Berry. Instead, (as on cartridge) Groudon should KO Weedle,
then take Rowap Berry damage, then deal 56 BP Eruption
then eat the Petaya berry, although for the purposes of the damage calculation these are mostly identical, Eruption should be single target on Snorlax. So, this is
incorrect on Showdown.
Which corresponds to the twitter link below:
https://twitter.com/x/status/1731176618066919539
Damage Calculation Notes
Groudon Sp. Attack = 167
Groudon HP = 200
Snorlax HP = 267 Sp. Def. = 115
Snorlax Ability: Immunity
Eruption 1 dealt 115 damage on cartridge
(108, 110, 111, 112, 113, 115, 116, 117, 119, 120, 121, 122, 124, 125, 126, 128) (150 BP No Flower Gift, single target)
Eruption 1 dealt 69 damage on showdown
(62, 63, 64, 65, 65, 66, 67, 68, 68, 69, 70, 71, 71, 72, 73, 74) (150 BP Flower Gift, spread damage)
Eruption 2 dealt 45 damage on cartridge
(45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51, 51, 52, 52, 53, 54) (56 BP, single target)
Eruption 2 dealt 36 damage on showdown
(34, 35, 35, 36, 36, 36, 37, 37, 38, 38, 38, 39, 39, 40, 40, 41) (56 BP, spread damage)
In summary, Gen 4 doubles has a very different implementation of moves with multiple targets. Originally I was planning on including some tournament games from DP Doubles OU and VGC 2009/10 whose results were completely changed from what they would be on cartridge by the incorrect implementation of this mechanic, however due to the Replay Data loss I am unable to share any currently. Instead here are some ladder games from
just one day that demonstrate the mechanic.
Example Replays
https://replay.pokemonshowdown.com/gen4doublesou-2003220577 - Turn 2, Tyranitar should take single target damage from Explosion.
https://replay.pokemonshowdown.com/gen4doublesou-2003306927 - Turn 2, Tyranitar should take single target damage from Blizzard.
https://replay.pokemonshowdown.com/gen4doublesou-2003319934 - Turn 1, Tyranitar should take single target damage from Explosion.
https://replay.pokemonshowdown.com/gen4doublesou-2003327679 - Turn 6, Heatran should take single target damage from Explosion.
https://replay.pokemonshowdown.com/gen4doublesou-2003380356 - Turn 3, Gyarados should take single target damage from Rock Slide (if Kangaskhan is faster).
https://replay.pokemonshowdown.com/gen4doublesou-2003425992 - Turn 7, Metagross should take single target damage from Explosion.
https://replay.pokemonshowdown.com/gen4doublesou-2003431216 - Turn 5, Kingdra should take single target damage from Rock Slide.
https://replay.pokemonshowdown.com/gen4doublesou-2003434898 - Turn 9, Gengar should take single target damage from Blizzard.
https://replay.pokemonshowdown.com/gen4doublesou-2003443835 - Turn 7, Tyranitar should take single target damage from Explosion.
https://replay.pokemonshowdown.com/gen4doublesou-2003451928 - Turn 4, Tangrowth should take single target damage from Earthquake (If Magnezone is faster when considering effects of Trick Room).
https://replay.pokemonshowdown.com/gen4doublesou-2003465153 - Turn 1, Tyranitar should take single target damage from Explosion.