lhearachel / plat-engine

MIT License
4 stars 2 forks source link

Victory Star #72

Open lhearachel opened 1 year ago

lhearachel commented 1 year ago

Documentation

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

Victory Star increases the accuracy of moves used by the Pokémon with this Ability and its allies in battle by 10% of their original accuracy. Victory Star can stack and does so multiplicatively (which means if there are two ally Pokémon with this Ability, the accuracy increase is 21%).

Relevant Code Points

Function 0x0224EF20 handles all accuracy checks. A branch should be added here for Victory Star on both the attacking Pokemon and for any ally which has Victory Star.