Fixed fake opponents number always being 7 (probably caused a comm error)

This commit is contained in:
Greg Edwards
2014-09-22 02:59:44 -04:00
parent 933a45543a
commit 59ca2580c5
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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;
}