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++;