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
461e6fe5
Commit
461e6fe5
authored
Dec 24, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into develop-8888
parents
1498927d
a37c3a0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
operations.cpp
operations.cpp
+2
-6
No files found.
operations.cpp
View file @
461e6fe5
...
@@ -4327,10 +4327,8 @@ int32_t field::send_to(uint16_t step, group * targets, effect * reason_effect, u
...
@@ -4327,10 +4327,8 @@ int32_t field::send_to(uint16_t step, group * targets, effect * reason_effect, u
if
(
nloc
==
LOCATION_GRAVE
)
if
(
nloc
==
LOCATION_GRAVE
)
pcard
->
reset
(
RESET_TOGRAVE
,
RESET_EVENT
);
pcard
->
reset
(
RESET_TOGRAVE
,
RESET_EVENT
);
if
(
nloc
==
LOCATION_REMOVED
||
((
pcard
->
data
.
type
&
TYPE_TOKEN
)
&&
pcard
->
sendto_param
.
location
==
LOCATION_REMOVED
))
{
if
(
nloc
==
LOCATION_REMOVED
||
((
pcard
->
data
.
type
&
TYPE_TOKEN
)
&&
pcard
->
sendto_param
.
location
==
LOCATION_REMOVED
))
{
if(pcard->current.reason & REASON_TEMPORARY)
{
if
(
pcard
->
current
.
reason
&
REASON_TEMPORARY
)
pcard
->
reset
(
RESET_TEMP_REMOVE
,
RESET_EVENT
);
pcard
->
reset
(
RESET_TEMP_REMOVE
,
RESET_EVENT
);
pcard->set_status(STATUS_CANNOT_CHANGE_FORM, FALSE);
}
else
else
pcard
->
reset
(
RESET_REMOVE
,
RESET_EVENT
);
pcard
->
reset
(
RESET_REMOVE
,
RESET_EVENT
);
}
}
...
@@ -4711,10 +4709,8 @@ int32_t field::move_to_field(uint16_t step, card* target, uint32_t enable, uint3
...
@@ -4711,10 +4709,8 @@ int32_t field::move_to_field(uint16_t step, card* target, uint32_t enable, uint3
target
->
clear_relate_effect
();
target
->
clear_relate_effect
();
if
(
ret
==
RETURN_TEMP_REMOVE_TO_FIELD
)
{
if
(
ret
==
RETURN_TEMP_REMOVE_TO_FIELD
)
{
target
->
current
.
reason
&=
~
REASON_TEMPORARY
;
target
->
current
.
reason
&=
~
REASON_TEMPORARY
;
target->set_status(STATUS_CANNOT_CHANGE_FORM, FALSE);
}
}
if(ret == 0 && location != target->current.location
if
(
ret
==
0
&&
location
!=
target
->
current
.
location
||
ret
==
RETURN_TEMP_REMOVE_TO_FIELD
)
{
|| ret == RETURN_TEMP_REMOVE_TO_FIELD && target->turnid != infos.turn_id) {
target
->
set_status
(
STATUS_SUMMON_TURN
,
FALSE
);
target
->
set_status
(
STATUS_SUMMON_TURN
,
FALSE
);
target
->
set_status
(
STATUS_FLIP_SUMMON_TURN
,
FALSE
);
target
->
set_status
(
STATUS_FLIP_SUMMON_TURN
,
FALSE
);
target
->
set_status
(
STATUS_SPSUMMON_TURN
,
FALSE
);
target
->
set_status
(
STATUS_SPSUMMON_TURN
,
FALSE
);
...
...
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