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
57557b86
Commit
57557b86
authored
Dec 24, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Group.IsExists
parent
7a6a7819
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
libgroup.cpp
libgroup.cpp
+7
-2
No files found.
libgroup.cpp
View file @
57557b86
...
...
@@ -393,6 +393,10 @@ int32 scriptlib::group_is_exists(lua_State *L) {
uint32
extraargs
=
lua_gettop
(
L
)
-
4
;
uint32
fcount
=
0
;
uint32
result
=
FALSE
;
if
(
count
>
pgroup
->
container
.
size
())
{
lua_pushboolean
(
L
,
0
);
return
1
;
}
for
(
auto
&
pcard
:
cset
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
++
fcount
;
...
...
@@ -721,11 +725,12 @@ int32 scriptlib::group_search_card(lua_State *L) {
group
*
pgroup
=
*
(
group
**
)
lua_touserdata
(
L
,
1
);
duel
*
pduel
=
pgroup
->
pduel
;
uint32
extraargs
=
lua_gettop
(
L
)
-
2
;
for
(
auto
&
pcard
:
pgroup
->
container
)
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
for
(
auto
&
pcard
:
pgroup
->
container
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
interpreter
::
card2value
(
L
,
pcard
);
return
1
;
}
}
return
0
;
}
int32
scriptlib
::
group_get_bin_class_count
(
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