summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-18 17:50:55 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-18 17:50:55 -0400
commit014596dea5e5c0c3e76aa0731d914573597144ef (patch)
tree9426358737279dbf8976407078040463d8156d2e /src/battle_script_commands.c
parented16a7409ae9c808a110975dec1930f9f949a6d6 (diff)
Document and refactor AdjustFriendship
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index 35328d6c1..30b8bda88 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -3241,7 +3241,7 @@ static void atk23_getexp(void)
gLeveledUpInBattle |= gBitTable[gBattleStruct->expGetterMonId];
gBattlescriptCurrInstr = BattleScript_LevelUp;
gBattleMoveDamage = (gBattleBufferB[gActiveBattler][2] | (gBattleBufferB[gActiveBattler][3] << 8));
- AdjustFriendship(&gPlayerParty[gBattleStruct->expGetterMonId], 0);
+ AdjustFriendship(&gPlayerParty[gBattleStruct->expGetterMonId], FRIENDSHIP_EVENT_GROW_LEVEL);
// update battle mon structure after level up
if (gBattlerPartyIndexes[0] == gBattleStruct->expGetterMonId && gBattleMons[0].hp)
{