Test only enabled species (#8216)

This commit is contained in:
Martin Griffin 2025-11-12 21:54:42 +00:00 committed by GitHub
commit 8d23b9dbda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -51,7 +51,10 @@ TEST("(Daycare) Pokémon can breed with Ditto if they don't belong to the Ditto
ZeroPlayerPartyMons();
for (j = 1; j < NUM_SPECIES; j++)
PARAMETRIZE { parentSpecies = j; }
{
if (IsSpeciesEnabled(j))
PARAMETRIZE { parentSpecies = j; }
}
VarSet(VAR_TEMP_C, parentSpecies);
RUN_OVERWORLD_SCRIPT(
givemon SPECIES_DITTO, 100; givemon VAR_TEMP_C, 100;

View File

@ -106,7 +106,7 @@ TEST("No species has two evolutions that use the evolution tracker")
for (i = 0; i < NUM_SPECIES; i++)
{
if (GetSpeciesEvolutions(i) != NULL) PARAMETRIZE { species = i; }
if (IsSpeciesEnabled(i) && GetSpeciesEvolutions(i) != NULL) PARAMETRIZE { species = i; }
}
evolutionTrackerEvolutions = 0;