mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-25 11:44:11 -05:00
Check lock status on retracting own pokemon.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user