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

Use AI_DATA->abilities in more places #4729

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

Sneed69
Copy link

@Sneed69 Sneed69 commented Jun 6, 2024

Discord contact info

duke5614

@@ -413,7 +413,7 @@ bool32 IsDamageMoveUnusable(u32 move, u32 battlerAtk, u32 battlerDef)
// Battler doesn't see partners Ability for some reason.
// This is a small hack to avoid the issue but should be investigated
if (battlerDef == BATTLE_PARTNER(battlerAtk))
battlerDefAbility = GetBattlerAbility(battlerDef);
battlerDefAbility = AI_DATA->abilities[battlerDef];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a comment because of this. For some reason the AI doesn't see the ability.

My suspicion is that something with the Omniscient flag is wrong but I can't figure out what. I've come across the problem several times now. It works fine ingame though.

@AlexOn1ine AlexOn1ine merged commit d0a8e9f into rh-hideout:upcoming Jun 6, 2024
1 check passed
@Sneed69 Sneed69 deleted the AI_DATA-abilities branch June 6, 2024 16:19
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