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
ec7d3802
Commit
ec7d3802
authored
Mar 03, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
174fa0b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
ygopro-server.coffee
ygopro-server.coffee
+8
-4
ygopro-server.js
ygopro-server.js
+3
-6
No files found.
ygopro-server.coffee
View file @
ec7d3802
...
@@ -1896,10 +1896,14 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server)->
...
@@ -1896,10 +1896,14 @@ ygopro.stoc_follow 'CHAT', true, (buffer, info, client, server)->
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
.
started
and
room
.
turn
>
0
and
!
room
.
dueling_players
[
0
].
is_first
if
room
.
hostinfo
.
mode
==
2
if
room
.
hostinfo
.
mode
==
2
pid
=
2
if
pid
==
0
if
pid
==
0
pid
=
3
if
pid
==
1
pid
=
2
pid
=
0
if
pid
==
2
else
if
pid
=
1
pid
=
1
if
pid
==
3
pid
=
3
else
if
pid
=
2
pid
=
0
else
if
pid
=
3
pid
=
1
else
else
pid
=
1
-
pid
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
...
...
ygopro-server.js
View file @
ec7d3802
...
@@ -2385,14 +2385,11 @@
...
@@ -2385,14 +2385,11 @@
if
(
room
.
hostinfo
.
mode
===
2
)
{
if
(
room
.
hostinfo
.
mode
===
2
)
{
if
(
pid
===
0
)
{
if
(
pid
===
0
)
{
pid
=
2
;
pid
=
2
;
}
}
else
if
(
pid
=
1
)
{
if
(
pid
===
1
)
{
pid
=
3
;
pid
=
3
;
}
}
else
if
(
pid
=
2
)
{
if
(
pid
===
2
)
{
pid
=
0
;
pid
=
0
;
}
}
else
if
(
pid
=
3
)
{
if
(
pid
===
3
)
{
pid
=
1
;
pid
=
1
;
}
}
}
else
{
}
else
{
...
...
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