Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
dc-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
JoyJ
dc-plugins
Commits
a2bacf5f
Commit
a2bacf5f
authored
Feb 07, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a try to avoid invalid decks
parent
27a922fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
DuelChronicle_Random.js
DuelChronicle_Random.js
+11
-6
No files found.
DuelChronicle_Random.js
View file @
a2bacf5f
...
...
@@ -234,12 +234,17 @@ ygopro.stoc_follow_after("CHANGE_SIDE", true, (buffer, info, client, server, dat
var
compat_deckbuf
=
client
.
main
.
concat
(
client
.
side
);
client
.
deckMd5
=
global
.
dc_decks_md5
[
deckindex
];
}
try
{
ygopro
.
ctos_send
(
server
,
"
UPDATE_DECK
"
,
{
mainc
:
client
.
main
.
length
,
sidec
:
client
.
side
.
length
,
deckbuf
:
compat_deckbuf
});
}
catch
{
log
.
info
(
"
READY_FAILURE :
"
+
global
.
dc_decks_md5
[
deckindex
]);
ygopro
.
stoc_send_chat
(
client
,
"
意外的错误,你可能抽到了无效卡组。请重新准备
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
}
if
(
MirrorMode
)
{
return
true
;
...
...
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