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
9516857b
Commit
9516857b
authored
Apr 07, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recover and update EFFECT_INDESTRUCTABLE
parent
d778cc33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
1 deletion
+47
-1
operations.cpp
operations.cpp
+47
-1
No files found.
operations.cpp
View file @
9516857b
...
...
@@ -2598,7 +2598,7 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
for
(
auto
cit
=
targets
->
container
.
begin
();
cit
!=
targets
->
container
.
end
();)
{
auto
rm
=
cit
++
;
card
*
pcard
=
*
rm
;
if
(
!
(
pcard
->
current
.
reason
&
REASON_RULE
))
{
if
(
!
(
pcard
->
current
.
reason
&
(
REASON_RULE
|
REASON_COST
)
))
{
int32
is_destructable
=
true
;
if
(
pcard
->
is_destructable
()
&&
pcard
->
is_affect_by_effect
(
pcard
->
current
.
reason_effect
))
{
effect
*
indestructable_effect
=
pcard
->
check_indestructable_by_effect
(
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason_player
);
...
...
@@ -2615,6 +2615,26 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
}
}
eset
.
clear
();
pcard
->
filter_effect
(
EFFECT_INDESTRUCTABLE
,
&
eset
);
if
(
eset
.
size
())
{
bool
is_destructable
=
true
;
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_player
,
PARAM_TYPE_INT
);
if
(
eset
[
i
]
->
check_value_condition
(
3
))
{
if
(
reason_player
!=
5
)
indestructable_effect_set
.
insert
(
eset
[
i
]);
is_destructable
=
false
;
break
;
}
}
if
(
!
is_destructable
)
{
indestructable_set
.
insert
(
pcard
);
continue
;
}
}
eset
.
clear
();
pcard
->
filter_effect
(
EFFECT_INDESTRUCTABLE_COUNT
,
&
eset
);
if
(
eset
.
size
())
{
bool
is_destructable
=
true
;
...
...
@@ -2782,6 +2802,32 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
}
}
eset
.
clear
();
pcard
->
filter_effect
(
EFFECT_INDESTRUCTABLE
,
&
eset
);
if
(
eset
.
size
())
{
bool
indes
=
false
;
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
pcard
->
current
.
reason_player
,
PARAM_TYPE_INT
);
if
(
eset
[
i
]
->
check_value_condition
(
3
))
{
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
;
}
}
if
(
indes
)
{
pcard
->
current
.
reason
=
pcard
->
temp
.
reason
;
pcard
->
current
.
reason_effect
=
pcard
->
temp
.
reason_effect
;
pcard
->
current
.
reason_player
=
pcard
->
temp
.
reason_player
;
pcard
->
set_status
(
STATUS_DESTROY_CONFIRMED
,
FALSE
);
targets
->
container
.
erase
(
pcard
);
continue
;
}
}
eset
.
clear
();
pcard
->
filter_effect
(
EFFECT_INDESTRUCTABLE_COUNT
,
&
eset
);
if
(
eset
.
size
())
{
bool
indes
=
false
;
...
...
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