• The moderators of this forum are Austin and pre.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon.

Programming Pokémon Showdown Damage Calculator

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 Simulator Moderator Alumnus
Moderator
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:

Lord Death Man

i cant read
is a Community Contributoris a Tiering Contributor
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

Banned deucer.
is a defending SPL Championis a Past WCoP Championis the defending ADV Circuit Champion
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!
 

Robb576

It's all in the numbers
is a Battle Simulator Driver
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.




 
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.
 

BigPimpin12

Banned deucer.
While using the calculator I noticed that Rocky Helmet wasn't available as an item and it seems like it should be given that it affects damage output and ranges. I asked in Help if this was something intentional or if I was just missing something and was asked to post about it here so here I am.

dmgcalc.png

This is currently what is listed for items beginning with 'R.'
 
The message displayed when calculating foul play should reference the target's physical attack EV's instead of the user's.
 

MacChaeger

Go ahead, I’m bulletproof!
is a Programmeris a Battle Simulator Moderator Alumnus
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.
 
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
 

Alakazam

corrupt auth xd
is a member of the Site Staffis a Forum Moderatoris a Contributor to Smogon
Moderator
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)
 

Alakazam

corrupt auth xd
is a member of the Site Staffis a Forum Moderatoris a Contributor to Smogon
Moderator
"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:
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
 
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?
 
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:

Felixx

I'm back.
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
 
arcanine error.jpgarcanine 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
 
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?
 
why don't add the moves, items and abilities that left in the calc? Aswell might want to updated some sets that are still being old in the cal (even they got updated on the analysis)
 

Austin

Schismatic
is a Forum Moderatoris a Community Contributoris a Battle Simulator Moderator Alumnus
Moderator
why don't add the moves, items and abilities that left in the calc? Aswell might want to updated some sets that are still being old in the cal (even they got updated on the analysis)
Which moves, items, and abilities are missing? If you give me the list I’ll add them asap
 
So as you requested to me to here is the list of the moves, items and abilities that left to be added on the calculator:

Absorb, Acid, Acid Armor, Acupressure, After You, Ally Switch, Aqua Ring, Aromatic Mist, Assist, Attract, Aurora Veil, Baby-Doll-Eyes, Baneful Bunker, Barrage, Beat Up, Bide, Block, Bubble, Camouflage, Captitative, Celebrate, Charge, Charm, Comet Punch, Confide, Confusion, Constrict, Conversion/2, Copycat, Cosmic Power, Cotton Spore, Counter, Crush Grip, Cut, Detect, Dizzy Punch, Dragon Dance, Dragon Breath, Echoed Voice, Eerie Impulse, Egg Bomb, Electrify, Embargo, Ember, Entrainment, Fairy Lock, Fairy Wind, Fake Tears, False Swipe, Feather Dance, Fissure, Flash, Flatter, Flower Healing, Flower Shield, Focus Energy, Follow Me, Foresight, Fury Attack, Fury Cutter, Gastro Acid, Gear Up, Grass Whistle, Grassy Terrain, Gravity, Growl, Growth, Grudge, Guard Split, Guard Swap, Guillotine, Hail, Happy Hour, Harden, Happy Hour, Headbutt, Heal Block, Heart Swap, Hear Crash, Hold Back, Hold Hands, Horn Drill, Howl, Hypnosis, Ice Ball, Imprison, Ion Deluge, Instruct, Karate Chop, Kinesis, Laser Focus, Leafage, Leer, Lick, Lock On, Lucky Chant, Magic Room, Magnetic Flux, Magnitude, Mat Block, Mean Look, Meditate, Mega Drain, Mega Kick, Mega Punch, Memento, Metal Burst, Metal Sound, Metronome, Mimic, Mind Reader, Minimize, Miracle Eye, Mirror Coat, Mist, Misty Terrain, Morning Sun, Mud Slap, Mud Spot, Nightmare, Noble Roar, Octazooka, Odor Sleuth, Pain Split, Parting Shot, Pay Day, Peck, Perish Song, Petal Blizzard, Play Nice, Poison Gas, Poison Powder, Poison Sting, Pound, Powder, Powder Snow, Power Split, Power Swap, Power Trick, Present, Psybeam, Psychic Terrain, Psych Up, Psywave, Purify, Quash, Rage, Rain Dance, Razor Wing, Reflect Type, Role Play, Rolling Kick, Rollout, Rototiller, Safeguard, Sand Attack, Sandstorm, Scary Face, Scratch, Screech, Sharpen, Shore Up, Simple Beam, Sketch, Skill Swap, Slam, Sleep Powder, Smelling Salts, Smog, Smokescreen, Snatch, Snore, Soak, Speed Swap, Spider Web, Spike Cannon, Spite, Spit Up, Splash, Spotlight, Stomp, Strength, Strength Sap, String Shot, Stun Spore, Supersonic, Swallow, Sweet Kiss, Sweet Scent, Tail Whip, Tearful Look, Teeter Dance, Telekinesis, Teleport, Thunder Shock, Tickle, Topsy-Turvy, Torment, Toxic Thread, Transform, Trick-or-Treat, Triple Kick, Trump Card, Twister, Venom Drench, Vine Grip, Vine Whip, Water Sport, Withdraw, Wonder Room, Work Up, Worry Seed.

