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
e03c560e
Commit
e03c560e
authored
Mar 06, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ec0a2f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
processor.cpp
processor.cpp
+12
-11
No files found.
processor.cpp
View file @
e03c560e
...
...
@@ -3495,25 +3495,15 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
}
case
29
:
{
group* des = core.units.begin()->ptarget
;
core
.
selfdes_disabled
=
FALSE
;
if
(
core
.
battle_destroy_rep
.
size
())
destroy
(
&
core
.
battle_destroy_rep
,
0
,
REASON_EFFECT
,
PLAYER_NONE
);
if
(
core
.
desrep_chain
.
size
())
add_process
(
PROCESSOR_OPERATION_REPLACE
,
15
,
0
,
0
,
0
,
0
);
if(des) {
card_set::iterator cit, rm;
for(cit = des->container.begin(); cit != des->container.end();) {
rm = cit++;
if((*rm)->current.location != LOCATION_MZONE || ((*rm)->fieldid_r != core.pre_field[0] && (*rm)->fieldid_r != core.pre_field[1]))
des->container.erase(rm);
}
add_process(PROCESSOR_DESTROY, 3, 0, des, REASON_BATTLE, PLAYER_NONE);
}
adjust_all
();
return
FALSE
;
}
case
30
:
{
core.selfdes_disabled = FALSE;
group
*
des
=
core
.
units
.
begin
()
->
ptarget
;
if
(
des
&&
des
->
container
.
size
())
{
for
(
auto
cit
=
des
->
container
.
begin
();
cit
!=
des
->
container
.
end
();
++
cit
)
{
...
...
@@ -3548,6 +3538,17 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
}
case
32
:
{
group
*
des
=
core
.
units
.
begin
()
->
ptarget
;
if
(
des
)
{
card_set
::
iterator
cit
,
rm
;
for
(
cit
=
des
->
container
.
begin
();
cit
!=
des
->
container
.
end
();)
{
rm
=
cit
++
;
if
((
*
rm
)
->
current
.
location
!=
LOCATION_MZONE
||
((
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
0
]
&&
(
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
1
]))
des
->
container
.
erase
(
rm
);
}
add_process
(
PROCESSOR_DESTROY
,
3
,
0
,
des
,
REASON_BATTLE
,
PLAYER_NONE
);
}
adjust_all
();
return
FALSE
;
}
case
33
:
{
...
...
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