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
1f3749aa
Commit
1f3749aa
authored
May 23, 2022
by
Chrono-Genex
Committed by
GitHub
May 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix move_to_field (#448)
parent
923c6699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
operations.cpp
operations.cpp
+4
-2
No files found.
operations.cpp
View file @
1f3749aa
...
...
@@ -4444,9 +4444,10 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
if
(
is_location_useable
(
playerid
,
LOCATION_PZONE
,
1
))
flag
|=
0x1u
<<
(
core
.
duel_rule
>=
4
?
12
:
15
);
if
(
!
flag
)
{
core
.
units
.
begin
()
->
step
=
3
;
if
(
target
->
current
.
location
!=
LOCATION_GRAVE
)
send_to
(
target
,
0
,
REASON_RULE
,
PLAYER_NONE
,
PLAYER_NONE
,
LOCATION_GRAVE
,
0
,
POS_FACEUP
);
return
TRU
E
;
return
FALS
E
;
}
if
(
move_player
!=
playerid
)
flag
=
flag
<<
16
;
...
...
@@ -4466,9 +4467,10 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
return
FALSE
;
}
if
(
ct
<=
0
)
{
core
.
units
.
begin
()
->
step
=
3
;
if
(
target
->
current
.
location
!=
LOCATION_GRAVE
)
send_to
(
target
,
0
,
REASON_RULE
,
PLAYER_NONE
,
PLAYER_NONE
,
LOCATION_GRAVE
,
0
,
POS_FACEUP
);
return
TRU
E
;
return
FALS
E
;
}
if
((
zone
&
zone
-
1
)
==
0
)
{
for
(
uint8
seq
=
0
;
seq
<
8
;
seq
++
)
{
...
...
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