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
c752dee9
Commit
c752dee9
authored
Jun 25, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always take mg first
parent
5c76006c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
field.cpp
field.cpp
+2
-2
libduel.cpp
libduel.cpp
+1
-1
No files found.
field.cpp
View file @
c752dee9
...
...
@@ -2528,14 +2528,14 @@ void field::get_synchro_material(uint8 playerid, card_set* material, effect* tun
int32
field
::
check_synchro_material
(
lua_State
*
L
,
card
*
pcard
,
int32
findex1
,
int32
findex2
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
)
{
if
(
mg
)
{
for
(
auto
&
tuner
:
mg
->
container
)
{
if
(
check_tuner_material
(
L
,
pcard
,
tuner
,
findex1
,
findex2
,
min
,
max
,
smat
,
mg
))
if
(
check_tuner_material
(
L
,
pcard
,
tuner
,
findex1
,
findex2
,
min
,
max
,
nullptr
,
mg
))
return
TRUE
;
}
}
else
{
card_set
material
;
get_synchro_material
(
pcard
->
current
.
controler
,
&
material
);
for
(
auto
&
tuner
:
material
)
{
if
(
check_tuner_material
(
L
,
pcard
,
tuner
,
findex1
,
findex2
,
min
,
max
,
smat
,
mg
))
if
(
check_tuner_material
(
L
,
pcard
,
tuner
,
findex1
,
findex2
,
min
,
max
,
smat
,
nullptr
))
return
TRUE
;
}
}
...
...
libduel.cpp
View file @
c752dee9
...
...
@@ -3305,7 +3305,7 @@ int32 scriptlib::duel_check_tuner_material(lua_State *L) {
check_param
(
L
,
PARAM_TYPE_GROUP
,
7
);
mg
=
*
(
group
**
)
lua_touserdata
(
L
,
7
);
}
lua_pushboolean
(
L
,
pduel
->
game_field
->
check_tuner_material
(
L
,
pcard
,
tuner
,
3
,
4
,
min
,
max
,
0
,
mg
));
lua_pushboolean
(
L
,
pduel
->
game_field
->
check_tuner_material
(
L
,
pcard
,
tuner
,
3
,
4
,
min
,
max
,
nullptr
,
mg
));
return
1
;
}
int32
scriptlib
::
duel_get_ritual_material
(
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