Fixed error 13266 on depositing a Pokémon with no held item.

This commit is contained in:
Greg Edwards 2021-04-16 17:54:54 -04:00
parent 14e36d3308
commit 4418fbb8be
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ namespace PkmnFoundations.Structures
if (thePokemon.Form.Suffix == "primal") return false;
if (thePokemon.SpeciesID == 25 && thePokemon.FormID > 0) return false; // cosplay pikachu
if (thePokemon.HeldItemID <= 0) return false;
if (thePokemon.HeldItemID < 0) return false;
if (thePokemon.HeldItemID >= 112 && thePokemon.HeldItemID <= 134) return false;
if (thePokemon.HeldItemID >= 428) return false;

View File

@ -228,7 +228,7 @@ namespace PkmnFoundations.Structures
if (thePokemon.Form.Suffix == "primal") return false;
if (thePokemon.SpeciesID == 25 && thePokemon.FormID > 0) return false; // cosplay pikachu
if (thePokemon.HeldItemID <= 0) return false;
if (thePokemon.HeldItemID < 0) return false;
if (thePokemon.HeldItemID >= 113 && thePokemon.HeldItemID <= 115) return false;
if (thePokemon.HeldItemID >= 120 && thePokemon.HeldItemID <= 133) return false;
if (thePokemon.HeldItemID >= 328 && thePokemon.HeldItemID <= 503) return false;