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
ec0026c4
Commit
ec0026c4
authored
Feb 23, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
field::special_summon(), field::solve_continuous()
parent
7b4174e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
operations.cpp
operations.cpp
+2
-2
processor.cpp
processor.cpp
+3
-1
No files found.
operations.cpp
View file @
ec0026c4
...
@@ -2556,8 +2556,8 @@ int32 field::special_summon(uint16 step, effect * reason_effect, uint8 reason_pl
...
@@ -2556,8 +2556,8 @@ int32 field::special_summon(uint16 step, effect * reason_effect, uint8 reason_pl
if
(
summontype
&&
(
*
cit
)
->
material_cards
.
size
())
{
if
(
summontype
&&
(
*
cit
)
->
material_cards
.
size
())
{
int32
matreason
=
(
summontype
==
SUMMON_TYPE_FUSION
)
?
REASON_FUSION
:
(
summontype
==
SUMMON_TYPE_RITUAL
)
?
REASON_RITUAL
:
(
summontype
==
SUMMON_TYPE_XYZ
)
?
REASON_XYZ
:
0
;
int32
matreason
=
(
summontype
==
SUMMON_TYPE_FUSION
)
?
REASON_FUSION
:
(
summontype
==
SUMMON_TYPE_RITUAL
)
?
REASON_RITUAL
:
(
summontype
==
SUMMON_TYPE_XYZ
)
?
REASON_XYZ
:
0
;
for
(
auto
mit
=
(
*
cit
)
->
material_cards
.
begin
();
mit
!=
(
*
cit
)
->
material_cards
.
end
();
++
mit
)
for
(
auto
mit
=
(
*
cit
)
->
material_cards
.
begin
();
mit
!=
(
*
cit
)
->
material_cards
.
end
();
++
mit
)
raise_single_event
(
*
mit
,
&
targets
->
container
,
EVENT_BE_MATERIAL
,
core
.
reason_effect
,
matreason
,
core
.
reason_player
,
(
*
cit
)
->
summon_player
,
0
);
raise_single_event
(
*
mit
,
&
targets
->
container
,
EVENT_BE_MATERIAL
,
(
*
cit
)
->
current
.
reason_effect
,
matreason
,
(
*
cit
)
->
current
.
reason_player
,
(
*
cit
)
->
summon_player
,
0
);
raise_event
(
&
((
*
cit
)
->
material_cards
),
EVENT_BE_MATERIAL
,
core
.
reason_effect
,
matreason
,
core
.
reason_player
,
(
*
cit
)
->
summon_player
,
0
);
raise_event
(
&
((
*
cit
)
->
material_cards
),
EVENT_BE_MATERIAL
,
reason_effect
,
matreason
,
reason_player
,
(
*
cit
)
->
summon_player
,
0
);
}
}
}
}
process_single_event
();
process_single_event
();
...
...
processor.cpp
View file @
ec0026c4
...
@@ -4466,10 +4466,12 @@ int32 field::solve_continuous(uint16 step, effect * peffect, uint8 triggering_pl
...
@@ -4466,10 +4466,12 @@ int32 field::solve_continuous(uint16 step, effect * peffect, uint8 triggering_pl
if
(
oit
->
second
.
op_cards
)
if
(
oit
->
second
.
op_cards
)
pduel
->
delete_group
(
oit
->
second
.
op_cards
);
pduel
->
delete_group
(
oit
->
second
.
op_cards
);
}
}
auto
ev
=
core
.
solving_event
.
front
();
core
.
continuous_chain
.
pop_back
();
core
.
continuous_chain
.
pop_back
();
core
.
solving_event
.
pop_front
();
core
.
solving_event
.
pop_front
();
core
.
conti_solving
=
FALSE
;
core
.
conti_solving
=
FALSE
;
adjust_all
();
if
(
ev
.
event_code
!=
EVENT_ADJUST
)
adjust_all
();
if
(
core
.
conti_player
==
PLAYER_NONE
)
if
(
core
.
conti_player
==
PLAYER_NONE
)
core
.
conti_player
=
infos
.
turn_player
;
core
.
conti_player
=
infos
.
turn_player
;
if
(
core
.
conti_player
==
infos
.
turn_player
)
{
if
(
core
.
conti_player
==
infos
.
turn_player
)
{
...
...
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