mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Fix for wrong mon position for scripted wild doubles (#2996)
This commit is contained in:
parent
15adbc8368
commit
f6f0e5fa33
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user