• 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

Hi,
it seems that pokemon do not lose their STAB when using tera of a different element
examples:
calyrex-shadow; move astral barrage doesn't lose stab while being dark
incineroar; move knock off doesn't lose stab while being bug

EDIT: nvm, apparantely when using tera, you don't lose STABs of your original type lol
 

Attachments

  • picture 3.png
    picture 3.png
    176.7 KB · Views: 43
  • picture 2.png
    picture 2.png
    183.4 KB · Views: 41
  • picture 1.png
    picture 1.png
    184 KB · Views: 51
Last edited:
Hi,

If I understand correctly, terastelization should add a bonus of 50% to the damage output of your pokemon. This effectively corresponds to multiplying the output by 1.5. However, when I use tera ghost on calyrex, astral barrage goes from dealing 20.7% min to 28% min (should have been ~31%). Am I doing something wrong?

Thanks
 

Attachments

  • beforeTera.jpg
    beforeTera.jpg
    80.5 KB · Views: 37
  • afterTera.jpg
    afterTera.jpg
    79.8 KB · Views: 46
Hi,
Is there a way to include what typing for Hidden Power in the import?
I'm using the manual format:

Fletchinder
Ability: Flame Body
Level: 17
IVs: 19 HP / 27 Atk / 29 Def / 9 SpA / 27 SpD / 6 Spe
Serious Nature
- Flame Charge
- Hidden Power
- Quick Attack
- Aerial Ace

It defaults to Normal type rather than calculating from the IVs.
Thank you.
 
Importing moves with a trailing space errors to no move
"- Nasty Plot " doesnt register the same as "- Nasty Plot"
Should .rstrip to remove trailing spaces on imports
 
Would it be possible to add a toggle that makes the calculator take accuracy into account when determining KO chance? Damaging moves with imperfect accuracy have seen use throughout all Gens (e.g. Play Rough with 90% accuracy, infamously Focus Blast with 70% accuracy) and it's not exactly quick or easy to manually input that discrepancy into the final calculation.

fwiw this was brought up once before in 2021 but didn't seem to get a response.
 
It'd be nice if support for the rest of tiers with analyses than just vanilla PU-OU, LC, Doubles and Ubers could be added for the One Vs All and All Vs One modes of the calculator, this'd be quite beneficial for other formats with stored sets already pre-integrated in the calculator like NatDex, OMs, UMs, and Nintendo formats like VGC and BSS.
 
Calc shows incorrect damage for pursuit when switching out in gen 4, it should be the same as crunch

1752420570852.png


As per bulbapedia pursuit was changed to have its power doubled in the power varuable of the damage formula in gen 4 and onwards
https://bulbapedia.bulbagarden.net/wiki/Power

Issue is not present in the gen 5 and onwards calcs so assuming that the gen 4 calc is just incorrectly using the gen 3 damage formula which had a separate "DoubleDMG" variable for pursuit causing the difference

This seems to also be affecting pursuit damage when switching on technician mons, the calc incorrectly uses the technician boost (60bp) instead of the doubled pursuit damage(80bp)

1752421353967.png


https://replay.pokemonshowdown.com/gen4ou-2402003052
 
Wonder room body press interaction is bugged on cartridge and the calc does not emulate that; an old bug report was filled for the intended mechanics on the showdown bug report but when it was shown that the issue was the calcs nobody reported the calculator issue.
 
Calc shows incorrect damage for pursuit when switching out in gen 4, it should be the same as crunch

View attachment 755171

As per bulbapedia pursuit was changed to have its power doubled in the power varuable of the damage formula in gen 4 and onwards
https://bulbapedia.bulbagarden.net/wiki/Power

Issue is not present in the gen 5 and onwards calcs so assuming that the gen 4 calc is just incorrectly using the gen 3 damage formula which had a separate "DoubleDMG" variable for pursuit causing the difference

This seems to also be affecting pursuit damage when switching on technician mons, the calc incorrectly uses the technician boost (60bp) instead of the doubled pursuit damage(80bp)

View attachment 755173

https://replay.pokemonshowdown.com/gen4ou-2402003052
Fixed.

Wonder room body press interaction is bugged on cartridge and the calc does not emulate that; an old bug report was filled for the intended mechanics on the showdown bug report but when it was shown that the issue was the calcs nobody reported the calculator issue.
Fixed.
 
Noticed when calcing for draft, Stealth Rock's effectiveness does not consider Tera currently. So while the defensive calc does include the fact that Vacuum Wave is not super effective, Tera Water Bundle still takes 25% from rocks.
1752808030058.png
 
