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
d99cd148
Commit
d99cd148
authored
May 17, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
038ecdfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
operations.cpp
operations.cpp
+22
-2
No files found.
operations.cpp
View file @
d99cd148
...
@@ -2527,7 +2527,8 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2527,7 +2527,8 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
}
}
case
23
:
{
case
23
:
{
effect
*
peffect
=
core
.
units
.
begin
()
->
peffect
;
effect
*
peffect
=
core
.
units
.
begin
()
->
peffect
;
card
*
pcard
=
*
core
.
units
.
begin
()
->
ptarget
->
it
;
group
*
pgroup
=
core
.
units
.
begin
()
->
ptarget
;
card
*
pcard
=
*
pgroup
->
it
;
pcard
->
enable_field_effect
(
false
);
pcard
->
enable_field_effect
(
false
);
pcard
->
current
.
reason
=
REASON_SPSUMMON
;
pcard
->
current
.
reason
=
REASON_SPSUMMON
;
pcard
->
current
.
reason_effect
=
peffect
;
pcard
->
current
.
reason_effect
=
peffect
;
...
@@ -2535,7 +2536,26 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2535,7 +2536,26 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
pcard
->
summon_player
=
sumplayer
;
pcard
->
summon_player
=
sumplayer
;
pcard
->
summon_info
=
(
peffect
->
get_value
(
pcard
)
&
0xff00ffff
)
|
SUMMON_TYPE_SPECIAL
|
((
uint32
)
pcard
->
current
.
location
<<
16
);
pcard
->
summon_info
=
(
peffect
->
get_value
(
pcard
)
&
0xff00ffff
)
|
SUMMON_TYPE_SPECIAL
|
((
uint32
)
pcard
->
current
.
location
<<
16
);
check_card_counter
(
pcard
,
3
,
sumplayer
);
check_card_counter
(
pcard
,
3
,
sumplayer
);
move_to_field
(
pcard
,
sumplayer
,
sumplayer
,
LOCATION_MZONE
,
POS_FACEUP
);
uint32
zone
=
0xff
;
if
(
core
.
duel_rule
>=
4
)
{
uint32
flag1
,
flag2
;
int32
ct1
=
pduel
->
game_field
->
get_tofield_count
(
sumplayer
,
LOCATION_MZONE
,
zone
,
&
flag1
);
int32
ct2
=
pduel
->
game_field
->
get_spsummonable_count_fromex
(
pcard
,
sumplayer
,
zone
,
&
flag2
);
for
(
auto
it
=
pgroup
->
it
;
it
!=
pgroup
->
container
.
end
();
++
it
)
{
if
((
*
it
)
->
current
.
location
!=
LOCATION_EXTRA
)
ct1
--
;
else
ct2
--
;
}
if
(
pcard
->
current
.
location
!=
LOCATION_EXTRA
)
{
if
(
ct2
==
0
)
zone
=
~
flag1
&
flag2
;
}
else
{
if
(
ct1
==
0
)
zone
=
flag1
&
~
flag2
;
}
}
move_to_field
(
pcard
,
sumplayer
,
sumplayer
,
LOCATION_MZONE
,
POS_FACEUP
,
FALSE
,
0
,
FALSE
,
zone
);
return
FALSE
;
return
FALSE
;
}
}
case
24
:
{
case
24
:
{
...
...
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