Programming Pokémon Showdown Damage Calculator

I was wondering if we could Add Ingrain and Aqua Ring to the Damage Calculator as a Button. We have Leech Seed, so why not Ingrain and Aqua Ring. Its mainly useful to see if Leftis + Ingrain or Aqua Ring get you out of range of something. Would be great if it could get added.
 

Colteor

Free old gens in WCOP
is a Pre-Contributor
RoAPL Champion
To add to the above post, all "-ate" abilities (Pixilate, Refrigerate and Aerilate) as well as Iron Fist and Reckless aren't working in gen 7 or 8 (they do work in 6). Tested a bunch of other power boosting abilities but these are the only ones that are bugged as far as I can tell.
1619894601612.png

1619894678052.png
 
Minor Bug since the last Update of the Import function for custom sets few days ago. When I scroll down my imported pkmn and press enter and scroll down from there I automatically jump to the first one instead of the next pkmn in the list when I reach number 30 or 31.
 
Small feature request: can the damage calculator include toggle buttons for the different badge boosts? It would make it much easier to use for calcs in speedruns
 
Mold Breaker/ability-ignoring moves ignore abilities that increase, decrease, or prevent hazard/end-of-turn damage and gives end-of-turn healing. IIRC this was brought up and fixed for Poison Heal but there's a few others.

Mold Breaker/ability-ignoring moves allow weather damage to occur against Pokemon with Sand Veil, Sand Force, Sand Rush, Snow Cloak, and Overcoat
(Same results for all of the above)
252+ Atk Iron Plate Solgaleo Sunsteel Strike vs. 252 HP / 252+ Def Reuniclus: 195-229 (45.9 - 54%) -- 95.3% chance to 2HKO after sand/hail damage
252+ Atk Iron Plate Mold Breaker Solgaleo Iron Tail vs. 252 HP / 252+ Def Reuniclus: 195-229 (45.9 - 54%) -- 95.3% chance to 2HKO after sand/hail damage
252+ Atk Iron Plate Solgaleo Iron Tail vs. 252 HP / 252+ Def Reuniclus: 195-229 (45.9 - 54%) -- 47.7% chance to 2HKO

Basically every effect that Magic Guard is supposed to prevent is ignored when Mold Breaker/ability-ignoring moves are used (including both entry hazards and end-of-turn damage)
0 Atk Druddigon Iron Tail vs. 0 HP / 0 Def Mew: 85-100 (24.9 - 29.3%) -- 100% chance to 4HKO
0 Atk Druddigon Sunsteel Strike vs. 0 HP / 0 Def Mew: 85-100 (24.9 - 29.3%) -- guaranteed 2HKO after Stealth Rock, Steelsurge, 3 layers of Spikes, Black Sludge damage, Leech Seed damage, poison damage, Vine Lash damage, Wildfire damage, Cannonade damage, and Volcalith damage
0 Atk Mold Breaker Druddigon Iron Tail vs. 0 HP / 0 Def Mew: 85-100 (24.9 - 29.3%) -- guaranteed 2HKO after Stealth Rock, Steelsurge, 3 layers of Spikes, Black Sludge damage, Leech Seed damage, poison damage, Vine Lash damage, Wildfire damage, Cannonade damage, and Volcalith damage

Causes Levitate to be ignored when calculating Spikes damage
0 Atk Druddigon Iron Tail vs. 0 HP / 0 Def Mew: 85-100 (24.9 - 29.3%) -- 0.1% chance to 3HKO after Stealth Rock
0 Atk Druddigon Sunsteel Strike vs. 0 HP / 0 Def Mew: 85-100 (24.9 - 29.3%) -- guaranteed 3HKO after Stealth Rock and 3 layers of Spikes

For Heatproof, burn damage should still be reduced despite the effect on the damage of the attack being ignored.
252+ Atk Mold Breaker Druddigon Fire Punch vs. 252 HP / 4 Def Bronzong: 150-178 (44.3 - 52.6%) -- 22.3% chance to 2HKO after Leftovers recovery and burn damage

