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
21fa706f
Commit
21fa706f
authored
Jun 24, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ref in PROCESSOR_SELECT_SYNCHRO
parent
d5accce9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
field.h
field.h
+1
-1
operations.cpp
operations.cpp
+1
-1
processor.cpp
processor.cpp
+3
-3
No files found.
field.h
View file @
21fa706f
...
...
@@ -625,7 +625,7 @@ public:
int32
change_position
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint8
reason_player
,
uint32
enable
);
int32
operation_replace
(
uint16
step
,
effect
*
replace_effect
,
group
*
targets
,
card
*
target
,
int32
is_destroy
);
int32
activate_effect
(
uint16
step
,
effect
*
peffect
);
int32
select_synchro_material
(
int16
step
,
uint8
playerid
,
card
*
pcard
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
);
int32
select_synchro_material
(
int16
step
,
uint8
playerid
,
card
*
pcard
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
,
int32
filter1
,
int32
filter2
);
int32
select_xyz_material
(
int16
step
,
uint8
playerid
,
uint32
lv
,
card
*
pcard
,
int32
min
,
int32
max
);
int32
select_release_cards
(
int16
step
,
uint8
playerid
,
uint8
cancelable
,
int32
min
,
int32
max
);
int32
select_tribute_cards
(
int16
step
,
card
*
target
,
uint8
playerid
,
uint8
cancelable
,
int32
min
,
int32
max
,
uint8
toplayer
,
uint32
zone
);
...
...
operations.cpp
View file @
21fa706f
...
...
@@ -5287,7 +5287,7 @@ int32 field::activate_effect(uint16 step, effect* peffect) {
}
return
TRUE
;
}
int32
field
::
select_synchro_material
(
int16
step
,
uint8
playerid
,
card
*
pcard
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
)
{
int32
field
::
select_synchro_material
(
int16
step
,
uint8
playerid
,
card
*
pcard
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
,
int32
filter1
,
int32
filter2
)
{
switch
(
step
)
{
case
0
:
{
core
.
select_cards
.
clear
();
...
...
processor.cpp
View file @
21fa706f
...
...
@@ -609,10 +609,10 @@ uint32 field::process() {
}
case
PROCESSOR_SELECT_SYNCHRO
:
{
int32
ret
=
TRUE
;
if
(
!
(
it
->
arg1
>>
16
))
ret
=
select_synchro_material
(
it
->
step
,
it
->
arg1
&
0xffff
,
(
card
*
)
it
->
ptr1
,
it
->
arg2
&
0xffff
,
it
->
arg2
>>
16
,
nullptr
,
(
group
*
)
it
->
ptr2
);
if
(
!
(
it
->
arg1
>>
16
))
ret
=
select_synchro_material
(
it
->
step
,
it
->
arg1
&
0xffff
,
(
card
*
)
it
->
ptr1
,
it
->
arg2
&
0xffff
,
it
->
arg2
>>
16
,
nullptr
,
(
group
*
)
it
->
ptr2
,
it
->
arg3
,
it
->
arg4
);
else
ret
=
select_synchro_material
(
it
->
step
,
it
->
arg1
&
0xffff
,
(
card
*
)
it
->
ptr1
,
it
->
arg2
&
0xffff
,
it
->
arg2
>>
16
,
(
card
*
)
it
->
ptr2
,
nullptr
);
ret
=
select_synchro_material
(
it
->
step
,
it
->
arg1
&
0xffff
,
(
card
*
)
it
->
ptr1
,
it
->
arg2
&
0xffff
,
it
->
arg2
>>
16
,
(
card
*
)
it
->
ptr2
,
nullptr
,
it
->
arg3
,
it
->
arg4
);
if
(
ret
)
core
.
units
.
pop_front
();
else
...
...
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