From 6c4d53a1ab60e322d6b3402837acd00c289c3964 Mon Sep 17 00:00:00 2001 From: grintoul <166724814+grintoul1@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:08:19 +0100 Subject: [PATCH] Clean-up --- test/test_runner_battle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index bbce7f47c0..f1e15b2101 100644 --- a/test/test_runner_battle.c +++ b/test/test_runner_battle.c @@ -247,7 +247,6 @@ static bool32 IsAITest(void) static bool32 IsAIDoublesTest(void) { - return (IsAITest() && (GetBattleTest()->type != BATTLE_TEST_AI_SINGLES)); } @@ -3125,8 +3124,7 @@ void UseItem(u32 sourceLine, struct BattlePokemon *battler, struct ItemContext c bool32 requirePartyIndex = ctxItemType == ITEM_USE_PARTY_MENU || ctxItemType == ITEM_USE_PARTY_MENU_MOVES || (ctxItemType == ITEM_USE_BATTLER - && GetBattleTest()->type != BATTLE_TEST_AI_DOUBLES - && GetBattleTest()->type != BATTLE_TEST_AI_ONE_VS_TWO + && !IsAIDoublesTest() && STATE->battlersCount > 2); // Check general bad use. INVALID_IF(DATA.turnState == TURN_CLOSED, "USE_ITEM outside TURN");