doshidak / showdex

Pokémon Showdown extension that harnesses the power of parabolic calculus to strategically extract your opponents' Elo.
GNU Affero General Public License v3.0
104 stars 18 forks source link

fix abilities not updating after mega-evolving a Pokémon #115

Closed doshidak closed 1 year ago

doshidak commented 1 year ago

Reported by: Lazosful

Watching this streamer use Showdex on Gen 9 National Dex, we noticed that the calc for Pin Missile was incorrect since his Heracross-Mega still had the Swarm ability instead of Skill Link, which makes multi-hit moves hit the max amount of times.

While Heracross (non-mega'd) can have either Swarm, Guts or Moxie, Heracross-Mega only gets Skill Link.

Because of this, Lazosful ended up hitting the Close Combat against his opponent's Umbreon (96.4 - 114.2%) since the Calcdex told him that Pin Missile (60.9 - 73%) probably wasn't going to OHKO. With Skill Link, his Pin Missile would've done 101.5 - 121.8%.

Sorry about that Lazosful!