Skip to content

Commit

Permalink
Fix for wrong mon position for scripted wild doubles (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine committed May 14, 2023
1 parent 15adbc8 commit f6f0e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script_pokemon_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ void CreateScriptedDoubleWildMon(u16 species1, u8 level1, u16 item1, u16 species
SetMonData(&gEnemyParty[0], MON_DATA_HELD_ITEM, heldItem1);
}

CreateMon(&gEnemyParty[3], species2, level2, 32, 0, 0, OT_ID_PLAYER_ID, 0);
CreateMon(&gEnemyParty[1], species2, level2, 32, 0, 0, OT_ID_PLAYER_ID, 0);
if (item2)
{
heldItem2[0] = item2;
heldItem2[1] = item2 >> 8;
SetMonData(&gEnemyParty[3], MON_DATA_HELD_ITEM, heldItem2);
SetMonData(&gEnemyParty[1], MON_DATA_HELD_ITEM, heldItem2);
}
}

Expand Down

0 comments on commit f6f0e5f

Please sign in to comment.