Programming Pokémon Showdown Damage Calculator

Austin

Schismatic
is a Forum Moderatoris a Community Contributoris a Battle Server Moderator
Moderator
#51
Changing forme to Zygarde 10%/50% to its Complete Forme will not change its HP stat:
View attachment 109640 View attachment 109641

Also, the sandstorm damage is not counted:
64+ Atk Technician Scizor-Mega Bullet Punch vs. 0 HP / 0 Def Whimsicott: 242-288 (92.7 - 110.3%) -- 56.3% chance to OHKO
64+ Atk Technician Scizor-Mega Bullet Punch vs. 0 HP / 0 Def Whimsicott: 242-288 (92.7 - 110.3%) -- 56.3% chance to OHKO after sandstorm damage
I’ll fix the forme thing but your first calc doesn’t show sandstorm damage because your move already has a high chance to OHKO without it
 
#53
I’ll fix the forme thing but your first calc doesn’t show sandstorm damage because your move already has a high chance to OHKO without it
If this happens for sandstorm damage, then why does the calculator still sometimes say "some % chance to OHKO after Leftovers recovery"? If it's an OHKO, then why do leftovers matter?
 

Austin

Schismatic
is a Forum Moderatoris a Community Contributoris a Battle Server Moderator
Moderator
#54
If this happens for sandstorm damage, then why does the calculator still sometimes say "some % chance to OHKO after Leftovers recovery"? If it's an OHKO, then why do leftovers matter?
It doesn’t display leftover recovery when the recovery amount doesn’t matter
 
#55
It doesn’t display leftover recovery when the recovery amount doesn’t matter
titled.png

How does the leftovers recovery matter in this case? The Landorus was at full health when the attack hits, and it either gets OHKO'd or 2HKO'd regardless of whether or not it's holding a leftovers.
 
#57
titled.png

It's definitely not only multi-hit moves.

By the way, why do some blank sets have default abilities and others default to "(other)"? This varies even among Pokemon with one possible ability.
 

Austin

Schismatic
is a Forum Moderatoris a Community Contributoris a Battle Server Moderator
Moderator
#59
this is rather nitpicky so im posting it here but is it possible to either add a second wingull set with flyinium z or just change the wingull set rn from life orb to flyinium? its pretty annoying to calc wingull because the wingull on the calc is set to hold life orb rather than flyinium, which is what most wingull run nowadays, and having to find and change the item just to not mess with calcs can be inconvenient. not to mention that wingull will often be in play multiple times during a match so having the set hold flyinium instead would make it less time consuming to calc. and yes i realize you can import sets onto the calc but that set only appears for your computer so it would make it more universally convenient to just change the item wingull holds from life orb to flyinium or to just add a flyinium set.
Change the set on smogon and sure, we rip all of our sets from here
 
Last edited:
#60
I have a bug to report.

Kommo's (Blank Set) in the damage calculator uses the HP of whatever pokemon was selected beforehand, and the calcs versus it will use this HP stat in their calculations. Changing IVs or EVs cause the calc to use a correct HP stat.

Here's a screenshot of the issue, and I've been able to replicate it consistently.
kommo.png

No other mons or sets I've checked do this. I checked Jangmo-O because I thought the -O might be causing the issue, and I checked other base 75 HP pokemon.
 

Lavos

totalselfhatred
is a Community Contributoris a Tiering Contributoris the 4th Smogon Classic Winneris a Past WCoP Champion
#61
Hey, not sure if this is the right place, but there's a bug with the damage calculator when finding Struggle damage in GSC.

https://replay.pokemonshowdown.com/smogtours-gen2ou-373028

( ( ( ( ( ( (2 x 100)/5) + 2 ) * 50 * (999/999) ) / 50 ) + 2 ) / 50 ) = 44
44 * .85 = 37 (rounds down)
Damage roll for +6 Skarmory's Struggle vs +6 Skarmory = 11.1% - 13.2%

In the above replay you can see that Struggle is doing around 12% damage when both Skarmorys are at max stats, so 999 Atk/Def (GSC caps stats at this) with the 50 BP effectively-typeless move. This is correct if you do the damage calculation by hand. In GSC Struggle isn't affected by STAB/resistances/etc. which is why I call it typeless, but when you select the default option in the calculator for Struggle, which is "None", you get this damage:

Skarmory Struggle vs. Skarmory: 28-33 (8.4 - 9.9%)

This is obviously wrong, which is why it surprised me. Note that this is only when Struggle's type is "None" - when I changed the type of Struggle to a type that's neutral vs Skarmory, such as Fighting, it displayed the proper damage roll:

+6 Skarmory Struggle vs. +6 Skarmory: 37-44 (11.1 - 13.2%)

