mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-08 19:16:01 -05:00
Merge pull request #2139 from ghoulslash/be/wildmon
prevent overwriting wild mon held items
This commit is contained in:
@@ -6459,6 +6459,9 @@ void SetWildMonHeldItem(void)
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
if (GetMonData(&gEnemyParty[i], MON_DATA_HELD_ITEM, NULL) != 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)
|
||||
|
||||
Reference in New Issue
Block a user