From 050d6def1ea8ed4529c67ddb32ab310ff0e5ebed Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Sat, 30 Jul 2022 04:42:00 -0400 Subject: [PATCH] Check lock status on retracting own pokemon. --- gts/pokemondpds.ashx.cs | 2 +- gts/syachi2ds.ashx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gts/pokemondpds.ashx.cs b/gts/pokemondpds.ashx.cs index d389483f..f4dd0d85 100644 --- a/gts/pokemondpds.ashx.cs +++ b/gts/pokemondpds.ashx.cs @@ -237,7 +237,7 @@ namespace PkmnFoundations.GTS SessionManager.Remove(session); GtsRecord4 record = Database.Instance.GtsDataForUser4(pokedex, pid); - if (record == null) + if (record == null || Database.Instance.GtsCheckLockStatus4(record.TradeId, pid)) { response.Write(new byte[] { 0x00, 0x00 }, 0, 2); } diff --git a/gts/syachi2ds.ashx.cs b/gts/syachi2ds.ashx.cs index f7dfe2ab..739c44b8 100644 --- a/gts/syachi2ds.ashx.cs +++ b/gts/syachi2ds.ashx.cs @@ -180,7 +180,7 @@ namespace PkmnFoundations.GTS SessionManager.Remove(session); GtsRecord5 record = Database.Instance.GtsDataForUser5(pokedex, pid); - if (record == null) + if (record == null || Database.Instance.GtsCheckLockStatus5(record.TradeId, pid)) { response.Write(new byte[] { 0x00, 0x00 }, 0, 2); }