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
c136cce6
Commit
c136cce6
authored
Jun 08, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
0baf9594
a5de4ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
field.cpp
field.cpp
+4
-1
No files found.
field.cpp
View file @
c136cce6
...
...
@@ -1048,6 +1048,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
++
clit
;
}
for
(
auto
&
pcard
:
player
[
playerid
].
list_grave
)
{
pcard
->
current
.
position
=
POS_FACEUP
;
pcard
->
current
.
location
=
LOCATION_GRAVE
;
pcard
->
current
.
reason
=
REASON_EFFECT
;
pcard
->
current
.
reason_effect
=
core
.
reason_effect
;
...
...
@@ -1057,6 +1058,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
pcard
->
reset
(
RESET_TOGRAVE
,
RESET_EVENT
);
}
for
(
auto
&
pcard
:
player
[
playerid
].
list_main
)
{
pcard
->
current
.
position
=
POS_FACEDOWN_DEFENSE
;
pcard
->
current
.
location
=
LOCATION_DECK
;
pcard
->
current
.
reason
=
REASON_EFFECT
;
pcard
->
current
.
reason_effect
=
core
.
reason_effect
;
...
...
@@ -1066,6 +1068,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
pcard
->
reset
(
RESET_TODECK
,
RESET_EVENT
);
}
for
(
auto
&
pcard
:
ex
)
{
pcard
->
current
.
position
=
POS_FACEDOWN_DEFENSE
;
pcard
->
current
.
location
=
LOCATION_EXTRA
;
pcard
->
current
.
reason
=
REASON_EFFECT
;
pcard
->
current
.
reason_effect
=
core
.
reason_effect
;
...
...
@@ -1074,7 +1077,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
pcard
->
enable_field_effect
(
true
);
pcard
->
reset
(
RESET_TODECK
,
RESET_EVENT
);
}
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
end
(),
ex
.
begin
(),
ex
.
end
());
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
end
()
-
player
[
playerid
].
extra_p_count
,
ex
.
begin
(),
ex
.
end
());
reset_sequence
(
playerid
,
LOCATION_GRAVE
);
reset_sequence
(
playerid
,
LOCATION_EXTRA
);
pduel
->
write_buffer8
(
MSG_SWAP_GRAVE_DECK
);
...
...
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