From d2e14c0893a8f038751d8017f2b4678e276cf5d3 Mon Sep 17 00:00:00 2001 From: Scyrous <74797764+Scyrous@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:23:46 +0200 Subject: [PATCH] typo --- Improve-Partner-Battle-Code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Improve-Partner-Battle-Code.md b/Improve-Partner-Battle-Code.md index 2195ed3..bb91d05 100644 --- a/Improve-Partner-Battle-Code.md +++ b/Improve-Partner-Battle-Code.md @@ -76,7 +76,7 @@ This is arguably the most important change: ensuring that the partner's Pokémon In `src\battle_script_commands.c`, edit `Cmd_getexp` (case 1): ```diff +if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES) == SPECIES_NONE || GetMonData(&gPlayerParty[i], MON_DATA_HP) == 0 || GetMonData(&gPlayerParty[i], MON_DATA_LEVEL) == MAX_LEVEL || ((gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER) && i >= 3)) --if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES) == SPECIES_NONE || GetMonData(&gPlayerParty[i], MON_DATA_HP) +-if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES) == SPECIES_NONE || GetMonData(&gPlayerParty[i], MON_DATA_HP) == 0) continue; if (gBitTable[i] & sentIn) viaSentIn++;