lhearachel / plat-engine

MIT License
3 stars 2 forks source link

Analytic #61

Open lhearachel opened 1 year ago

lhearachel commented 1 year ago

Documentation

https://bulbapedia.bulbagarden.net/wiki/Analytic_(Ability)

If a Pokémon with Analytic executes its move after all other Pokémon have made their move, the power of its move is increased by 30% (approximated as a factor of 5325/4096).

If another Pokémon faints before it gets a chance to make its move, Analytic's bonus depends on whether that Pokémon would have moved before the user that turn, based on its Speed and the move it chose to use. Modifications to that Speed or to priority caused by paralysis, a held item (such as Power Weight), or an Ability (such as Stall) are not taken into account in Generation VIII, but they are in earlier generations.

Relevant Code Points

This will be implemented in the damage calculator.