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
3f95cba3
Commit
3f95cba3
authored
Apr 26, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1262 from sidschingis/patch-4
multiple EFFECT_MAX_ZONE effects
parents
944665f1
2a2eb2dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ocgcore/field.cpp
ocgcore/field.cpp
+5
-1
No files found.
ocgcore/field.cpp
View file @
3f95cba3
...
@@ -476,7 +476,11 @@ int32 field::get_useable_count(uint8 playerid, uint8 location, uint8 uplayer, ui
...
@@ -476,7 +476,11 @@ int32 field::get_useable_count(uint8 playerid, uint8 location, uint8 uplayer, ui
pduel
->
lua
->
add_param
(
playerid
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
playerid
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
uplayer
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
uplayer
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
PARAM_TYPE_INT
);
int32
max
=
eset
.
get_last
()
->
get_value
(
3
);
int32
max
=
eset
[
0
]
->
get_value
(
3
);
for
(
int32
i
=
1
;
i
<
eset
.
size
();
++
i
)
{
if
(
max
>
eset
[
i
]
->
get_value
(
3
))
max
=
eset
[
i
]
->
get_value
(
3
);
}
int32
block
=
5
-
field_used_count
[
flag
];
int32
block
=
5
-
field_used_count
[
flag
];
int32
limit
=
max
-
field_used_count
[
used_flag
];
int32
limit
=
max
-
field_used_count
[
used_flag
];
return
block
<
limit
?
block
:
limit
;
return
block
<
limit
?
block
:
limit
;
...
...
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