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
4862ccca
Commit
4862ccca
authored
Jun 15, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
76a75866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
card.cpp
card.cpp
+6
-9
No files found.
card.cpp
View file @
4862ccca
...
...
@@ -1294,18 +1294,15 @@ uint32 card::get_mutual_linked_zone() {
return
zones
;
}
int32
card
::
is_link_state
()
{
if
(
!
(
get_type
()
&
TYPE_MONSTER
)
)
if
(
current
.
location
!=
LOCATION_MZONE
)
return
FALSE
;
card
::
card_set
cset1
;
this
->
get_linked_cards
(
&
cset1
);
if
(
cset
1
.
size
()
>
0
)
card
_set
cset
;
get_linked_cards
(
&
cset
);
if
(
cset
.
size
()
)
return
TRUE
;
field
::
card_set
cset2
;
int32
p
=
current
.
controler
;
uint32
linked_zone
=
pduel
->
game_field
->
get_linked_zone
(
p
)
|
pduel
->
game_field
->
get_linked_zone
(
1
-
p
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset2
,
linked_zone
,
p
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset2
,
linked_zone
,
1
-
p
);
if
(
cset2
.
find
(
this
)
!=
cset2
.
end
())
uint32
linked_zone
=
pduel
->
game_field
->
get_linked_zone
(
p
);
if
((
linked_zone
>>
current
.
sequence
)
&
1
)
return
TRUE
;
return
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