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
39906673
Commit
39906673
authored
Jan 13, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duel.SSet
parent
4f2b0cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
operations.cpp
operations.cpp
+3
-7
No files found.
operations.cpp
View file @
39906673
...
@@ -2352,7 +2352,7 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
...
@@ -2352,7 +2352,7 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
card_set
*
set_cards
=
new
card_set
;
card_set
*
set_cards
=
new
card_set
;
core
.
operated_set
.
clear
();
core
.
operated_set
.
clear
();
for
(
auto
&
target
:
ptarget
->
container
)
{
for
(
auto
&
target
:
ptarget
->
container
)
{
if
((
!
(
target
->
data
.
type
&
TYPE_FIELD
)
&&
get_useable_count
(
NULL
,
toplayer
,
LOCATION_SZONE
,
setplayer
,
LOCATION_REASON_TOFIELD
)
<=
0
)
if
((
!
(
target
->
data
.
type
&
TYPE_FIELD
)
&&
get_useable_count
(
target
,
toplayer
,
LOCATION_SZONE
,
setplayer
,
LOCATION_REASON_TOFIELD
)
<=
0
)
||
(
target
->
data
.
type
&
TYPE_MONSTER
&&
!
target
->
is_affected_by_effect
(
EFFECT_MONSTER_SSET
))
||
(
target
->
data
.
type
&
TYPE_MONSTER
&&
!
target
->
is_affected_by_effect
(
EFFECT_MONSTER_SSET
))
||
(
target
->
current
.
location
==
LOCATION_SZONE
)
||
(
target
->
current
.
location
==
LOCATION_SZONE
)
||
(
!
is_player_can_sset
(
setplayer
,
target
))
||
(
!
is_player_can_sset
(
setplayer
,
target
))
...
@@ -2387,16 +2387,12 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
...
@@ -2387,16 +2387,12 @@ int32 field::sset_g(uint16 step, uint8 setplayer, uint8 toplayer, group* ptarget
case
1
:
{
case
1
:
{
card_set
*
set_cards
=
(
card_set
*
)
ptarget
;
card_set
*
set_cards
=
(
card_set
*
)
ptarget
;
card
*
target
=
*
set_cards
->
begin
();
card
*
target
=
*
set_cards
->
begin
();
uint32
flag
;
int32
ct
=
get_useable_count
(
target
,
toplayer
,
LOCATION_SZONE
,
setplayer
,
LOCATION_REASON_TOFIELD
,
0xff
,
&
flag
);
if
(
ct
<=
0
)
{
core
.
units
.
begin
()
->
step
=
2
;
return
FALSE
;
}
if
(
target
->
data
.
type
&
TYPE_FIELD
)
{
if
(
target
->
data
.
type
&
TYPE_FIELD
)
{
returns
.
bvalue
[
2
]
=
5
;
returns
.
bvalue
[
2
]
=
5
;
return
FALSE
;
return
FALSE
;
}
}
uint32
flag
;
get_useable_count
(
target
,
toplayer
,
LOCATION_SZONE
,
setplayer
,
LOCATION_REASON_TOFIELD
,
0xff
,
&
flag
);
flag
|=
core
.
set_group_used_zones
;
flag
|=
core
.
set_group_used_zones
;
if
(
setplayer
==
toplayer
)
{
if
(
setplayer
==
toplayer
)
{
flag
=
((
flag
&
0xff
)
<<
8
)
|
0xffff00ff
;
flag
=
((
flag
&
0xff
)
<<
8
)
|
0xffff00ff
;
...
...
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