diff --git a/gts/pokemondpds.ashx.cs b/gts/pokemondpds.ashx.cs index 88833bb4..4798d681 100644 --- a/gts/pokemondpds.ashx.cs +++ b/gts/pokemondpds.ashx.cs @@ -201,6 +201,7 @@ namespace PkmnFoundations.GTS bool success = DataAbstract.Instance.GtsDeletePokemon4(pid); if (success) { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); } else @@ -238,6 +239,7 @@ namespace PkmnFoundations.GTS bool success = DataAbstract.Instance.GtsDeletePokemon4(pid); if (success) { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); } else @@ -311,7 +313,10 @@ namespace PkmnFoundations.GTS GtsRecord4 record = (GtsRecord4)prevSession.Tag; if (DataAbstract.Instance.GtsDepositPokemon4(record)) + { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + } else response.Write(new byte[] { 0x00, 0x00 }, 0, 2); @@ -431,7 +436,10 @@ namespace PkmnFoundations.GTS GtsRecord4 result = (GtsRecord4)tag[1]; if (DataAbstract.Instance.GtsTradePokemon4(upload, result)) + { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + } else response.Write(new byte[] { 0x00, 0x00 }, 0, 2); diff --git a/gts/syachi2ds.ashx.cs b/gts/syachi2ds.ashx.cs index 36a05aca..07ca82ed 100644 --- a/gts/syachi2ds.ashx.cs +++ b/gts/syachi2ds.ashx.cs @@ -204,6 +204,7 @@ namespace PkmnFoundations.GTS if (success) { response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + manager.RefreshStats(); } else { @@ -240,6 +241,7 @@ namespace PkmnFoundations.GTS if (success) { response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + manager.RefreshStats(); } else { @@ -316,7 +318,10 @@ namespace PkmnFoundations.GTS GtsRecord5 record = (GtsRecord5)prevSession.Tag; if (DataAbstract.Instance.GtsDepositPokemon5(record)) + { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + } else response.Write(new byte[] { 0x00, 0x00 }, 0, 2); @@ -433,7 +438,10 @@ namespace PkmnFoundations.GTS GtsRecord5 result = (GtsRecord5)tag[1]; if (DataAbstract.Instance.GtsTradePokemon5(upload, result)) + { + manager.RefreshStats(); response.Write(new byte[] { 0x01, 0x00 }, 0, 2); + } else response.Write(new byte[] { 0x00, 0x00 }, 0, 2);