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
29ff1257
Commit
29ff1257
authored
Mar 15, 2022
by
mercury233
Committed by
GitHub
Mar 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.MoveToField (#439)
parent
f5ff25ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
field.cpp
field.cpp
+1
-1
operations.cpp
operations.cpp
+1
-1
No files found.
field.cpp
View file @
29ff1257
...
@@ -265,7 +265,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
...
@@ -265,7 +265,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
pcard
->
sendto_param
.
position
=
POS_FACEDOWN_DEFENSE
;
pcard
->
sendto_param
.
position
=
POS_FACEDOWN_DEFENSE
;
}
}
if
(
pcard
->
current
.
location
)
{
if
(
pcard
->
current
.
location
)
{
if
(
pcard
->
current
.
location
==
location
)
{
if
(
pcard
->
current
.
location
==
location
&&
pcard
->
current
.
pzone
==
!!
pzone
)
{
if
(
pcard
->
current
.
location
==
LOCATION_DECK
)
{
if
(
pcard
->
current
.
location
==
LOCATION_DECK
)
{
if
(
preplayer
==
playerid
)
{
if
(
preplayer
==
playerid
)
{
pduel
->
write_buffer8
(
MSG_MOVE
);
pduel
->
write_buffer8
(
MSG_MOVE
);
...
...
operations.cpp
View file @
29ff1257
...
@@ -289,7 +289,7 @@ void field::send_to(card* target, effect* reason_effect, uint32 reason, uint32 r
...
@@ -289,7 +289,7 @@ void field::send_to(card* target, effect* reason_effect, uint32 reason, uint32 r
void
field
::
move_to_field
(
card
*
target
,
uint32
move_player
,
uint32
playerid
,
uint32
destination
,
uint32
positions
,
uint32
enable
,
uint32
ret
,
uint32
pzone
,
uint32
zone
)
{
void
field
::
move_to_field
(
card
*
target
,
uint32
move_player
,
uint32
playerid
,
uint32
destination
,
uint32
positions
,
uint32
enable
,
uint32
ret
,
uint32
pzone
,
uint32
zone
)
{
if
(
!
(
destination
&
LOCATION_ONFIELD
)
||
!
positions
)
if
(
!
(
destination
&
LOCATION_ONFIELD
)
||
!
positions
)
return
;
return
;
if
(
destination
==
target
->
current
.
location
&&
playerid
==
target
->
current
.
controler
)
if
(
destination
==
target
->
current
.
location
&&
playerid
==
target
->
current
.
controler
&&
target
->
current
.
pzone
==
!!
pzone
)
return
;
return
;
target
->
to_field_param
=
(
move_player
<<
24
)
+
(
playerid
<<
16
)
+
(
destination
<<
8
)
+
positions
;
target
->
to_field_param
=
(
move_player
<<
24
)
+
(
playerid
<<
16
)
+
(
destination
<<
8
)
+
positions
;
add_process
(
PROCESSOR_MOVETOFIELD
,
0
,
0
,
(
group
*
)
target
,
enable
,
ret
+
(
pzone
<<
8
),
zone
);
add_process
(
PROCESSOR_MOVETOFIELD
,
0
,
0
,
(
group
*
)
target
,
enable
,
ret
+
(
pzone
<<
8
),
zone
);
...
...
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