We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5d7c6 commit fabd761Copy full SHA for fabd761
1 file changed
arena.js
@@ -596,8 +596,8 @@ function rotateArray(array){
596
ArenaHelper.init = (participants, settings) => {
597
_participants = participants;
598
_settings = settings;
599
- if(_participants.countTeams()%2 !== 0){
600
- ArenaHelper.postAbort('', 'Uneven amount of teams is not supported.');
+ if(_participants.countTeams()%2 !== 0 && !(_settings.rules.winner === 'MostPoints' && _participants.countTeams() === 1)){
+ ArenaHelper.postAbort('', 'Uneven amount of teams is not supported, only MostPoints can be played with a single worm.');
601
}else if(_settings.arena.size%2 !== 1){
602
ArenaHelper.postAbort('', 'Arena size has to be uneven.');
603
}else if(_settings.rules.winner === 'MostPoints' && _settings.rules.defeatedWorms !== 'Solid'){
0 commit comments