From 5f7819f6972dd46b89afb56d1489c2586c8a617c Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Wed, 9 Aug 2023 16:03:02 +0200 Subject: [PATCH] no exp for ai mons --- src/battle_script_commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index aa52768059..bf37aad90e 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -4068,7 +4068,9 @@ static void Cmd_getexp(void) switch (gBattleScripting.getexpState) { case 0: // check if should receive exp at all - if (GetBattlerSide(gBattlerFainted) != B_SIDE_OPPONENT || (gBattleTypeFlags & + if (GetBattlerSide(gBattlerFainted) != B_SIDE_OPPONENT + || IsAiVsAiBattle() + || (gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_RECORDED_LINK | BATTLE_TYPE_TRAINER_HILL