smogon / damage-calc

Pokemon games damage calculator
https://calc.pokemonshowdown.com
MIT License
369 stars 345 forks source link

Implement IV display in calcs when applicable #604

Closed Zrp200 closed 3 months ago

Zrp200 commented 3 months ago

Given the set

Abomasnow @ Icy Rock
Level: 100
Modest Nature
Tera Type: Ground
Ability: Snow Warning
EVs: 168 HP / 252 SpA / 88 Spe
IVs: 30 HP / 29 Atk / 28 Def / 27 SpA / 26 SpD / 25 Spe
- Blizzard
- Earth Power
- Leaf Storm
- Aurora Veil

using Blizzard against itself, the calc returns 252+ SpA Abomasnow Blizzard vs. 168 HP / 0 SpD Abomasnow: 180-213 (49.7 - 58.8%) -- 99.6% chance to 2HKO New behavior: 252+ SpA 27 IVs Abomasnow Blizzard vs. 168 HP / 0 SpD Abomasnow: 180-213 (49.7 - 58.8%) -- 99.6% chance to 2HKO

Let me know if the test structure is acceptable, I'm aware I have a divergent view on how testing is written ;)

thejetou commented 3 months ago

Thanks!