Merge pull request #2052 from ghoulslash/be/ai_whostrikesfirst

Fix AI_WhoStrikesFirst
This commit is contained in:
Eduardo Quezada D'Ottone 2022-02-11 17:56:53 -03:00 committed by GitHub
commit 1454384b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1022,9 +1022,9 @@ u8 AI_WhoStrikesFirst(u8 battlerAI, u8 battler2)
{
// Priorities are the same(at least comparing to moves the AI is aware of), decide by speed.
if (GetWhoStrikesFirst(battlerAI, battler2, TRUE) == 0)
return TRUE;
return AI_IS_FASTER;
else
return FALSE;
return AI_IS_SLOWER;
}
}