Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
ygopro-2pick
Commits
83bbacd3
Commit
83bbacd3
authored
Nov 18, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confirmdecktop
parent
2ff9e84f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+8
-0
No files found.
ocgcore/libduel.cpp
View file @
83bbacd3
...
...
@@ -901,6 +901,7 @@ int32 scriptlib::duel_get_chain_material(lua_State *L) {
interpreter
::
effect2value
(
L
,
eset
[
0
]);
return
1
;
}
//modded
int32
scriptlib
::
duel_confirm_decktop
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
int32
playerid
=
lua_tointeger
(
L
,
1
);
...
...
@@ -928,12 +929,19 @@ int32 scriptlib::duel_confirm_decktop(lua_State *L) {
pduel
->
write_buffer8
(
MSG_CONFIRM_DECKTOP
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
count
);
card_set
ccards
;
uint32
reason
=
0
;
if
(
lua_gettop
(
L
)
>=
3
)
reason
=
lua_tointeger
(
L
,
3
);
for
(
uint32
i
=
0
;
i
<
count
&&
cit
!=
pduel
->
game_field
->
player
[
playerid
].
list_main
.
rend
();
++
i
,
++
cit
)
{
pduel
->
write_buffer32
((
*
cit
)
->
data
.
code
);
pduel
->
write_buffer8
((
*
cit
)
->
current
.
controler
);
pduel
->
write_buffer8
((
*
cit
)
->
current
.
location
);
pduel
->
write_buffer8
((
*
cit
)
->
current
.
sequence
);
pduel
->
game_field
->
raise_single_event
(
*
cit
,
0
,
EVENT_CUSTOM
+
50000000
,
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
count
);
ccards
.
insert
(
*
cit
);
}
pduel
->
game_field
->
raise_event
(
ccards
,
EVENT_CUSTOM
+
50000000
,
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
count
);
pduel
->
game_field
->
add_process
(
PROCESSOR_WAIT
,
0
,
0
,
0
,
0
,
0
);
return
lua_yield
(
L
,
0
);
}
...
...
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