mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-27 12:01:10 -05:00
Fixed error 13266 on depositing a Pokémon with no held item.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user