Seems to only be an issue with the type "None" option in the damage calculator. Haven't tested it for other gens. Thanks!
 
#62
There seems to be a problem with recoil calculation when the damage done by a recoil move exceeds the targets maximum HP, causing it to become something close to 0. Please either fix or implement this on PS.




 
#63
Just noticed there is a dedicated thread to damage calc bugs. Discovered in the bug report thread so I'll repost here since it's more appropriate.



Metronome (the item) does not function correctly, giving incorrect boost values. Here's a specific quote from the thread with more detail.

The damage calculator is implementing Metronome as no boost for the first use, then x1.1, then x1.32 (applying both a 1.1 and a 1.2 boost), then x1.716 (all of 1.1, 1.2, and 1.3), then x2.4024 (tacking on a 1.4 as well). Battle source, on the other hand, simply adds a flat 1.2 to the multiplier each time...with the implication that the move wouldn't max out until the 6th use, rather than the 5th?
Easy example:

1 time: 252 SpA Abomasnow Blizzard vs. 0 HP / 0 SpD Abomasnow: 162-192 (50.4 - 59.8%) -- guaranteed 2HKO
5 times: 252 SpA Metronome Abomasnow Blizzard vs. 0 HP / 0 SpD Abomasnow: 389-461 (121.1 - 143.6%) -- guaranteed KO in 1 turns


Metronome's maximum damage multiplier is 2x, so it's clear to see that the damage here is way off.
 

MacChaeger

Go ahead, I’m bulletproof
is a Battle Server Moderator
#66
Noticed a bug where switching from the default Abomasnow set to a blank Gyarados set didn't change the displayed max hp, so it still showed 321 instead of 331. Also, if you're going to have weather persist after changing out the Pokemon whose ability set it automatically, can the default Pokemon not be Abomasnow? It's pretty annoying to have to turn off the hail for every first calculation.
 
#67
Not all of the berries for natural gift work, and one isn't even there, which forces you to make up a move and adjust the BP to do an accurate calc.
Wiki
Aguav
Aspear
Bluk
Cheri
Cornn
Figy
Grepa
Hondew
Iapapa
Kelpsy
Mago
Magost
Nanab
Nomel
Pamtre
Pecha
Persim
Pinap
Pomeg
Qualot
Rabuta
Razz
Spelon
Tamato
Wepear

