Commit 01328843 authored by mercury233's avatar mercury233

fix

parent 67e5038a
...@@ -1445,6 +1445,8 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)-> ...@@ -1445,6 +1445,8 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)-> ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
room=ROOM_all[client.rid] room=ROOM_all[client.rid]
return settings.modules.tournament_mode.enabled unless room return settings.modules.tournament_mode.enabled unless room
if settings.modules.enable_cloud_replay
Cloud_replay_ids.push room.cloud_replay_id
if settings.modules.tournament_mode.enabled if settings.modules.tournament_mode.enabled
if client.is_host if client.is_host
log = { log = {
...@@ -1461,7 +1463,6 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)-> ...@@ -1461,7 +1463,6 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log) nconf.myset(settings, "modules:tournament_mode:duel_log", settings.modules.tournament_mode.duel_log)
if settings.modules.enable_cloud_replay if settings.modules.enable_cloud_replay
ygopro.stoc_send_chat(client, "本场比赛云录像:R##{room.cloud_replay_id}。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, "本场比赛云录像:R##{room.cloud_replay_id}。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE)
Cloud_replay_ids.push room.cloud_replay_id
return true return true
else else
return false return false
......
...@@ -1816,6 +1816,9 @@ ...@@ -1816,6 +1816,9 @@
if (!room) { if (!room) {
return settings.modules.tournament_mode.enabled; return settings.modules.tournament_mode.enabled;
} }
if (settings.modules.enable_cloud_replay) {
Cloud_replay_ids.push(room.cloud_replay_id);
}
if (settings.modules.tournament_mode.enabled) { if (settings.modules.tournament_mode.enabled) {
if (client.is_host) { if (client.is_host) {
log = { log = {
...@@ -1842,7 +1845,6 @@ ...@@ -1842,7 +1845,6 @@
} }
if (settings.modules.enable_cloud_replay) { if (settings.modules.enable_cloud_replay) {
ygopro.stoc_send_chat(client, "本场比赛云录像:R#" + room.cloud_replay_id + "。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "本场比赛云录像:R#" + room.cloud_replay_id + "。将于MATCH结束后可播放。", ygopro.constants.COLORS.BABYBLUE);
Cloud_replay_ids.push(room.cloud_replay_id);
} }
return true; return true;
} 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