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
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
MyCard
ygopro-core
Commits
779170a6
Commit
779170a6
authored
Jul 17, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EFFECT_CANNOT_TO_DECK
parent
13bcca50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
card.cpp
card.cpp
+2
-0
field.cpp
field.cpp
+2
-0
No files found.
card.cpp
View file @
779170a6
...
...
@@ -3410,6 +3410,8 @@ int32 card::is_capable_send_to_hand(uint8 playerid) {
return
FALSE
;
if
(
is_affected_by_effect
(
EFFECT_CANNOT_TO_HAND
))
return
FALSE
;
if
(
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_LINK
)
&&
!
is_capable_send_to_deck
(
playerid
))
return
FALSE
;
if
(
!
pduel
->
game_field
->
is_player_can_send_to_hand
(
playerid
,
this
))
return
FALSE
;
return
TRUE
;
...
...
field.cpp
View file @
779170a6
...
...
@@ -3272,6 +3272,8 @@ int32 field::is_player_can_send_to_hand(uint8 playerid, card * pcard) {
if
(
pduel
->
lua
->
check_condition
(
eset
[
i
]
->
target
,
3
))
return
FALSE
;
}
if
((
pcard
->
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_LINK
))
&&
!
is_player_can_send_to_deck
(
playerid
,
pcard
))
return
FALSE
;
return
TRUE
;
}
int32
field
::
is_player_can_send_to_deck
(
uint8
playerid
,
card
*
pcard
)
{
...
...
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