Closed 1iminal closed 4 years ago
Do you want to PR that or should I?
Also @scheibo do you have any opinions on this?
I can do a PR if noone is against it
(Fixed in #6216)
Also @scheibo do you have any opinions on this?
Sorry, missed this bug (though apparently I had seen the PR). Thank you for finding and fixing.
Running a battle versus a RandomPlayerAI with a team of size 1 causes an error:
At /sim/tools/random-player-ai.ts#L102 RandomPlayerAI assumes teamsize is at least 2, which may be not necessarily true.
This can be fixed by checking the teamsize before running the status check on allies.