Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds GetMovesArray in CanTargetFaintAi #2936

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

AlexOn1ine
Copy link
Collaborator

Description

Replaces gBattleResources->battleHistory->usedMoves[battlerDef] with GetMovesArray(battlerDef).
Technically a small bug because the AI couldn't see the players moves on turn one if CanTargetFaintAi was called with AI_FLAG_OMNISCIENT but I also feel like it is a leftover because everything else uses GetMovesArray involving moves.

Discord contact info

AlexOnline#2331

@AlexOn1ine AlexOn1ine changed the title Add GetMovesArray in GetMovesArray Adds GetMovesArray in GetMovesArray Apr 21, 2023
@AlexOn1ine AlexOn1ine changed the title Adds GetMovesArray in GetMovesArray Adds GetMovesArray in CanTargetFaintAi Apr 21, 2023
@ghoulslash ghoulslash merged commit 25327b9 into rh-hideout:upcoming Apr 23, 2023
@AlexOn1ine AlexOn1ine deleted the moves_array branch April 28, 2023 16:58
@AsparagusEduardo AsparagusEduardo mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants