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
a159e87e
Commit
a159e87e
authored
Dec 25, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of ../../versions/ygopro-mc/ocgcore
parents
a8bebad9
14ebfd50
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
60 deletions
+70
-60
effect.h
effect.h
+2
-2
libgroup.cpp
libgroup.cpp
+7
-2
processor.cpp
processor.cpp
+61
-56
No files found.
effect.h
View file @
a159e87e
...
@@ -568,8 +568,8 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
...
@@ -568,8 +568,8 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EVENT_REMOVE_COUNTER 0x20000
#define EVENT_REMOVE_COUNTER 0x20000
#define EVENT_CUSTOM 0x10000000
#define EVENT_CUSTOM 0x10000000
#define DOUBLE_DAMAGE 0x80000000
constexpr
int32
DOUBLE_DAMAGE
=
0x80000000
;
#define HALF_DAMAGE 0x80000001
constexpr
int32
HALF_DAMAGE
=
0x80000001
;
// flag effect
// flag effect
#define EFFECT_FLAG_EFFECT 0x20000000
#define EFFECT_FLAG_EFFECT 0x20000000
...
...
libgroup.cpp
View file @
a159e87e
...
@@ -420,6 +420,10 @@ int32 scriptlib::group_is_exists(lua_State *L) {
...
@@ -420,6 +420,10 @@ int32 scriptlib::group_is_exists(lua_State *L) {
uint32
extraargs
=
lua_gettop
(
L
)
-
4
;
uint32
extraargs
=
lua_gettop
(
L
)
-
4
;
uint32
fcount
=
0
;
uint32
fcount
=
0
;
uint32
result
=
FALSE
;
uint32
result
=
FALSE
;
if
(
count
>
pgroup
->
container
.
size
())
{
lua_pushboolean
(
L
,
0
);
return
1
;
}
for
(
auto
&
pcard
:
cset
)
{
for
(
auto
&
pcard
:
cset
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
++
fcount
;
++
fcount
;
...
@@ -722,11 +726,12 @@ int32 scriptlib::group_search_card(lua_State *L) {
...
@@ -722,11 +726,12 @@ int32 scriptlib::group_search_card(lua_State *L) {
group
*
pgroup
=
*
(
group
**
)
lua_touserdata
(
L
,
1
);
group
*
pgroup
=
*
(
group
**
)
lua_touserdata
(
L
,
1
);
duel
*
pduel
=
pgroup
->
pduel
;
duel
*
pduel
=
pgroup
->
pduel
;
uint32
extraargs
=
lua_gettop
(
L
)
-
2
;
uint32
extraargs
=
lua_gettop
(
L
)
-
2
;
for
(
auto
&
pcard
:
pgroup
->
container
)
for
(
auto
&
pcard
:
pgroup
->
container
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
interpreter
::
card2value
(
L
,
pcard
);
interpreter
::
card2value
(
L
,
pcard
);
return
1
;
return
1
;
}
}
}
return
0
;
return
0
;
}
}
int32
scriptlib
::
group_get_bin_class_count
(
lua_State
*
L
)
{
int32
scriptlib
::
group_get_bin_class_count
(
lua_State
*
L
)
{
...
...
processor.cpp
View file @
a159e87e
This diff is collapsed.
Click to expand it.
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