pokerogue
pokerogue copied to clipboard
Use getBattleStat instead of getStat in BattleStatRatioPowerAttr
Usage of getStat causes moves like Electro Ball to use incorrect Stat.SPD (SPD before it gets halved).
Should this also pass opponent in for abilities like Unaware?
I have two questions since my Pokémon skills are rusty:
- correct me if I am wrong but Unaware should still respect the speed changes in case of Gyro Ball and Electro Ball. I.e. the paralysis speed change should not be ignored.
- right now there aren't any moves in the game that fall into the BattleStatRatio category - are you aware of any moves that are somehow take the ratio of your and opponent's stats into consideration?
Decided to go with two classes, each dedicated to its respective move since both calculations are fairly specific to their use cases.
TSDocs have been added.