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
f0ce4df1
Commit
f0ce4df1
authored
Dec 11, 2019
by
DailyShana
Committed by
GitHub
Dec 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treat EFFECT_DISABLE_CHAIN as flag effect (#249)
fix Fluorohydride/ygopro#2235
parent
e1d21757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
field.cpp
field.cpp
+5
-5
No files found.
field.cpp
View file @
f0ce4df1
...
@@ -3201,11 +3201,11 @@ int32 field::is_chain_disabled(uint8 chaincount) {
...
@@ -3201,11 +3201,11 @@ int32 field::is_chain_disabled(uint8 chaincount) {
if
(
pchain
->
flag
&
CHAIN_DISABLE_EFFECT
)
if
(
pchain
->
flag
&
CHAIN_DISABLE_EFFECT
)
return
TRUE
;
return
TRUE
;
card
*
pcard
=
pchain
->
triggering_effect
->
get_handler
();
card
*
pcard
=
pchain
->
triggering_effect
->
get_handler
();
effect_set
eset
;
auto
rg
=
pcard
->
single_effect
.
equal_range
(
EFFECT_DISABLE_CHAIN
)
;
pcard
->
filter_effect
(
EFFECT_DISABLE_CHAIN
,
&
eset
);
for
(;
rg
.
first
!=
rg
.
second
;
++
rg
.
first
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
effect
*
peffect
=
rg
.
first
->
second
;
if
(
eset
[
i
]
->
get_value
()
==
pchain
->
chain_id
)
{
if
(
peffect
->
get_value
()
==
pchain
->
chain_id
)
{
eset
[
i
]
->
reset_flag
|=
RESET_CHAIN
;
peffect
->
reset_flag
|=
RESET_CHAIN
;
return
TRUE
;
return
TRUE
;
}
}
}
}
...
...
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