Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded AI awareness of moves that don't work against Dynamax Pokemon (
rh-hideout#4521) * Update IsDamageMoveUsable to check for Steel Roller viability * Condense terrain flag checks and renamed IsDamageMoveUsable IsDamageMoveUsable is now named IsDamageMoveUnusable to more accurately reflect the boolean it returns. * Made the AI aware of when more moves will fail against Dynamax Pokemon Turns out Dynamax Pokemon are immune to quite a few moves. The AI is only aware of one of these at present--the Low Kick/Grass Knot effect, which I learned when the AI tried to Heavy Slam my Dynamaxed Pokemon. These additional cases should prevent the AI from selecting moves that have no effect against Dynamax Pokemon, though it may still select moves whose secondary effect won't work on Dynamaxed Pokemon (such as Fake Out or Circle Throw). * Update battle_ai_util.c Now handles damaging moves that Dynamax Pokemon are immune to
- Loading branch information