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
c4bc9cad
Commit
c4bc9cad
authored
Sep 23, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Fluorohydride/ygopro#1817
parent
9b3dbc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
processor.cpp
processor.cpp
+8
-0
No files found.
processor.cpp
View file @
c4bc9cad
...
@@ -3450,8 +3450,12 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3450,8 +3450,12 @@ int32 field::process_battle_command(uint16 step) {
group
*
ng
=
pduel
->
new_group
();
group
*
ng
=
pduel
->
new_group
();
ng
->
container
.
swap
(
des
);
ng
->
container
.
swap
(
des
);
ng
->
is_readonly
=
TRUE
;
ng
->
is_readonly
=
TRUE
;
std
::
unordered_map
<
card
*
,
uint32
>*
card_op_params
=
new
std
::
unordered_map
<
card
*
,
uint32
>
;
for
(
auto
cit
=
ng
->
container
.
begin
();
cit
!=
ng
->
container
.
end
();
++
cit
)
card_op_params
->
insert
(
std
::
make_pair
(
*
cit
,
(
*
cit
)
->
operation_param
));
add_process
(
PROCESSOR_DESTROY
,
10
,
0
,
ng
,
REASON_BATTLE
,
PLAYER_NONE
);
add_process
(
PROCESSOR_DESTROY
,
10
,
0
,
ng
,
REASON_BATTLE
,
PLAYER_NONE
);
core
.
units
.
begin
()
->
ptarget
=
ng
;
core
.
units
.
begin
()
->
ptarget
=
ng
;
core
.
units
.
begin
()
->
ptr1
=
card_op_params
;
}
}
return
FALSE
;
return
FALSE
;
}
}
...
@@ -3500,11 +3504,15 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3500,11 +3504,15 @@ int32 field::process_battle_command(uint16 step) {
case
32
:
{
case
32
:
{
group
*
des
=
core
.
units
.
begin
()
->
ptarget
;
group
*
des
=
core
.
units
.
begin
()
->
ptarget
;
if
(
des
)
{
if
(
des
)
{
auto
card_op_params
=
(
std
::
unordered_map
<
card
*
,
uint32
>*
)
core
.
units
.
begin
()
->
ptr1
;
for
(
auto
cit
=
des
->
container
.
begin
();
cit
!=
des
->
container
.
end
();)
{
for
(
auto
cit
=
des
->
container
.
begin
();
cit
!=
des
->
container
.
end
();)
{
auto
rm
=
cit
++
;
auto
rm
=
cit
++
;
(
*
rm
)
->
operation_param
=
card_op_params
->
find
((
*
rm
))
->
second
;
if
((
*
rm
)
->
current
.
location
!=
LOCATION_MZONE
||
((
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
0
]
&&
(
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
1
]))
if
((
*
rm
)
->
current
.
location
!=
LOCATION_MZONE
||
((
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
0
]
&&
(
*
rm
)
->
fieldid_r
!=
core
.
pre_field
[
1
]))
des
->
container
.
erase
(
rm
);
des
->
container
.
erase
(
rm
);
}
}
delete
card_op_params
;
core
.
units
.
begin
()
->
ptr1
=
0
;
add_process
(
PROCESSOR_DESTROY
,
3
,
0
,
des
,
REASON_BATTLE
,
PLAYER_NONE
);
add_process
(
PROCESSOR_DESTROY
,
3
,
0
,
des
,
REASON_BATTLE
,
PLAYER_NONE
);
}
}
adjust_all
();
adjust_all
();
...
...
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