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
3e796fc9
Commit
3e796fc9
authored
May 20, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
d99cd148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
operations.cpp
operations.cpp
+4
-4
No files found.
operations.cpp
View file @
3e796fc9
...
@@ -2539,8 +2539,8 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2539,8 +2539,8 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
uint32
zone
=
0xff
;
uint32
zone
=
0xff
;
if
(
core
.
duel_rule
>=
4
)
{
if
(
core
.
duel_rule
>=
4
)
{
uint32
flag1
,
flag2
;
uint32
flag1
,
flag2
;
int32
ct1
=
pduel
->
game_field
->
get_tofield_count
(
sumplayer
,
LOCATION_MZONE
,
zone
,
&
flag1
);
int32
ct1
=
get_tofield_count
(
sumplayer
,
LOCATION_MZONE
,
zone
,
&
flag1
);
int32
ct2
=
pduel
->
game_field
->
get_spsummonable_count_fromex
(
pcard
,
sumplayer
,
zone
,
&
flag2
);
int32
ct2
=
get_spsummonable_count_fromex
(
pcard
,
sumplayer
,
zone
,
&
flag2
);
for
(
auto
it
=
pgroup
->
it
;
it
!=
pgroup
->
container
.
end
();
++
it
)
{
for
(
auto
it
=
pgroup
->
it
;
it
!=
pgroup
->
container
.
end
();
++
it
)
{
if
((
*
it
)
->
current
.
location
!=
LOCATION_EXTRA
)
if
((
*
it
)
->
current
.
location
!=
LOCATION_EXTRA
)
ct1
--
;
ct1
--
;
...
@@ -2549,10 +2549,10 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2549,10 +2549,10 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
}
}
if
(
pcard
->
current
.
location
!=
LOCATION_EXTRA
)
{
if
(
pcard
->
current
.
location
!=
LOCATION_EXTRA
)
{
if
(
ct2
==
0
)
if
(
ct2
==
0
)
zone
=
~
flag1
&
flag2
;
zone
=
flag2
;
}
else
{
}
else
{
if
(
ct1
==
0
)
if
(
ct1
==
0
)
zone
=
flag1
&
~
flag2
;
zone
=
flag1
;
}
}
}
}
move_to_field
(
pcard
,
sumplayer
,
sumplayer
,
LOCATION_MZONE
,
POS_FACEUP
,
FALSE
,
0
,
FALSE
,
zone
);
move_to_field
(
pcard
,
sumplayer
,
sumplayer
,
LOCATION_MZONE
,
POS_FACEUP
,
FALSE
,
0
,
FALSE
,
zone
);
...
...
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