Misuse of gLastUsedAbility #3568
Labels
bug
Bug
category: battle-mechanic
Pertains to battle mechanics
status: unconfirmed
This bug has not been reproduced yet
Description
https://github.com/rh-hideout/pokeemerald-expansion/blob/master/src/battle_util.c#L6102 checks gLastUsedAbility as if it was a u8, whereas it's a u16 now. gLastUsedAbility != 0xFF is actually a check for gorilla tactics. Must be a leftover, when abilities wouldn't go past the index 255
It probably causes some unintended behaviors
Version
1.6.2 (Default)
Upcoming Version
No response
Discord contact info
No response
The text was updated successfully, but these errors were encountered: