• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Programming Pokémon Showdown Damage Calculator

What type of bug are you reporting? Unsure

What is the bug?
In the damage calc, when calcing damage against a Poison Heal pokemon the healing from poison heal is disabled by mold breaker. I discovered this while calcing oras pure hackmons, and it worked in usum too but couldn't recreate it. In SV the bug is not present, and I did not check the other gens.

Are you able to replicate it? If so, how?
Simply put a mold breaker pokemon against a poison heal pokemon in the oras damage calc, like below.

252+ Atk Rayquaza-Mega Dragon Ascent vs. 252 HP / 252+ Def Gyarados-Mega: 186-220 (47.2 - 55.8%) -- guaranteed 3HKO after Poison Heal

252+ Atk Mold Breaker Rayquaza-Mega Dragon Ascent vs. 252 HP / 252+ Def Gyarados-Mega: 186-220 (47.2 - 55.8%) -- guaranteed 2HKO after toxic damage

The only change I made was removing Mold Breaker. I was able to get the bug to work in the usum calc too but could not recreate it.

edit: this works with mold breaker excadrill and gliscor too.
252 Atk Excadrill Iron Head vs. 248 HP / 0 Def Gliscor: 111-132 (31.4 - 37.3%) -- 50.6% chance to 4HKO after Poison Heal

252 Atk Mold Breaker Excadrill Iron Head vs. 248 HP / 0 Def Gliscor: 111-132 (31.4 - 37.3%) -- guaranteed 3HKO after toxic damage
 
Mold Breaker and clones disable some inappropriate abilities in the calc, such as Rain Dish and Protosynthesis.
Ql1UQUE.png

aHUQGhi.png
Sample showing these abilities aren't affected: https://replay.pokemonshowdown.com/gen9ubers-2185918742

What type of bug are you reporting? Unsure

What is the bug?
In the damage calc, when calcing damage against a Poison Heal pokemon the healing from poison heal is disabled by mold breaker. I discovered this while calcing oras pure hackmons, and it worked in usum too but couldn't recreate it. In SV the bug is not present, and I did not check the other gens.

Are you able to replicate it? If so, how?
Simply put a mold breaker pokemon against a poison heal pokemon in the oras damage calc, like below.

252+ Atk Rayquaza-Mega Dragon Ascent vs. 252 HP / 252+ Def Gyarados-Mega: 186-220 (47.2 - 55.8%) -- guaranteed 3HKO after Poison Heal

252+ Atk Mold Breaker Rayquaza-Mega Dragon Ascent vs. 252 HP / 252+ Def Gyarados-Mega: 186-220 (47.2 - 55.8%) -- guaranteed 2HKO after toxic damage

The only change I made was removing Mold Breaker. I was able to get the bug to work in the usum calc too but could not recreate it.

edit: this works with mold breaker excadrill and gliscor too.
252 Atk Excadrill Iron Head vs. 248 HP / 0 Def Gliscor: 111-132 (31.4 - 37.3%) -- 50.6% chance to 4HKO after Poison Heal

252 Atk Mold Breaker Excadrill Iron Head vs. 248 HP / 0 Def Gliscor: 111-132 (31.4 - 37.3%) -- guaranteed 3HKO after toxic damage
Fixed
 
Alluring Voice appears to be counted as a contact move in the calculator despite not making contact.

0 SpA Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Bewear: 228-270 (59.8 - 70.8%) -- guaranteed 2HKO

0 SpA Tough Claws Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Bewear: 296-350 (77.6 - 91.8%) -- guaranteed 2HKO

0 SpA Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Fluffy Bewear: 114-135 (29.9 - 35.4%) -- 22.9% chance to 3HKO
 
Leftovers and Black Sludge are no longer mentioned in calcs for 'possible 5HKO' or more (not less). If the item is removed, the calc does change to a % to 4HKO. Also happens in past gens (see samples).

Probably result of a recent change (I was calcing yesterday and didn't notice anything off). I checked with someone else to make sure this wasn't intended, if it was, I apologize.
Screenshot at 2024-10-23 18-59-08.png

Here are the calcs in text, showing various outcomes (this is in gen 9):
252+ SpA Vikavolt Bug Buzz vs. 252 HP / 252+ SpD Togedemaru: 77-91 (23 - 27.2%) -- possible 5HKO
252+ SpA Vikavolt Burning Jealousy vs. 252 HP / 252+ SpD Togedemaru: 160-190 (47.9 - 56.8%) -- 41% chance to 2HKO after Leftovers recovery
252+ SpA Vikavolt Origin Pulse vs. 252 HP / 252+ SpD Togedemaru: 125-148 (37.4 - 44.3%) -- guaranteed 3HKO after Leftovers recovery
252+ SpA Vikavolt Scald vs. 252 HP / 252+ SpD Togedemaru: 91-108 (27.2 - 32.3%) -- 65.3% chance to 4HKO after Leftovers recovery

---
Compare the current behavior to the screenshot in this older post showing an ADV calc:
Before: https://www.smogon.com/forums/threads/pokémon-showdown-damage-calculator.3593546/post-9946601
After: 12 SpA Gengar Fire Punch vs. 76 HP / 0 SpD Jolteon: 72-85 (24.8 - 29.3%) -- possible 5HKO
 
Alluring Voice appears to be counted as a contact move in the calculator despite not making contact.

0 SpA Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Bewear: 228-270 (59.8 - 70.8%) -- guaranteed 2HKO

0 SpA Tough Claws Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Bewear: 296-350 (77.6 - 91.8%) -- guaranteed 2HKO

0 SpA Wigglytuff Alluring Voice vs. 0 HP / 0 SpD Fluffy Bewear: 114-135 (29.9 - 35.4%) -- 22.9% chance to 3HKO
Fixed
 
The Calc registers Jet Punch as being boosted by Sheer Force. If I recall correctly this WAS a reported bug either in-game or in Showdown itself, but I've tested it personally and can confirm that Jet Punch is no longer treated as having a secondary effect, at least within Showdown itself (can't test in-game)

252+ Atk Sheer Force Kingler Jet Punch vs. 252 HP / 252+ Def Weezing-Galar: 90-106 (26.9 - 31.7%) -- guaranteed 4HKO
252+ Atk Kingler Jet Punch vs. 252 HP / 252+ Def Weezing-Galar: 69-82 (20.6 - 24.5%) -- guaranteed 5HKO

(No item for these tests)

Replay showing Sheer Force / Jet Punch damage on two GWeezings, one with Levitate, one with Neutralizing Gas: https://replay.pokemonshowdown.com/gen9customgame-2231467734
- Both damage rolls fall within the 20.6 - 24.5% of no-Sheer Force Jet Punch

Sets for clarity, using Custom Game* to allow for Jet Punch to be used to be used:

Kingler
Ability: Sheer Force
Tera Type: Water
EVs: 252 Atk
Adamant Nature
- Jet Punch

Weezing-Galar @ Eject Button
Ability: Levitate
Tera Type: Poison
EVs: 252 HP / 252 Def
Bold Nature
IVs: 0 Atk
- Defog

Neut (Weezing-Galar)
Ability: Neutralizing Gas
Tera Type: Poison
EVs: 252 HP / 252 Def
Bold Nature
IVs: 0 Atk
- Defog
 
The Calc registers Jet Punch as being boosted by Sheer Force. If I recall correctly this WAS a reported bug either in-game or in Showdown itself, but I've tested it personally and can confirm that Jet Punch is no longer treated as having a secondary effect, at least within Showdown itself (can't test in-game)

252+ Atk Sheer Force Kingler Jet Punch vs. 252 HP / 252+ Def Weezing-Galar: 90-106 (26.9 - 31.7%) -- guaranteed 4HKO
252+ Atk Kingler Jet Punch vs. 252 HP / 252+ Def Weezing-Galar: 69-82 (20.6 - 24.5%) -- guaranteed 5HKO

(No item for these tests)

Replay showing Sheer Force / Jet Punch damage on two GWeezings, one with Levitate, one with Neutralizing Gas: https://replay.pokemonshowdown.com/gen9customgame-2231467734
- Both damage rolls fall within the 20.6 - 24.5% of no-Sheer Force Jet Punch

Sets for clarity, using Custom Game* to allow for Jet Punch to be used to be used:

Kingler
Ability: Sheer Force
Tera Type: Water
EVs: 252 Atk
Adamant Nature
- Jet Punch

Weezing-Galar @ Eject Button
Ability: Levitate
Tera Type: Poison
EVs: 252 HP / 252 Def
Bold Nature
IVs: 0 Atk
- Defog

Neut (Weezing-Galar)
Ability: Neutralizing Gas
Tera Type: Poison
EVs: 252 HP / 252 Def
Bold Nature
IVs: 0 Atk
- Defog
Fixed
 
Would it be possible to get a feature where you could input two moves in a row? There's already a feature where you can calc two of the same stat-lowing moves (such as draco/leaf storm etc) in a row, but not two different moves in a row.
 
Back
Top