lhearachel / plat-engine

MIT License
3 stars 2 forks source link

Regenerator #57

Open lhearachel opened 1 year ago

lhearachel commented 1 year ago

Documentation

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

Regenerator restores 33% of the Pokémon's maximum HP upon switching out. This includes through the use of moves that switch the user out, such as Baton Pass and Volt Switch, and moves used by opposing Pokémon that force it to switch, such as Whirlwind and Dragon Tail.

Relevant Code Points

subscr_009.s (switching), subscr_091.s (force out), subscr_114.s (baton pass), and subscr_175.s (pivot attacks) all deal with switching. All of these need to be updated to perform the HP restoration after the switch, but before showing the party list.