//deal with ability functions//
Anger Point, Anticipation, Aroma Veil, Big Pecks, Cheek Pouch, Color Change, Competitive, Compound Eyes, Cursed Body, Cute Charm, Damp, Early Bird, Effect Spore, Flame Body, Flower Veil, Frisk, Friend Guard, Gluttony, Gooey, Healer, Heavy Metal, Heatproof, Harvest, Hustle, Hydration, Honey Gather, Illuminate, Illusion, Inmunity, Imposter, Inner Focus, Insomnia, Iron Barbs, Keen Eye, Leaf Guard, Light Metal, Limber, Magic Bounce, Magician, Magma Armor, Magnet Pull, Moody, Moxie, Multiscale, Multitype, Mummy, Natural Cure, No Guard, Normalize, Oblivious, Own Tempo, Persistent, Pickpocket, Pickup, Poison Point, Prankster, Pressure, Serene Grace, Shadow Tag, Shed Skin, Speed Boost, Stall, Stance Change, Static, Steadfast, Stench, Suction Cups, Super Luck, Sweet Veil, Symbiosis, Synchronize, Tangled Feet, Telepathy, Trace, Truant, Unburden, Victory Star, Vital Spirit, Water Veil, Wonder Skin, Zen Mode.

Hope it helps out to make calculator better Austin
 
Last edited by a moderator:
So as you requested to me to here is the list of the moves, items and abilities that left to be added on the calculator:

