Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When writing up the AI flag document with psf and Alex, I stumbled across a few minor oversights that this PR address. This includes:
Baton Pass score associated with AI_FLAG_PREFER_BATON_PASS did not consider any stat buffs the user has
(CountPositiveStatStages(battlerAtk) - CountNegativeStatStages(battlerAtk))
The comment for AI_FLAG_DOUBLE_BATTLE is not accurate and should be replaced
AI_FLAG_HP_AWARE's handling of status moves at low HP could use a minor cleanup pass
AI_FLAG_WILL_SUICIDE doesn't consider Final Gambit and its comment says it does
AI_FLAG_CONSERVATIVE does not assume low rolls in switch calculations
People who collaborated with me in this PR
Alex and psf through discussion
Discord contact info
@Pawkkie