Commit e5d477c3 authored by nanahira's avatar nanahira

js

parent ac0fd3bd
...@@ -397,7 +397,15 @@ ...@@ -397,7 +397,15 @@
settings.modules.random_duel.blank_pass_modes = { settings.modules.random_duel.blank_pass_modes = {
"S": true, "S": true,
"M": true, "M": true,
"T": false "T": false,
"OOR": true,
"TOR": true,
"OR": true,
"TR": true,
"OOMR": true,
"TOMR": true,
"OMR": true,
"TMR": true
}; };
delete settings.modules.random_duel.blank_pass_match; delete settings.modules.random_duel.blank_pass_match;
imported = true; imported = true;
...@@ -406,8 +414,16 @@ ...@@ -406,8 +414,16 @@
if (settings.modules.random_duel.blank_pass_match === false) { if (settings.modules.random_duel.blank_pass_match === false) {
settings.modules.random_duel.blank_pass_modes = { settings.modules.random_duel.blank_pass_modes = {
"S": true, "S": true,
"M": false, "M": true,
"T": false "T": false,
"OOR": true,
"TOR": true,
"OR": true,
"TR": true,
"OOMR": false,
"TOMR": false,
"OMR": false,
"TMR": false
}; };
delete settings.modules.random_duel.blank_pass_match; delete settings.modules.random_duel.blank_pass_match;
imported = true; imported = true;
...@@ -995,11 +1011,7 @@ ...@@ -995,11 +1011,7 @@
max_player = type === 'T' ? 4 : 2; max_player = type === 'T' ? 4 : 2;
playerbanned = bannedplayer && bannedplayer.count > 3 && moment() < bannedplayer.time; playerbanned = bannedplayer && bannedplayer.count > 3 && moment() < bannedplayer.time;
result = _.find(ROOM_all, function(room) { result = _.find(ROOM_all, function(room) {
<<<<<<< HEAD
return room && room.random_type !== '' && room.duel_stage === ygopro.constants.DUEL_STAGE.BEGIN && !room.windbot && ((type === '' && room.random_type !== 'T' && ((!_.endsWith(room.random_type, "MR") && room.random_type !== 'M') || (settings.modules.random_duel.blank_pass_match && room.random_type !== 'T'))) || room.random_type === type) && room.get_playing_player().length < max_player && (settings.modules.random_duel.no_rematch_check || room.get_host() === null || room.get_host().ip !== ROOM_players_oppentlist[player_ip]) && (playerbanned === room.deprecated || type === 'T');
=======
return room && room.random_type !== '' && room.duel_stage === ygopro.constants.DUEL_STAGE.BEGIN && !room.windbot && ((type === '' && (room.random_type === settings.modules.random_duel.default_type || settings.modules.random_duel.blank_pass_modes[room.random_type])) || room.random_type === type) && room.get_playing_player().length < max_player && (settings.modules.random_duel.no_rematch_check || room.get_host() === null || room.get_host().ip !== ROOM_players_oppentlist[player_ip]) && (playerbanned === room.deprecated || type === 'T'); return room && room.random_type !== '' && room.duel_stage === ygopro.constants.DUEL_STAGE.BEGIN && !room.windbot && ((type === '' && (room.random_type === settings.modules.random_duel.default_type || settings.modules.random_duel.blank_pass_modes[room.random_type])) || room.random_type === type) && room.get_playing_player().length < max_player && (settings.modules.random_duel.no_rematch_check || room.get_host() === null || room.get_host().ip !== ROOM_players_oppentlist[player_ip]) && (playerbanned === room.deprecated || type === 'T');
>>>>>>> master
}); });
if (result) { if (result) {
result.welcome = '${random_duel_enter_room_waiting}'; result.welcome = '${random_duel_enter_room_waiting}';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment