Skip to content

Commit

Permalink
Fixed bug preventing left over clients from being assigned correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Sep 17, 2024
1 parent 7f2c4d4 commit c224c54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions GuildWarsPartySearch.NodeJSServer/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ function reassign_bot_clients(request) {
check_district_regions.forEach((district_region) => {
for(let map_id = 0; map_id < map_ids.Count;map_id++) {
if(!isValidOutpost(map_id))
return;
continue;
if (is_assigned(map_id, district_region))
return;
continue;
if(!is_map_unlocked(bot_client.unlocked_maps || [], map_id))
return;
continue;
assign_bot(bot_client, map_id, district_region);
}
});
Expand Down
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.NodeJSServer/src/data/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
"mapId": 142
},
{
"name": "Verntari's Refuge",
"name": "Ventari's Refuge",
"type": "outpost",
"coordinates": [ 942, 5200 ],
"mapId": 139
Expand Down

0 comments on commit c224c54

Please sign in to comment.