summaryrefslogtreecommitdiff
path: root/src/field_poison.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/field_poison.c
parented16a7409ae9c808a110975dec1930f9f949a6d6 (diff)
Document and refactor AdjustFriendship
Diffstat (limited to 'src/field_poison.c')
-rw-r--r--src/field_poison.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/field_poison.c b/src/field_poison.c
index d4ed5e45f..1e2a30c0c 100644
--- a/src/field_poison.c
+++ b/src/field_poison.c
@@ -33,7 +33,7 @@ static void FaintFromFieldPoison(u8 partyIdx)
{
struct Pokemon *pokemon = gPlayerParty + partyIdx;
u32 status = STATUS1_NONE;
- AdjustFriendship(pokemon, 8);
+ AdjustFriendship(pokemon, FRIENDSHIP_EVENT_FAINT_OUTSIDE_BATTLE);
SetMonData(pokemon, MON_DATA_STATUS, &status);
GetMonData(pokemon, MON_DATA_NICKNAME, gStringVar1);
StringGetEnd10(gStringVar1);