mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-12 12:15:14 -05:00
Fixed fake opponents number always being 7 (probably caused a comm error)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user