prevent overwriting wild mon held items
This commit is contained in:
parent
9685afd981
commit
b5d98ec93e
1 changed files with 3 additions and 0 deletions
|
@ -6459,6 +6459,9 @@ void SetWildMonHeldItem(void)
|
|||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
if (GetMonData(&gEnemyParty[i], MON_DATA_HELD_ITEM) != ITEM_NONE)
|
||||
continue; // prevent ovewriting previously set item
|
||||
|
||||
rnd = Random() % 100;
|
||||
species = GetMonData(&gEnemyParty[i], MON_DATA_SPECIES, 0);
|
||||
if (gMapHeader.mapLayoutId == LAYOUT_ALTERING_CAVE)
|
||||
|
|
Loading…
Reference in a new issue