From 4418fbb8be7a84e181a58dfaa8ef128c8a91ec60 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Fri, 16 Apr 2021 17:54:54 -0400 Subject: [PATCH] =?UTF-8?q?Fixed=20error=2013266=20on=20depositing=20a=20P?= =?UTF-8?q?ok=C3=A9mon=20with=20no=20held=20item.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Structures/GtsRecord4.cs | 2 +- library/Structures/GtsRecord5.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Structures/GtsRecord4.cs b/library/Structures/GtsRecord4.cs index 002acbf7..b1f80bdd 100644 --- a/library/Structures/GtsRecord4.cs +++ b/library/Structures/GtsRecord4.cs @@ -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; diff --git a/library/Structures/GtsRecord5.cs b/library/Structures/GtsRecord5.cs index cd9dbfa5..4013c7ae 100644 --- a/library/Structures/GtsRecord5.cs +++ b/library/Structures/GtsRecord5.cs @@ -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;