Commit f02c9b4e authored by nanahira's avatar nanahira

forbid to observer in both arenas

parent ea35509e
......@@ -182,7 +182,7 @@
"unwelcome_warn_part2": ",您的对手可能会离你而去。",
"unwelcome_tip_part1": "因为您的对手有",
"unwelcome_tip_part2": "行为,现在您可以直接离开游戏或投降,不视为强退。",
"cannot_to_observer": "竞技匹配中决斗者不允许观战。",
"cannot_to_observer": "匹配模式中决斗者不允许观战。",
"athletic_arena_tip": "在竞技匹配中,比赛开始前退出游戏也会视为投降。"
},
"ko-kr": {
......
......@@ -1311,7 +1311,7 @@ ygopro.stoc_follow 'GAME_MSG', false, (buffer, info, client, server)->
ygopro.ctos_follow 'HS_TOOBSERVER', true, (buffer, info, client, server)->
room=ROOM_all[client.rid]
return unless room
if room.arena != "athletic" or client.ip == "::ffff:127.0.0.1"
if not room.arena or client.ip == "::ffff:127.0.0.1"
return false
for player in room.players
if player == client
......
......@@ -1573,7 +1573,7 @@
if (!room) {
return;
}
if (room.arena !== "athletic" || client.ip === "::ffff:127.0.0.1") {
if (!room.arena || client.ip === "::ffff:127.0.0.1") {
return false;
}
ref = room.players;
......
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