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
174fa0b7
Commit
174fa0b7
authored
Mar 03, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
07e222d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
ygopro-server.coffee
ygopro-server.coffee
+8
-0
ygopro-server.js
ygopro-server.js
+18
-0
No files found.
ygopro-server.coffee
View file @
174fa0b7
...
@@ -1894,6 +1894,14 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server)->
...
@@ -1894,6 +1894,14 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server)->
room
=
ROOM_all
[
client
.
rid
]
room
=
ROOM_all
[
client
.
rid
]
pid
=
info
.
player
pid
=
info
.
player
return
unless
room
and
pid
<
4
and
settings
.
modules
.
chat_color
.
enabled
return
unless
room
and
pid
<
4
and
settings
.
modules
.
chat_color
.
enabled
if
room
.
started
and
room
.
turn
>
0
and
!
room
.
dueling_players
[
0
].
is_first
if
room
.
hostinfo
.
mode
==
2
pid
=
2
if
pid
==
0
pid
=
3
if
pid
==
1
pid
=
0
if
pid
==
2
pid
=
1
if
pid
==
3
else
pid
=
1
-
pid
for
player
in
room
.
players
when
player
and
player
.
pos
==
pid
for
player
in
room
.
players
when
player
and
player
.
pos
==
pid
tplayer
=
player
tplayer
=
player
return
unless
tplayer
return
unless
tplayer
...
...
ygopro-server.js
View file @
174fa0b7
...
@@ -2381,6 +2381,24 @@
...
@@ -2381,6 +2381,24 @@
if
(
!
(
room
&&
pid
<
4
&&
settings
.
modules
.
chat_color
.
enabled
))
{
if
(
!
(
room
&&
pid
<
4
&&
settings
.
modules
.
chat_color
.
enabled
))
{
return
;
return
;
}
}
if
(
room
.
started
&&
room
.
turn
>
0
&&
!
room
.
dueling_players
[
0
].
is_first
)
{
if
(
room
.
hostinfo
.
mode
===
2
)
{
if
(
pid
===
0
)
{
pid
=
2
;
}
if
(
pid
===
1
)
{
pid
=
3
;
}
if
(
pid
===
2
)
{
pid
=
0
;
}
if
(
pid
===
3
)
{
pid
=
1
;
}
}
else
{
pid
=
1
-
pid
;
}
}
ref
=
room
.
players
;
ref
=
room
.
players
;
for
(
j
=
0
,
len
=
ref
.
length
;
j
<
len
;
j
++
)
{
for
(
j
=
0
,
len
=
ref
.
length
;
j
<
len
;
j
++
)
{
player
=
ref
[
j
];
player
=
ref
[
j
];
...
...
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