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
xiaoye
ygopro-core
Commits
46864da1
Commit
46864da1
authored
Nov 20, 2023
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.GetReleaseGroup, GetReleaseGroupCount
add 3rd param (optional): reason
parent
c0e402bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
libduel.cpp
libduel.cpp
+8
-2
No files found.
libduel.cpp
View file @
46864da1
...
@@ -2621,9 +2621,12 @@ int32 scriptlib::duel_get_release_group(lua_State *L) {
...
@@ -2621,9 +2621,12 @@ int32 scriptlib::duel_get_release_group(lua_State *L) {
uint32
hand
=
FALSE
;
uint32
hand
=
FALSE
;
if
(
lua_gettop
(
L
)
>
1
)
if
(
lua_gettop
(
L
)
>
1
)
hand
=
lua_toboolean
(
L
,
2
);
hand
=
lua_toboolean
(
L
,
2
);
uint32
reason
=
0
;
if
(
lua_gettop
(
L
)
>=
3
)
reason
=
(
uint32
)
lua_tointeger
(
L
,
3
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
group
*
pgroup
=
pduel
->
new_group
();
group
*
pgroup
=
pduel
->
new_group
();
pduel
->
game_field
->
get_release_list
(
playerid
,
&
pgroup
->
container
,
&
pgroup
->
container
,
&
pgroup
->
container
,
FALSE
,
hand
,
0
,
0
,
0
,
0
);
pduel
->
game_field
->
get_release_list
(
playerid
,
&
pgroup
->
container
,
&
pgroup
->
container
,
&
pgroup
->
container
,
FALSE
,
hand
,
0
,
0
,
nullptr
,
nullptr
,
reason
);
interpreter
::
group2value
(
L
,
pgroup
);
interpreter
::
group2value
(
L
,
pgroup
);
return
1
;
return
1
;
}
}
...
@@ -2640,8 +2643,11 @@ int32 scriptlib::duel_get_release_group_count(lua_State *L) {
...
@@ -2640,8 +2643,11 @@ int32 scriptlib::duel_get_release_group_count(lua_State *L) {
uint32
hand
=
FALSE
;
uint32
hand
=
FALSE
;
if
(
lua_gettop
(
L
)
>
1
)
if
(
lua_gettop
(
L
)
>
1
)
hand
=
lua_toboolean
(
L
,
2
);
hand
=
lua_toboolean
(
L
,
2
);
uint32
reason
=
0
;
if
(
lua_gettop
(
L
)
>=
3
)
reason
=
(
uint32
)
lua_tointeger
(
L
,
3
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
lua_pushinteger
(
L
,
pduel
->
game_field
->
get_release_list
(
playerid
,
0
,
0
,
0
,
FALSE
,
hand
,
0
,
0
,
0
,
0
));
lua_pushinteger
(
L
,
pduel
->
game_field
->
get_release_list
(
playerid
,
0
,
0
,
0
,
FALSE
,
hand
,
0
,
0
,
nullptr
,
nullptr
,
reason
));
return
1
;
return
1
;
}
}
int32
scriptlib
::
duel_check_release_group
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_check_release_group
(
lua_State
*
L
)
{
...
...
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