Absorb, Acid, Acid Armor, Acupressure, After You, Ally Switch, Aqua Ring, Aromatic Mist, Assist, Attract, Aurora Veil, Baby-Doll-Eyes, Baneful Bunker, Barrage, Beat Up, Bide, Block, Bubble, Camouflage, Captitative, Celebrate, Charge, Charm, Comet Punch, Confide, Confusion, Constrict, Conversion/2, Copycat, Cosmic Power, Cotton Spore, Counter, Crush Grip, Cut, Detect, Dizzy Punch, Dragon Dance, Dragon Breath, Echoed Voice, Eerie Impulse, Egg Bomb, Electrify, Embargo, Ember, Entrainment, Fairy Lock, Fairy Wind, Fake Tears, False Swipe, Feather Dance, Fissure, Flash, Flatter, Flower Healing, Flower Shield, Focus Energy, Follow Me, Foresight, Fury Attack, Fury Cutter, Gastro Acid, Gear Up, Grass Whistle, Grassy Terrain, Gravity, Growl, Growth, Grudge, Guard Split, Guard Swap, Guillotine, Hail, Happy Hour, Harden, Happy Hour, Headbutt, Heal Block, Heart Swap, Hear Crash, Hold Back, Hold Hands, Horn Drill, Howl, Hypnosis, Ice Ball, Imprison, Ion Deluge, Instruct, Karate Chop, Kinesis, Laser Focus, Leafage, Leer, Lick, Lock On, Lucky Chant, Magic Room, Magnetic Flux, Magnitude, Mat Block, Mean Look, Meditate, Mega Drain, Mega Kick, Mega Punch, Memento, Metal Burst, Metal Sound, Metronome, Mimic, Mind Reader, Minimize, Miracle Eye, Mirror Coat, Mist, Misty Terrain, Morning Sun, Mud Slap, Mud Spot, Nightmare, Noble Roar, Octazooka, Odor Sleuth, Pain Split, Parting Shot, Pay Day, Peck, Perish Song, Petal Blizzard, Play Nice, Poison Gas, Poison Powder, Poison Sting, Pound, Powder, Powder Snow, Power Split, Power Swap, Power Trick, Present, Psybeam, Psychic Terrain, Psych Up, Psywave, Purify, Quash, Rage, Rain Dance, Razor Wing, Reflect Type, Role Play, Rolling Kick, Rollout, Rototiller, Safeguard, Sand Attack, Sandstorm, Scary Face, Scratch, Screech, Sharpen, Shore Up, Simple Beam, Sketch, Skill Swap, Slam, Sleep Powder, Smelling Salts, Smog, Smokescreen, Snatch, Snore, Soak, Speed Swap, Spider Web, Spike Cannon, Spite, Spit Up, Splash, Spotlight, Stomp, Strength, Strength Sap, String Shot, Stun Spore, Supersonic, Swallow, Sweet Kiss, Sweet Scent, Tail Whip, Tearful Look, Teeter Dance, Telekinesis, Teleport, Thunder Shock, Tickle, Topsy-Turvy, Torment, Toxic Thread, Transform, Trick-or-Treat, Triple Kick, Trump Card, Twister, Venom Drench, Vine Grip, Vine Whip, Water Sport, Withdraw, Wonder Room, Work Up, Worry Seed.

Absorb Bulb, Cell Battery, Damp Rock, Full Incense, Heat Rock, Icy Rock, Lax Incense, Odd Incense, Rock Incense, Rose Incense, Sea Incense, Wave Incense.

Anger Point, Anticipation, Aroma Veil, Big Pecks, Cheek Pouch, Color Change, Competitive, Compound Eyes, Cursed Body, Cute Charm, Damp, Early Bird, Effect Spore, Flame Body, Flower Veil, Frisk, Friend Guard, Gluttony, Gooey, Healer, Heavy Metal, Heatproof, Harvest, Hustle, Hydration, Honey Gather, Illuminate, Illusion, Inmunity, Imposter, Inner Focus, Insomnia, Iron Barbs, Keen Eye, Leaf Guard, Light Metal, Limber, Magic Bounce, Magician, Magma Armor, Magnet Pull, Moody, Moxie, Multiscale, Multitype, Mummy, Natural Cure, No Guard, Normalize, Oblivious, Own Tempo, Persistent, Pickpocket, Pickup, Poison Point, Prankster, Pressure, Serene Grace, Shadow Tag, Shed Skin, Speed Boost, Stall, Stance Change, Static, Steadfast, Stench, Suction Cups, Super Luck, Sweet Veil, Symbiosis, Synchronize, Tangled Feet, Telepathy, Trace, Truant, Unburden, Victory Star, Vital Spirit, Water Veil, Wonder Skin, Zen Mode.

Hope it helps out to make calculator better Austin
A lot of these have no effect on damage, so I think adding them would be a waste of time. Remember, programmers are people, too.
 

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

Top