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
b8e1459d
Commit
b8e1459d
authored
Feb 25, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix replace effect
parent
70d367f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
card.cpp
card.cpp
+3
-1
No files found.
card.cpp
View file @
b8e1459d
...
@@ -1895,11 +1895,13 @@ int32 card::replace_effect(uint32 code, uint32 reset, uint32 count) {
...
@@ -1895,11 +1895,13 @@ int32 card::replace_effect(uint32 code, uint32 reset, uint32 count) {
read_card
(
code
,
&
cdata
);
read_card
(
code
,
&
cdata
);
if
(
cdata
.
type
&
TYPE_NORMAL
)
if
(
cdata
.
type
&
TYPE_NORMAL
)
return
-
1
;
return
-
1
;
if
(
is_status
(
STATUS_EFFECT_REPLACED
))
set_status
(
STATUS_EFFECT_REPLACED
,
FALSE
);
for
(
auto
i
=
indexer
.
begin
();
i
!=
indexer
.
end
();)
{
for
(
auto
i
=
indexer
.
begin
();
i
!=
indexer
.
end
();)
{
auto
rm
=
i
++
;
auto
rm
=
i
++
;
effect
*
peffect
=
rm
->
first
;
effect
*
peffect
=
rm
->
first
;
auto
it
=
rm
->
second
;
auto
it
=
rm
->
second
;
if
(
peffect
->
is_flag
(
EFFECT_FLAG_INITIAL
|
EFFECT_FLAG_COPY_INHERIT
))
if
(
peffect
->
is_flag
(
EFFECT_FLAG_INITIAL
|
EFFECT_FLAG_COPY_INHERIT
))
remove_effect
(
peffect
,
it
);
remove_effect
(
peffect
,
it
);
}
}
uint32
cr
=
pduel
->
game_field
->
core
.
copy_reset
;
uint32
cr
=
pduel
->
game_field
->
core
.
copy_reset
;
...
...
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