mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Merge pull request #1963 from ghoulslash/be/aifix
Fix AI protect struct reset
This commit is contained in:
commit
8058da5b88
@ -212,7 +212,7 @@ u8 BattleAI_ChooseMoveOrAction(void)
|
|||||||
|
|
||||||
// Clear protect structures, some flags may be set during AI calcs
|
// Clear protect structures, some flags may be set during AI calcs
|
||||||
// e.g. pranksterElevated from GetMovePriority
|
// e.g. pranksterElevated from GetMovePriority
|
||||||
memset(&gProtectStructs[gActiveBattler], 0, sizeof(struct ProtectStruct));
|
memset(&gProtectStructs, 0, MAX_BATTLERS_COUNT * sizeof(struct ProtectStruct));
|
||||||
|
|
||||||
gCurrentMove = savedCurrentMove;
|
gCurrentMove = savedCurrentMove;
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user