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
800a8810
Commit
800a8810
authored
Jul 01, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix get_draw_count
close Fluorohydride/ygopro-scripts#1412
parent
259732f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
field.cpp
field.cpp
+6
-3
No files found.
field.cpp
View file @
800a8810
...
...
@@ -1798,10 +1798,13 @@ int32 field::get_summon_count_limit(uint8 playerid) {
}
int32
field
::
get_draw_count
(
uint8
playerid
)
{
effect_set
eset
;
filter_player_effect
(
infos
.
turn_player
,
EFFECT_DRAW_COUNT
,
&
eset
);
filter_player_effect
(
playerid
,
EFFECT_DRAW_COUNT
,
&
eset
);
int32
count
=
player
[
playerid
].
draw_count
;
if
(
eset
.
size
())
count
=
eset
.
get_last
()
->
get_value
();
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
int32
c
=
eset
[
i
]
->
get_value
();
if
(
c
>
count
)
count
=
c
;
}
return
count
;
}
void
field
::
get_ritual_material
(
uint8
playerid
,
effect
*
peffect
,
card_set
*
material
)
{
...
...
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