Improve invalid index SEND_OUT error
This commit is contained in:
parent
39f5596d09
commit
daebe7eba8
1 changed files with 1 additions and 1 deletions
|
@ -2435,7 +2435,7 @@ void SendOut(u32 sourceLine, struct BattlePokemon *battler, u32 partyIndex)
|
|||
s32 i;
|
||||
s32 battlerId = battler - gBattleMons;
|
||||
INVALID_IF(DATA.turnState == TURN_CLOSED, "SEND_OUT outside TURN");
|
||||
INVALID_IF(partyIndex >= ((battlerId & BIT_SIDE) == B_SIDE_PLAYER ? DATA.playerPartySize : DATA.opponentPartySize), "SWITCH to invalid party index");
|
||||
INVALID_IF(partyIndex >= ((battlerId & BIT_SIDE) == B_SIDE_PLAYER ? DATA.playerPartySize : DATA.opponentPartySize), "SEND_OUT of invalid party index");
|
||||
INVALID_IF(IsAITest() && (battlerId & BIT_SIDE) == B_SIDE_OPPONENT, "SEND_OUT is not allowed for opponent in AI tests. Use EXPECT_SEND_OUT instead");
|
||||
for (i = 0; i < STATE->battlersCount; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue