Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
f02c9b4e
Commit
f02c9b4e
authored
Feb 09, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forbid to observer in both arenas
parent
ea35509e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
i18n.json
i18n.json
+1
-1
ygopro-server.coffee
ygopro-server.coffee
+1
-1
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
i18n.json
View file @
f02c9b4e
...
...
@@ -182,7 +182,7 @@
"unwelcome_warn_part2"
:
",您的对手可能会离你而去。"
,
"unwelcome_tip_part1"
:
"因为您的对手有"
,
"unwelcome_tip_part2"
:
"行为,现在您可以直接离开游戏或投降,不视为强退。"
,
"cannot_to_observer"
:
"
竞技匹配
中决斗者不允许观战。"
,
"cannot_to_observer"
:
"
匹配模式
中决斗者不允许观战。"
,
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
},
"ko-kr"
:
{
...
...
ygopro-server.coffee
View file @
f02c9b4e
...
...
@@ -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
...
...
ygopro-server.js
View file @
f02c9b4e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment