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
851b3ec2
Commit
851b3ec2
authored
Mar 11, 2018
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
21940594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
field.cpp
field.cpp
+16
-4
No files found.
field.cpp
View file @
851b3ec2
...
@@ -1634,13 +1634,25 @@ int32 field::check_release_list(uint8 playerid, int32 count, int32 use_con, int3
...
@@ -1634,13 +1634,25 @@ int32 field::check_release_list(uint8 playerid, int32 count, int32 use_con, int3
}
}
}
}
}
}
bool
ex_oneof
=
false
;
for
(
auto
cit
=
player
[
1
-
playerid
].
list_mzone
.
begin
();
cit
!=
player
[
1
-
playerid
].
list_mzone
.
end
();
++
cit
)
{
for
(
auto
cit
=
player
[
1
-
playerid
].
list_mzone
.
begin
();
cit
!=
player
[
1
-
playerid
].
list_mzone
.
end
();
++
cit
)
{
card
*
pcard
=
*
cit
;
card
*
pcard
=
*
cit
;
if
(
pcard
&&
pcard
!=
exc
&&
!
(
exg
&&
exg
->
has_card
(
pcard
))
&&
(
!
use_con
||
pcard
->
is_position
(
POS_FACEUP
))
&&
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RELEASE
)
if
(
pcard
&&
pcard
!=
exc
&&
!
(
exg
&&
exg
->
has_card
(
pcard
))
&&
(
!
use_con
||
pcard
->
is_position
(
POS_FACEUP
))
&&
pcard
->
is_releasable_by_nonsummon
(
playerid
)
&&
(
!
use_con
||
pduel
->
lua
->
check_matching
(
pcard
,
fun
,
exarg
)))
{
&&
pcard
->
is_releasable_by_nonsummon
(
playerid
)
&&
(
!
use_con
||
pduel
->
lua
->
check_matching
(
pcard
,
fun
,
exarg
)))
{
count
--
;
pcard
->
release_param
=
1
;
if
(
count
==
0
)
if
(
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RELEASE
))
{
return
TRUE
;
count
--
;
if
(
count
==
0
)
return
TRUE
;
}
else
if
(
!
ex_oneof
)
{
effect
*
peffect
=
pcard
->
is_affected_by_effect
(
EFFECT_EXTRA_RELEASE_NONSUM
);
if
(
!
peffect
||
(
peffect
->
is_flag
(
EFFECT_FLAG_COUNT_LIMIT
)
&&
peffect
->
count_limit
==
0
))
continue
;
ex_oneof
=
true
;
count
--
;
if
(
count
==
0
)
return
TRUE
;
}
}
}
}
}
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