Commit ba02fb40 authored by nanahira's avatar nanahira

add no-timeout-punish back

parent 17ff4e30
...@@ -1515,7 +1515,7 @@ class Room ...@@ -1515,7 +1515,7 @@ class Room
else else
for player in @players when player.pos != 7 for player in @players when player.pos != 7
@scores[player.name_vpass] = -5 @scores[player.name_vpass] = -5
if @players.length == 2 if @players.length == 2 and !client.arena_quit_free
@scores[client.name_vpass] = -9 @scores[client.name_vpass] = -9
@arena_score_handled = true @arena_score_handled = true
index = _.indexOf(@players, client) index = _.indexOf(@players, client)
...@@ -3599,7 +3599,7 @@ if settings.modules.mycard.enabled ...@@ -3599,7 +3599,7 @@ if settings.modules.mycard.enabled
return return
) )
if settings.modules.arena_mode.punish_quit_before_match if true # settings.modules.arena_mode.punish_quit_before_match
_async.each(ROOM_all, (room, done) -> _async.each(ROOM_all, (room, done) ->
if not (room and room.arena and room.duel_stage == ygopro.constants.DUEL_STAGE.BEGIN and room.get_playing_player().length < 2) if not (room and room.arena and room.duel_stage == ygopro.constants.DUEL_STAGE.BEGIN and room.get_playing_player().length < 2)
done() done()
......
...@@ -2039,7 +2039,7 @@ ...@@ -2039,7 +2039,7 @@
this.scores[player.name_vpass] = -5; this.scores[player.name_vpass] = -5;
} }
} }
if (this.players.length === 2) { if (this.players.length === 2 && !client.arena_quit_free) {
this.scores[client.name_vpass] = -9; this.scores[client.name_vpass] = -9;
} }
} }
...@@ -4808,7 +4808,7 @@ ...@@ -4808,7 +4808,7 @@
} }
done(); done();
}); });
if (settings.modules.arena_mode.punish_quit_before_match) { if (true) { // settings.modules.arena_mode.punish_quit_before_match
_async.each(ROOM_all, function(room, done) { _async.each(ROOM_all, function(room, done) {
var player, waited_time; var player, waited_time;
if (!(room && room.arena && room.duel_stage === ygopro.constants.DUEL_STAGE.BEGIN && room.get_playing_player().length < 2)) { if (!(room && room.arena && room.duel_stage === ygopro.constants.DUEL_STAGE.BEGIN && room.get_playing_player().length < 2)) {
......
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