In addition, Lum does not appear in the calc at all, much less to use for natural gift purposes (It's typically an 80 BP flying move).

Thanks,
Bortortle
 

TDA

formerly The Dark Alakazam
#68
0- Atk Blaze Mewtwo-Mega-Y Fire Spin vs. 0 HP / 4 Def Kartana: 68-84 (26.2 - 32.4%) -- guaranteed 3HKO after trapping damage

If I'm not mistaken, Calc considers fire spin a physical move (was calcing a nonserious balanced hackmons set when I noticed this)
 

TDA

formerly The Dark Alakazam
#69
"I have two bugs to report, both having to do with the Showdown calculator. Not sure if either have been reported before. The first, and most important one, is that the calculator will sometimes carry over HP stats to other mons without indicating with the Base Hp Stat. This can be remedied if you add HP evs to the Pokemon, but it can still lead to miscalcs if the player isn't expecting the bug. I notice this usually happens if I switch to calcing a specific custom set I have imported to the calc, which leads me to believe it is an issue with the cookies.

The second bug is a minor one: For Necrozma's Photon Geyser, it does not ignore multiscale when calcing. Seems like an easy fix. edit: irrelevant bc it was already fixed

TYVM, have a good one"

(Originally posted this in a Bug Reports thread, moving it here)
 
Last edited:
#70
I don't know if this is a bug or a design choice, but the chance-to-KO feature goes a bit screwy when the maximum damage is exactly enough to KO.
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 212 HP / 0 SpD Tyranitar in Sand: 250-294 (63.4 - 74.6%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 208 HP / 0 SpD Tyranitar in Sand: 250-294 (63.6 - 74.8%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 204 HP / 0 SpD Tyranitar in Sand: 250-294 (63.7 - 75%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 200 HP / 0 SpD Tyranitar in Sand: 250-294 (63.9 - 75.1%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 196 HP / 0 SpD Tyranitar in Sand: 250-294 (64.1 - 75.3%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 192 HP / 0 SpD Tyranitar in Sand: 250-294 (64.2 - 75.5%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
 
#71
I don't know if this is a bug or a design choice, but the chance-to-KO feature goes a bit screwy when the maximum damage is exactly enough to KO.
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 212 HP / 0 SpD Tyranitar in Sand: 250-294 (63.4 - 74.6%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 208 HP / 0 SpD Tyranitar in Sand: 250-294 (63.6 - 74.8%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 204 HP / 0 SpD Tyranitar in Sand: 250-294 (63.7 - 75%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 200 HP / 0 SpD Tyranitar in Sand: 250-294 (63.9 - 75.1%) -- guaranteed 2HKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 196 HP / 0 SpD Tyranitar in Sand: 250-294 (64.1 - 75.3%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
+2 252 SpA Life Orb Thundurus Thunderbolt vs. 192 HP / 0 SpD Tyranitar in Sand: 250-294 (64.2 - 75.5%) -- 6.3% chance to OHKO after Stealth Rock and 1 layer of Spikes
Does this only happen when the target is taking damage from stealth rock and spikes?
 
#72
Mold Breaker, Teravolt and Turboblaze are not ignoring Multiscale/Shadow Shield as intended at the moment:

252+ Atk Teravolt Zekrom Outrage vs. 0 HP / 0 Def Multiscale Dragonite: 250-295 (77.3 - 91.3%) -- guaranteed 2HKO

252+ Atk Mold Breaker Rampardos Stone Edge vs. 0 HP / 0 Def Multiscale Dragonite: 225-265 (69.6 - 82%) -- guaranteed 2HKO

252 SpA Choice Specs Turboblaze Kyurem-White Ice Beam vs. 0 HP / 0 SpD Multiscale Lugia: 186-219 (52.6 - 62%) -- guaranteed 2HKO

252 Atk Marshadow Spectral Thief vs. 0 HP / 0 Def Shadow Shield Lunala: 318-374 (76.6 - 90.1%) -- guaranteed 2HKO


Also when calculating, Multiscale/Shadow Shield aren't taking into the effect that the second and consecutive attacks do twice the amount of the first:

252 Atk Lopunny Return vs. 0 HP / 0 Def Multiscale Dragonite: 61-72 (18.8 - 22.2%) -- possible 5HKO (it should be 3HKO)
 
Last edited:
#73
Mold Breaker, Teravolt and Turboblaze are not ignoring Multiscale/Shadow Shield as intended at the moment:

252+ Atk Teravolt Zekrom Outrage vs. 0 HP / 0 Def Multiscale Dragonite: 250-295 (77.3 - 91.3%) -- guaranteed 2HKO

252+ Atk Mold Breaker Rampardos Stone Edge vs. 0 HP / 0 Def Multiscale Dragonite: 225-265 (69.6 - 82%) -- guaranteed 2HKO

252 SpA Choice Specs Turboblaze Kyurem-White Ice Beam vs. 0 HP / 0 SpD Multiscale Lugia: 186-219 (52.6 - 62%) -- guaranteed 2HKO

252 Atk Marshadow Spectral Thief vs. 0 HP / 0 Def Shadow Shield Lunala: 318-374 (76.6 - 90.1%) -- guaranteed 2HKO


Also when calculating, Multiscale/Shadow Shield aren't taking into the effect that the second and consecutive attacks do twice the amount of the first:

252 Atk Lopunny Return vs. 0 HP / 0 Def Multiscale Dragonite: 61-72 (18.8 - 22.2%) -- possible 5HKO (it should be 3HKO)
Mold Breaker, Teravolt, and Turboblaze aren't suppose to ignore Shadow Shield, they do bypass Multiscale though
 
#74
arcanine error.jpg arcanine error2.jpg

When Arcanine uses Overheat multiple times, the calc inverts the % chance to KO with respect to additional EVs.

0 SpA Life Orb Arcanine Overheat over 3 turns vs. 252 HP / 4 SpD Clefable: 364-431 (92.3 - 109.3%) -- 43.8% chance to 3HKO after Leftovers recovery
28 SpA Life Orb Arcanine Overheat over 3 turns vs. 252 HP / 4 SpD Clefable: 373-445 (94.6 - 112.9%) -- 31.3% chance to 3HKO after Leftovers recovery

This pattern is repeated with other mons using reducing SpA attacks

252 SpA Life Orb Hydreigon Draco Meteor over 3 turns vs. 248 HP / 156+ SpD Venusaur-Mega: 338-401 (93.1 - 110.4%) -- 43.8% chance to 3HKO
156 SpA Life Orb Hydreigon Draco Meteor over 3 turns vs. 248 HP / 156+ SpD Venusaur-Mega: 317-376 (87.3 - 103.5%) -- 81.3% chance to 3HKO
etc
 
#75
252+ SpA Seviper Acid Downpour (175 BP) vs. 0 HP / 4 SpD Tapu Koko: 660-776 (234.8 - 276.1%) -- guaranteed OHKO after poison damage
Why does the poison damage matter? If it doesn't, then why does it display?
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top