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
d71f67f9
Commit
d71f67f9
authored
Jun 04, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update reason
parent
725f8bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
card.cpp
card.cpp
+2
-2
No files found.
card.cpp
View file @
d71f67f9
...
@@ -2286,7 +2286,7 @@ int32_t card::leave_field_redirect(uint32_t reason) {
...
@@ -2286,7 +2286,7 @@ int32_t card::leave_field_redirect(uint32_t reason) {
redirects
|=
redirect
;
redirects
|=
redirect
;
else
if
((
redirect
&
LOCATION_DECK
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_DECK
)
&&
pduel
->
game_field
->
is_player_can_send_to_deck
(
es
[
i
]
->
get_handler_player
(),
this
))
else
if
((
redirect
&
LOCATION_DECK
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_DECK
)
&&
pduel
->
game_field
->
is_player_can_send_to_deck
(
es
[
i
]
->
get_handler_player
(),
this
))
redirects
|=
redirect
;
redirects
|=
redirect
;
else
if
((
redirect
&
LOCATION_REMOVED
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_REMOVE
)
&&
pduel
->
game_field
->
is_player_can_remove
(
es
[
i
]
->
get_handler_player
(),
this
,
REASON_EFFECT
,
peffect
))
else
if
((
redirect
&
LOCATION_REMOVED
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_REMOVE
)
&&
pduel
->
game_field
->
is_player_can_remove
(
es
[
i
]
->
get_handler_player
(),
this
,
REASON_EFFECT
|
REASON_REDIRECT
,
peffect
))
redirects
|=
redirect
;
redirects
|=
redirect
;
}
}
if
(
redirects
&
LOCATION_REMOVED
)
if
(
redirects
&
LOCATION_REMOVED
)
...
@@ -2325,7 +2325,7 @@ int32_t card::destination_redirect(uint8_t destination, uint32_t reason) {
...
@@ -2325,7 +2325,7 @@ int32_t card::destination_redirect(uint8_t destination, uint32_t reason) {
return
redirect
;
return
redirect
;
if
((
redirect
&
LOCATION_DECK
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_DECK
)
&&
pduel
->
game_field
->
is_player_can_send_to_deck
(
es
[
i
]
->
get_handler_player
(),
this
))
if
((
redirect
&
LOCATION_DECK
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_DECK
)
&&
pduel
->
game_field
->
is_player_can_send_to_deck
(
es
[
i
]
->
get_handler_player
(),
this
))
return
redirect
;
return
redirect
;
if
((
redirect
&
LOCATION_REMOVED
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_REMOVE
)
&&
pduel
->
game_field
->
is_player_can_remove
(
es
[
i
]
->
get_handler_player
(),
this
,
REASON_EFFECT
,
peffect
))
if
((
redirect
&
LOCATION_REMOVED
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_REMOVE
)
&&
pduel
->
game_field
->
is_player_can_remove
(
es
[
i
]
->
get_handler_player
(),
this
,
REASON_EFFECT
|
REASON_REDIRECT
,
peffect
))
return
redirect
;
return
redirect
;
if
((
redirect
&
LOCATION_GRAVE
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_GRAVE
)
&&
pduel
->
game_field
->
is_player_can_send_to_grave
(
es
[
i
]
->
get_handler_player
(),
this
))
if
((
redirect
&
LOCATION_GRAVE
)
&&
!
is_affected_by_effect
(
EFFECT_CANNOT_TO_GRAVE
)
&&
pduel
->
game_field
->
is_player_can_send_to_grave
(
es
[
i
]
->
get_handler_player
(),
this
))
return
redirect
;
return
redirect
;
...
...
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