The correct result should be:
252+ Atk Druddigon Fire Punch (150 BP) vs. 252 HP / 4 Def Heatproof Bronzong: 150-178 (44.3 - 52.6%) -- 3.9% chance to 2HKO after Leftovers recovery and reduced burn damage
252+ Atk Druddigon Fire Punch vs. (Hardcoded to 349 HP) Bronzong: 150-178 (42.9 - 51%) -- 3.9% chance to 2HKO (252 HP Bronzong has 338 HP, Leftovers heals 21 and reduced burn deals 10 so 349 damage is needed to KO)

For Dry Skin, end-of-turn damage should still apply despite the effect on the damage of the attack being ignored.
0 Atk Druddigon Blaze Kick vs. 0 HP / 0 Def Dry Skin Mew in Sun: 135-159 (39.5 - 46.6%) -- 30.5% chance to 2HKO after Dry Skin damage
0 Atk Mold Breaker Druddigon Blaze Kick vs. 0 HP / 0 Def Mew in Sun: 107-127 (31.3 - 37.2%) -- 84.1% chance to 3HKO

The correct result (with poison mimicking Dry Skin damage) should be:
0 Atk Mold Breaker Druddigon Blaze Kick vs. 0 HP / 0 Def Mew in Sun: 107-127 (31.3 - 37.2%) -- guaranteed 3HKO after poison damage
The same occurs for end-of-turn healing in Rain
+1 0 Atk Mold Breaker Druddigon Liquidation vs. 0 HP / 0 Def Mew in Rain: 161-190 (47.2 - 55.7%) -- 78.5% chance to 2HKO

The correct result (with Poison Heal mimicking Dry Skin recovery) should be:
+1 0 Atk Druddigon Liquidation vs. 0 HP / 0 Def Mew in Rain: 161-190 (47.2 - 55.7%) -- guaranteed 3HKO after Poison Heal
 

Plague von Karma

Banned deucer.
Heya, I have a couple of suggestions.

Is it possible for calcs to be stored for sequences, such as Body Slam -> Earthquake or something? I think sulcalc did this once and it was super helpful in so many situations.

This other one came up in conversation earlier; would it be possible to add a toggle to account for various probabilities as well, maybe with options for stuff like critical hits, accuracy, etc? This could help with Thunder calcs in Gen 2, for example, where the accuracy can cause a lot of variance. If anything, the Thunder XHKO chances are arguably misleading.

Thank you for your time!

EDIT: Also, the calc doesn't appear to have been recompiled in a while, so a ton of sets from the strategy dex aren't available right now. This particularly affects RBY since the dex has received a significant revamp in the past couple months. Could this be sorted out?
 
Last edited:

KeroseneZanchu

Banned deucer.
Quick and simple bug report - the Damage Calculator does not properly take into account the interaction between Normalize and Hidden Power. Just like Revelation Dance and Judgment, Hidden Power ignores the type-changing effects of Normalize. However, unlike Revelation Dance and Judgment(/Multi-Attack), this is not reflected in damage calcs.

Normalize Delcatty Hidden Power Dark vs. Giratina: 0-0 (0 - 0%) -- possibly the worst move ever
 

Colteor

Free old gens in WCOP
is a Pre-Contributor
RoAPL Champion
In the rby calc, the moves slash, razor leaf and crabhammer are always a critical hit, even though they aren't a guarenteed crit on slow mons (they just have an 8x higher crit chance, capped at 99.6%). For some reason karate chop behaves like every other attacking move, even though it also has a high crit rate. This was probably done to make calcing with mons like Persian easier, since they almost always get a crit when using high crit moves, but it'd be nice to be able to see how much damage a non crit would do with these moves.
1622213580792.png

Paras only has a ~39% chance to crit with slash, but it defaults to a critical hit and there's no way to change it. Horn attack is 70 bp for comparison.
 
