Commit a5c0151c authored by nanahira's avatar nanahira

fix

parent ad630fd0
...@@ -209,7 +209,8 @@ ...@@ -209,7 +209,8 @@
"death_finish_part2": " 获得本次决斗的胜利。", "death_finish_part2": " 获得本次决斗的胜利。",
"side_timeout_part1": "你现在有", "side_timeout_part1": "你现在有",
"side_timeout_part2": "分钟来更换副卡组。", "side_timeout_part2": "分钟来更换副卡组。",
"side_overtime": "更换副卡组超时,本次比赛判负。", "side_overtime": "你因为更换副卡组超时,本次比赛已被判负。",
"side_overtime_room": " 因为更换副卡组超时,本次比赛已被判负。",
"side_remain_part1": "更换副卡组时间还剩", "side_remain_part1": "更换副卡组时间还剩",
"side_remain_part2": "分钟。", "side_remain_part2": "分钟。",
"athletic_arena_tip": "在竞技匹配中,比赛开始前退出游戏也会视为投降。" "athletic_arena_tip": "在竞技匹配中,比赛开始前退出游戏也会视为投降。"
......
...@@ -1890,12 +1890,13 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)-> ...@@ -1890,12 +1890,13 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
clearInterval sinterval clearInterval sinterval
return return
if client.side_tcount == 1 if client.side_tcount == 1
ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat_to_room(room, client.name + "${side_overtime_room}", ygopro.constants.COLORS.BLUE)
ygopro.stoc_send_chat(client, "${side_overtime}", ygopro.constants.COLORS.RED)
client.destroy() client.destroy()
clearInterval sinterval clearInterval sinterval
else else
client.side_tcount = client.side_tcount - 1 client.side_tcount = client.side_tcount - 1
ygopro.stoc_send_chat(client, "${side_remain_part1}#{settings.modules.side_timeout}${side_remain_part2}", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, "${side_remain_part1}#{client.side_tcount}${side_remain_part2}", ygopro.constants.COLORS.BABYBLUE)
, 60000 , 60000
client.side_interval = sinterval client.side_interval = sinterval
if room.random_type or room.arena if room.random_type or room.arena
......
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