A few issues I found with "Over X turns" calcs:

Guaranteed crit moves don't crit (the Crit button does nothing)
140+ Atk Urshifu Wicked Blow vs. 252 HP / 0 Def Clodsire on a critical hit: 283-334 (60.9 - 71.9%) -- guaranteed 2HKO
140+ Atk Urshifu Wicked Blow over 2 turns vs. 252 HP / 0 Def Clodsire: 378-446 (81.4 - 96.1%) -- not a KO

Leftovers is ignored despite being in the calc description
92+ SpA Protosynthesis Walking Wake Draco Meteor over 2 turns vs. 0 HP / 0 SpD Clodsire: 364-429 (90.7 - 106.9%) -- 37.5% chance to 2HKO after Leftovers recovery
92+ SpA Protosynthesis Walking Wake Draco Meteor over 2 turns vs. 0 HP / 0 SpD Clodsire: 364-429 (90.7 - 106.9%) -- 37.5% chance to 2HKO
 
  • Like
Reactions: UT
Possible to add a tooltip of the precise EV spread in the mentioned set for the "vs all" / "all vs" section?
Screenshot (28).png

Helps to eliminate guesswork without having to open up a different tab and check every single ambiguous set from different Pokemon
 
From the Create-A-Pokemon (CAP) project, Kitsunoh's speed and attack are shown incorrectly.
kitsunoh incorrect speed.png

On the calc website, its speed is shown as 128, which it has never been. Additionally, its attack is shown as 117. Before its changes, its speed was 110 and has since been updated to 120; its attack should be 103. Both Smogon and the Showdown website list its speed and attack correctly (120; 103).
smogon correct speed.png

showdown correct speed.png
 
From the Create-A-Pokemon (CAP) project, Kitsunoh's speed and attack are shown incorrectly.View attachment 767472
On the calc website, its speed is shown as 128, which it has never been. Additionally, its attack is shown as 117. Before its changes, its speed was 110 and has since been updated to 120; its attack should be 103. Both Smogon and the Showdown website list its speed and attack correctly (120; 103).View attachment 767473
View attachment 767474
Fixed
 
idk if it's normal or not but in gen1 calculator slash dmg doesn't change after aplying atk bonuses
 

Attachments

  • immagine_2025-09-08_194934929.png
    immagine_2025-09-08_194934929.png
    47.2 KB · Views: 16
  • immagine_2025-09-08_194949016.png
    immagine_2025-09-08_194949016.png
    48.7 KB · Views: 13
Hey everyone, hopefully putting this in the right place. I was just checking out some of the open issues recently on the damage calculator github and a lot of these seem to be quite old and likely fixed or completed already. Just recently I took a look at issue 567 because I remember when that issue did pop up a few years ago and it looked to be 100% fixed now. I'd like to at least help out in determining what's no longer needed to be open, or at least request to clean up so we can narrow down to what still needs to be fixed.
 
Hey everyone, hopefully putting this in the right place. I was just checking out some of the open issues recently on the damage calculator github and a lot of these seem to be quite old and likely fixed or completed already. Just recently I took a look at issue 567 because I remember when that issue did pop up a few years ago and it looked to be 100% fixed now. I'd like to at least help out in determining what's no longer needed to be open, or at least request to clean up so we can narrow down to what still needs to be fixed.
Thanks for your interest but the Discord server (#calc-dev) is the correct place for development discussion.
 
Forwarding a discussion from the Draft server about a bug with Tera and Terrain. I was also able to replicate the situation with Dragon Claw in Misty Terrain, where it did significantly more damage in PS when compared to the calculator. Might be a PS bug instead; I'm not really sure

replay: https://replay.pokemonshowdown.com/gen9natdexdraft-2446440055-luplgccy4nbpsyy0t5ih5oksqnuwtx1pw
pastes: https://pokepast.es/a3415de738e0c4f6
https://pokepast.es/10a297fabb85ad31
View attachment 772841
View attachment 772842
This was a damage calculator error; Tera Stellar is indeed supposed to boost the Base Power of Dragon Rush in Misty Terrain. It is now fixed.
 
hey guys i have been using the run and bun calculator https://calc.runandbun.com for a while now and everything (i.e. importing my save file has been working fine as late as 14:00 central european time today. now however, whenever i try to import new mons, the button doesnt work anymore and upon reloading the page i am told that "my browser cannot connect to the server" i am also unable to find the calculator when searching for it. i am only able to access it from having saved a snapshot of the page. has anyone else experienced this?
 
Back
Top