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
a37c3a0f
Commit
a37c3a0f
authored
Dec 24, 2024
by
wind2009
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch_tempremove' into develop
parents
689d6d30
65cb1c1d
Changes
1
Show 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 @
a37c3a0f
...
@@ -4271,10 +4271,8 @@ int32_t field::send_to(uint16_t step, group * targets, effect * reason_effect, u
...
@@ -4271,10 +4271,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);
}
}
...
@@ -4655,10 +4653,8 @@ int32_t field::move_to_field(uint16_t step, card* target, uint32_t enable, uint3
...
@@ -4655,10 +4653,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);
...
...
wind2009
@wind2009
mentioned in commit
c4a348ec
·
Mar 20, 2025
mentioned in commit
c4a348ec
mentioned in commit c4a348ec5f05f84070f5bdc9efe125d585579c30
Toggle commit list
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