Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
b05c44a7
Commit
b05c44a7
authored
Nov 12, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.ConfirmCards and MSG_CONFIRM_CARDS
parent
0dc9a3e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
libduel.cpp
libduel.cpp
+4
-0
operations.cpp
operations.cpp
+2
-0
No files found.
libduel.cpp
View file @
b05c44a7
...
...
@@ -1013,8 +1013,12 @@ int32 scriptlib::duel_confirm_cards(lua_State *L) {
pduel = pgroup->pduel;
} else
return luaL_error(L, "Parameter %d should be \"Card\" or \"Group\".", 2);
uint8 skip_panel = 0;
if(lua_gettop(L) >= 3)
skip_panel = lua_toboolean(L, 3);
pduel->write_buffer8(MSG_CONFIRM_CARDS);
pduel->write_buffer8(playerid);
pduel->write_buffer8(skip_panel);
if(pcard) {
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->data.code);
...
...
operations.cpp
View file @
b05c44a7
...
...
@@ -409,6 +409,7 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
if
(
core
.
deck_reversed
&&
(
public_count
<
drawed
))
{
pduel
->
write_buffer8
(
MSG_CONFIRM_CARDS
);
pduel
->
write_buffer8
(
1
-
playerid
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer8
((
uint8
)
drawed_set
->
size
());
for
(
auto
&
pcard
:
*
drawed_set
)
{
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
...
...
@@ -2576,6 +2577,7 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
if
(
confirm
)
{
pduel
->
write_buffer8
(
MSG_CONFIRM_CARDS
);
pduel
->
write_buffer8
(
toplayer
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer8
((
uint8
)
core
.
set_group_set
.
size
());
for
(
auto
&
pcard
:
core
.
set_group_set
)
{
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
...
...
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