From 59ca2580c5f58411a2c82f844f34e31da4bc2199 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Mon, 22 Sep 2014 02:59:44 -0400 Subject: [PATCH] Fixed fake opponents number always being 7 (probably caused a comm error) --- 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 31e128bc..b1ff780e 100644 --- a/gts/pokemondpds.ashx.cs +++ b/gts/pokemondpds.ashx.cs @@ -491,7 +491,7 @@ namespace PkmnFoundations.GTS BattleTowerRecord4[] opponents = DataAbstract.Instance.BattleTowerGetOpponents4(pid, rank, roomNum); BattleTowerProfile4[] leaders = DataAbstract.Instance.BattleTowerGetLeaders4(rank, roomNum); - BattleTowerRecord4[] fakeOpponents = FakeOpponentGenerator4.GenerateFakeOpponents(7); + BattleTowerRecord4[] fakeOpponents = FakeOpponentGenerator4.GenerateFakeOpponents(7 - opponents.Length); foreach (BattleTowerRecord4 record in fakeOpponents) { diff --git a/gts/syachi2ds.ashx.cs b/gts/syachi2ds.ashx.cs index c136fe49..756c323f 100644 --- a/gts/syachi2ds.ashx.cs +++ b/gts/syachi2ds.ashx.cs @@ -490,7 +490,7 @@ namespace PkmnFoundations.GTS if (opponents.Length != 7) { // todo: Implement fake trainers on Gen5 too. - ShowError(context, 400); + ShowError(context, 500); return; }