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.
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.