theastrogoth / tera-raid-builder

A tool for simulating Tera Raid battles in Pokémon Scarlet & Violet
https://theastrogoth.github.io/tera-raid-builder/
4 stars 3 forks source link

Fixes to Ability Nullification #219

Closed theastrogoth closed 3 months ago

theastrogoth commented 4 months ago

The overall goal was to fix behavior when ability nullification ends. A Pokemon's ability should not change back to its original ability as was done with the previous implementation, but instead the ability should not be totally removed by nullification, just disabled.

Most of the changes are just switching to use the hasAbility() method for Pokemon, which was modified to take ability nullification into account.