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
88d87d7c
Commit
88d87d7c
authored
Sep 02, 2022
by
mercury233
Committed by
GitHub
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.SelectField (#465)
parent
f14f7819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
libduel.cpp
libduel.cpp
+10
-1
No files found.
libduel.cpp
View file @
88d87d7c
...
...
@@ -3692,7 +3692,16 @@ int32 scriptlib::duel_select_field(lua_State* L) {
uint32
location1
=
(
uint32
)
lua_tointeger
(
L
,
3
);
uint32
location2
=
(
uint32
)
lua_tointeger
(
L
,
4
);
uint32
filter
=
(
uint32
)
lua_tointeger
(
L
,
5
);
uint16
type
=
PROCESSOR_SELECT_DISFIELD
;
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
if
(
lua_gettop
(
L
)
>=
6
)
{
type
=
PROCESSOR_SELECT_PLACE
;
uint32
code
=
(
uint32
)
lua_tointeger
(
L
,
6
);
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
code
);
}
uint32
flag
=
0xffffffff
;
if
(
location1
&
LOCATION_MZONE
)
{
flag
&=
0xffffffe0
;
...
...
@@ -3710,7 +3719,7 @@ int32 scriptlib::duel_select_field(lua_State* L) {
flag
&=
0xffffff9f
;
}
flag
|=
filter
|
0x00800080
;
pduel
->
game_field
->
add_process
(
PROCESSOR_SELECT_DISFIELD
,
0
,
0
,
0
,
playerid
,
flag
,
count
);
pduel
->
game_field
->
add_process
(
type
,
0
,
0
,
0
,
playerid
,
flag
,
count
);
return
lua_yieldk
(
L
,
0
,
(
lua_KContext
)
pduel
,
[](
lua_State
*
L
,
int32
status
,
lua_KContext
ctx
)
{
duel
*
pduel
=
(
duel
*
)
ctx
;
int32
playerid
=
(
int32
)
lua_tointeger
(
L
,
1
);
...
...
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