Use Only One Loop in RandomlyGivePartyPokerus (#1991)
This commit is contained in:
@@ -6038,14 +6038,10 @@ void RandomlyGivePartyPokerus(struct Pokemon *party)
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
do
|
rnd = Random() % PARTY_SIZE;
|
||||||
{
|
mon = &party[rnd];
|
||||||
rnd = Random() % PARTY_SIZE;
|
|
||||||
mon = &party[rnd];
|
|
||||||
}
|
|
||||||
while (!GetMonData(mon, MON_DATA_SPECIES, 0));
|
|
||||||
}
|
}
|
||||||
while (GetMonData(mon, MON_DATA_IS_EGG, 0));
|
while (!GetMonData(mon, MON_DATA_SPECIES, 0) || GetMonData(mon, MON_DATA_IS_EGG, 0));
|
||||||
|
|
||||||
if (!(CheckPartyHasHadPokerus(party, gBitTable[rnd])))
|
if (!(CheckPartyHasHadPokerus(party, gBitTable[rnd])))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user