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
b20174d9
Commit
b20174d9
authored
Jun 21, 2019
by
Aephiex
Committed by
DailyShana
Jun 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update EFFECT_MUST_USE_MZONE (#158)
parent
9c5c4a53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
field.cpp
field.cpp
+3
-3
No files found.
field.cpp
View file @
b20174d9
...
@@ -690,12 +690,11 @@ int32 field::get_spsummonable_count_fromex_rule4(card* pcard, uint8 playerid, ui
...
@@ -690,12 +690,11 @@ int32 field::get_spsummonable_count_fromex_rule4(card* pcard, uint8 playerid, ui
value
=
eset
[
i
]
->
get_value
(
pcard
,
3
);
value
=
eset
[
i
]
->
get_value
(
pcard
,
3
);
}
}
if
(
eset
[
i
]
->
get_handler_player
()
==
playerid
)
if
(
eset
[
i
]
->
get_handler_player
()
==
playerid
)
flag |= ~value & 0x
1
f;
flag
|=
~
value
&
0x
7
f
;
else
else
flag |= ~(value >> 16) & 0x
1
f;
flag
|=
~
(
value
>>
16
)
&
0x
7
f
;
}
}
uint32
linked_zone
=
get_linked_zone
(
playerid
)
|
(
1u
<<
5
)
|
(
1u
<<
6
);
uint32
linked_zone
=
get_linked_zone
(
playerid
)
|
(
1u
<<
5
)
|
(
1u
<<
6
);
flag = flag | ~zone | ~linked_zone;
if
(
player
[
playerid
].
list_mzone
[
5
]
&&
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
)
if
(
player
[
playerid
].
list_mzone
[
5
]
&&
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
)
&&
check_extra_link
(
playerid
,
pcard
,
6
))
{
&&
check_extra_link
(
playerid
,
pcard
,
6
))
{
flag
|=
1u
<<
5
;
flag
|=
1u
<<
5
;
...
@@ -710,6 +709,7 @@ int32 field::get_spsummonable_count_fromex_rule4(card* pcard, uint8 playerid, ui
...
@@ -710,6 +709,7 @@ int32 field::get_spsummonable_count_fromex_rule4(card* pcard, uint8 playerid, ui
if
(
!
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
))
if
(
!
is_location_useable
(
playerid
,
LOCATION_MZONE
,
6
))
flag
|=
1u
<<
6
;
flag
|=
1u
<<
6
;
}
}
flag
=
flag
|
~
zone
|
~
linked_zone
;
if
(
list
)
if
(
list
)
*
list
=
flag
&
0x7f
;
*
list
=
flag
&
0x7f
;
int32
count
=
5
-
field_used_count
[
flag
&
0x1f
];
int32
count
=
5
-
field_used_count
[
flag
&
0x1f
];
...
...
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