mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-01 15:42:56 -05:00
Fixed error 13266 on depositing a Pokémon with no held item.
This commit is contained in:
parent
14e36d3308
commit
4418fbb8be
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user