lhearachel / plat-engine

MIT License
3 stars 2 forks source link

Healer #49

Open lhearachel opened 1 year ago

lhearachel commented 1 year ago

Documentation

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

At the end of each turn, Healer has a 30% chance of curing an adjacent ally's status condition. If the Pokémon has multiple adjacent allies with status conditions, it has an independent 30% chance of curing each one, and can cure more than one in the same turn. If it cures a status condition, it does so before burn or poison damage is dealt on that turn.

Relevant Code Points

Function 0x022562E8 handles all end-of-turn effects related to abilities. A case should be added here to check for an ally with a status condition.