From cb55e4d9c1eea511a6a0c7635041027764694728 Mon Sep 17 00:00:00 2001 From: voloved <36523934+voloved@users.noreply.github.com> Date: Thu, 27 Jul 2023 23:49:15 -0400 Subject: [PATCH] personality in Cmd_trysetcaughtmondexflags --- Add-Thief-Ball.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Add-Thief-Ball.md b/Add-Thief-Ball.md index 6684d57..d8e0d89 100644 --- a/Add-Thief-Ball.md +++ b/Add-Thief-Ball.md @@ -768,8 +768,9 @@ index b22577455..b8605454e 100644 static void Cmd_trysetcaughtmondexflags(void) { - u16 species = GetMonData(&gEnemyParty[0], MON_DATA_SPECIES, NULL); +- u32 personality = GetMonData(&gEnemyParty[0], MON_DATA_PERSONALITY, NULL); + u16 species = GetMonData(&gEnemyParty[gBattlerPartyIndexes[BATTLE_OPPOSITE(gBattlerAttacker)]], MON_DATA_SPECIES, NULL); - u32 personality = GetMonData(&gEnemyParty[0], MON_DATA_PERSONALITY, NULL); ++ u32 personality = GetMonData(&gEnemyParty[gBattlerPartyIndexes[BATTLE_OPPOSITE(gBattlerAttacker)]], MON_DATA_PERSONALITY, NULL); if (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), FLAG_GET_CAUGHT)) {