Minor Bug since the last Update of the Import function for custom sets few days ago. When I scroll down my imported pkmn and press enter and scroll down from there I automatically jump to the first one instead of the next pkmn in the list when I reach number 30 or 31.
Unfortunately this Bug is still there
 

esche

Frust kommt auf, denn der Bus kommt nicht
is a Tiering Contributor Alumnus
Hi,

something's up with Technician + type specific attack boosting items such as Silk Scarf in DPP. Life Orb calcs are just fine, however.

All of the following calcs were done with a Technician Scizor (even those that do not show Technician):

DPP
252+ Atk Insect Plate Scizor Bug Bite vs. 252 HP / 252+ Def Blissey: 235-277 (32.9 - 38.7%) -- 99.5% chance to 3HKO
and
252+ Atk Life Orb Technician Scizor Bug Bite vs. 252 HP / 252+ Def Blissey: 382-450 (53.5 - 63%) -- guaranteed 2HKO

BW
252+ Atk Insect Plate Technician Scizor Bug Bite vs. 252 HP / 252+ Def Blissey: 351-414 (49.1 - 57.9%) -- 97.7% chance to 2HKO
and
252+ Atk Life Orb Technician Scizor Bug Bite vs. 252 HP / 252+ Def Blissey: 382-450 (53.5 - 63%) -- guaranteed 2HKO

Oddly enough, this only appears to affect moves with a flat 60 BP. Metal Claw has 55 BP and gets both boosts (as it should):

DPP
252+ Atk Metal Coat Technician Scizor Metal Claw vs. 252 HP / 252+ Def Blissey: 294-346 (41.1 - 48.4%) -- guaranteed 3HKO

BW
252+ Atk Metal Coat Technician Scizor Metal Claw vs. 252 HP / 252+ Def Blissey: 294-346 (41.1 - 48.4%) -- guaranteed 3HKO

STAB doesn't seem to be the root of this error:

DPP

252+ Atk Sharp Beak Scizor Wing Attack vs. 252 HP / 252+ Def Blissey: 157-185 (21.9 - 25.9%) -- 3.6% chance to 4HKO

BW
252+ Atk Sharp Beak Technician Scizor Wing Attack vs. 252 HP / 252+ Def Blissey: 234-276 (32.7 - 38.6%) -- 99.3% chance to 3HKO

I didn't find anything online that suggests Technician works differently in DPP and the discrepancy between Insect Plate Bug Bite and Metal Coat Metal Claw (which both increase the power to above 60 BP with the help of the respective type specific boosting item) leads me to believe that this is an error. PS doesn't have this issue either; Insect Plate + Technician boost Bug Bite to the correct power of 108 in DPP games as intended.

https://replay.pokemonshowdown.com/gen4ou-1360862930-k1bgel38h5nwsb1c42x352fpg0aqwzwpw

Screenshot_1.png

I appreciate any help, thanks!
 
https://replay.pokemonshowdown.com/gen1uu-1363286145-l05jqljcd3422cdd4du58psqjph9ohtpw

very minor but on turn 41


The opposing Raichu used Surf!
It's super effective!
(Dugtrio lost 69.6% of its health!)


Damage calc says Raichu max roll Surf on Dugtrio is 69.5%
190/273 is about 69.59% so it's the same raw damage, but I guess the calc rounds down percentages while PS doesn't.
Either way if you can see the decimal percentage on PS, then you can still hover to see your exact HP loss.
 

Ryota Mitarai

Shrektimus Prime
is a Tiering Contributoris a Contributor to Smogonis a Top Smogon Media Contributor
custom set.jpg

when I hit enter with the "Custom Set" field (the upper one on the image) focused, it refreshes the page. In fact, if you are on any previous generation calculator, this will cause it to refresh to the current gen one.
 

Users Who Are Viewing This Thread (Users: 2, Guests: 3)

Top