Commit ef0668ae authored by nanahira's avatar nanahira

fix -9 in change side

parent 45ff6fa0
...@@ -513,7 +513,7 @@ ROOM_unwelcome = (room, bad_player, reason)-> ...@@ -513,7 +513,7 @@ ROOM_unwelcome = (room, bad_player, reason)->
CLIENT_kick = (client) -> CLIENT_kick = (client) ->
client.system_kicked = true client.system_kicked = true
if settings.modules.reconnect.enabled and client.closed if settings.modules.reconnect.enabled and client.closed
CLIENT_reconnect_unregister(client, false, true) client.server.destroy()
else else
client.destroy() client.destroy()
return return
...@@ -2858,7 +2858,7 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)-> ...@@ -2858,7 +2858,7 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
if client.side_tcount == 1 if client.side_tcount == 1
ygopro.stoc_send_chat_to_room(room, client.name + "${side_overtime_room}", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat_to_room(room, client.name + "${side_overtime_room}", ygopro.constants.COLORS.BABYBLUE)
ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED)
room.scores[client.name] = -9 #room.scores[client.name] = -9
CLIENT_kick(client) CLIENT_kick(client)
clearInterval sinterval clearInterval sinterval
else else
......
...@@ -637,7 +637,7 @@ ...@@ -637,7 +637,7 @@
CLIENT_kick = function(client) { CLIENT_kick = function(client) {
client.system_kicked = true; client.system_kicked = true;
if (settings.modules.reconnect.enabled && client.closed) { if (settings.modules.reconnect.enabled && client.closed) {
CLIENT_reconnect_unregister(client, false, true); client.server.destroy();
} else { } else {
client.destroy(); client.destroy();
} }
...@@ -3587,7 +3587,6 @@ ...@@ -3587,7 +3587,6 @@
if (client.side_tcount === 1) { if (client.side_tcount === 1) {
ygopro.stoc_send_chat_to_room(room, client.name + "${side_overtime_room}", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat_to_room(room, client.name + "${side_overtime_room}", ygopro.constants.COLORS.BABYBLUE);
ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED);
room.scores[client.name] = -9;
CLIENT_kick(client); CLIENT_kick(client);
return clearInterval(sinterval); return clearInterval(sinterval);
} else { } else {
......
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