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
edf3d41c
Commit
edf3d41c
authored
Apr 18, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "EFFECT_INDESTRUCTABLE_COUNT"
This reverts commit
25e8dd71
.
parent
35e203de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
operations.cpp
operations.cpp
+2
-6
No files found.
operations.cpp
View file @
edf3d41c
...
...
@@ -2654,7 +2654,6 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
eset
[
i
]
->
dec_count
();
indestructable_effect_set
.
insert
(
eset
[
i
]);
is_destructable
=
false
;
break
;
}
}
else
{
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_effect
,
PARAM_TYPE_EFFECT
);
...
...
@@ -2662,11 +2661,10 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_player
,
PARAM_TYPE_INT
);
int32
ct
;
if
(
ct
=
eset
[
i
]
->
get_value
(
3
))
{
auto
it
=
pcard
->
indestructable_effects
.
insert
(
std
::
make_pair
(
eset
[
i
]
->
owner
->
data
.
code
,
0
));
auto
it
=
pcard
->
indestructable_effects
.
insert
(
std
::
make_pair
(
eset
[
i
]
->
id
,
0
));
if
(
++
it
.
first
->
second
<=
ct
)
{
indestructable_effect_set
.
insert
(
eset
[
i
]);
is_destructable
=
false
;
break
;
}
}
}
...
...
@@ -2864,7 +2862,6 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer32
(
eset
[
i
]
->
owner
->
data
.
code
);
indes
=
true
;
break
;
}
}
else
{
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_effect
,
PARAM_TYPE_EFFECT
);
...
...
@@ -2872,14 +2869,13 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_player
,
PARAM_TYPE_INT
);
int32
ct
;
if
(
ct
=
eset
[
i
]
->
get_value
(
3
))
{
auto
it
=
pcard
->
indestructable_effects
.
insert
(
std
::
make_pair
(
eset
[
i
]
->
owner
->
data
.
code
,
0
));
auto
it
=
pcard
->
indestructable_effects
.
insert
(
std
::
make_pair
(
eset
[
i
]
->
id
,
0
));
if
(
++
it
.
first
->
second
<=
ct
)
{
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_CARD
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer32
(
eset
[
i
]
->
owner
->
data
.
code
);
indes
=
true
;
break
;
}
}
}
...
...
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