Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
5c3181a1
Commit
5c3181a1
authored
Nov 22, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updc
parent
c12d91c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+18
-0
No files found.
ocgcore/operations.cpp
View file @
5c3181a1
...
@@ -2890,6 +2890,24 @@ int32 field::special_summon_step(uint16 step, group* targets, card* target, uint
...
@@ -2890,6 +2890,24 @@ int32 field::special_summon_step(uint16 step, group* targets, card* target, uint
target
->
enable_field_effect
(
false
);
target
->
enable_field_effect
(
false
);
check_card_counter
(
target
,
3
,
target
->
summon_player
);
check_card_counter
(
target
,
3
,
target
->
summon_player
);
uint32
move_player
=
(
target
->
data
.
type
&
TYPE_TOKEN
)
?
target
->
owner
:
target
->
summon_player
;
uint32
move_player
=
(
target
->
data
.
type
&
TYPE_TOKEN
)
?
target
->
owner
:
target
->
summon_player
;
if
(
targets
&&
core
.
duel_rule
>=
4
)
{
uint32
flag1
,
flag2
;
int32
ct1
=
get_tofield_count
(
playerid
,
LOCATION_MZONE
,
target
->
summon_player
,
LOCATION_REASON_TOFIELD
,
zone
,
&
flag1
);
int32
ct2
=
get_spsummonable_count_fromex
(
target
,
playerid
,
target
->
summon_player
,
zone
,
&
flag2
);
for
(
auto
it
=
targets
->
container
.
begin
();
it
!=
targets
->
container
.
end
();
++
it
)
{
if
((
*
it
)
->
current
.
location
!=
LOCATION_EXTRA
)
ct1
--
;
else
ct2
--
;
}
if
(
target
->
current
.
location
!=
LOCATION_EXTRA
)
{
if
(
ct2
==
0
)
zone
=
flag2
;
}
else
{
if
(
ct1
==
0
)
zone
=
flag1
;
}
}
move_to_field
(
target
,
move_player
,
playerid
,
LOCATION_MZONE
,
positions
,
FALSE
,
0
,
FALSE
,
zone
);
move_to_field
(
target
,
move_player
,
playerid
,
LOCATION_MZONE
,
positions
,
FALSE
,
0
,
FALSE
,
zone
);
return
FALSE
;
return
FALSE
;
}
}
...
...
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