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
257688b7
Commit
257688b7
authored
Oct 02, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix field::filter_inrange_cards()
parent
9b62088d
Changes
1
Hide 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 @
257688b7
...
@@ -1404,11 +1404,11 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
...
@@ -1404,11 +1404,11 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
if
(
peffect
->
is_flag
(
EFFECT_FLAG_PLAYER_TARGET
|
EFFECT_FLAG_SPSUM_PARAM
))
if
(
peffect
->
is_flag
(
EFFECT_FLAG_PLAYER_TARGET
|
EFFECT_FLAG_SPSUM_PARAM
))
return
;
return
;
uint8
self
=
peffect
->
get_handler_player
();
uint8
self
=
peffect
->
get_handler_player
();
if
(
self
==
PLAYER_NONE
)
if
(
!
check_playerid
(
self
)
)
return
;
return
;
uint16
range
=
peffect
->
s_range
;
uint16
range
=
peffect
->
s_range
;
std
::
vector
<
card_vector
*>
cvec
;
std
::
vector
<
card_vector
*>
cvec
;
for
(
u
int32
p
=
0
;
p
<
2
;
++
p
)
{
for
(
int32
p
=
0
;
p
<
2
;
++
p
)
{
if
(
range
&
LOCATION_MZONE
)
if
(
range
&
LOCATION_MZONE
)
cvec
.
push_back
(
&
player
[
self
].
list_mzone
);
cvec
.
push_back
(
&
player
[
self
].
list_mzone
);
if
(
range
&
LOCATION_SZONE
)
if
(
range
&
LOCATION_SZONE
)
...
@@ -1428,7 +1428,7 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
...
@@ -1428,7 +1428,7 @@ void field::filter_inrange_cards(effect* peffect, card_set* cset) {
}
}
for
(
auto
&
cvit
:
cvec
)
{
for
(
auto
&
cvit
:
cvec
)
{
for
(
auto
&
pcard
:
*
cvit
)
{
for
(
auto
&
pcard
:
*
cvit
)
{
if
(
pcard
&&
peffect
->
is_fit_target_function
(
pcard
))
if
(
pcard
&&
(
!
(
pcard
->
current
.
location
&
LOCATION_ONFIELD
)
||
!
pcard
->
is_treated_as_not_on_field
())
&&
peffect
->
is_fit_target_function
(
pcard
))
cset
->
insert
(
pcard
);
cset
->
insert
(
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