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
8f242405
Commit
8f242405
authored
Feb 02, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
884ee3d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+6
-5
No files found.
ocgcore/libduel.cpp
View file @
8f242405
...
@@ -158,13 +158,14 @@ int32 scriptlib::duel_get_cards_in_zone(lua_State *L) {
...
@@ -158,13 +158,14 @@ int32 scriptlib::duel_get_cards_in_zone(lua_State *L) {
uint32
rplayer
=
lua_tonumberint
(
L
,
1
);
uint32
rplayer
=
lua_tonumberint
(
L
,
1
);
if
(
rplayer
!=
0
&&
rplayer
!=
1
)
if
(
rplayer
!=
0
&&
rplayer
!=
1
)
return
0
;
return
0
;
uint32
zone
=
lua_tonumberint
(
L
,
2
);
uint32
s_zone
=
lua_tonumberint
(
L
,
2
);
uint32
o_zone
=
lua_tonumberint
(
L
,
3
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
field
::
card_set
cset
;
field
::
card_set
cset
;
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
zone
,
rplayer
,
LOCATION_MZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
s_
zone
,
rplayer
,
LOCATION_MZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
zone
,
rplayer
,
LOCATION_SZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
s_
zone
,
rplayer
,
LOCATION_SZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
zone
>>
16
,
1
-
rplayer
,
LOCATION_MZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
o_zone
,
1
-
rplayer
,
LOCATION_MZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
zone
>>
16
,
1
-
rplayer
,
LOCATION_SZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
&
cset
,
o_zone
,
1
-
rplayer
,
LOCATION_SZONE
);
group
*
pgroup
=
pduel
->
new_group
(
cset
);
group
*
pgroup
=
pduel
->
new_group
(
cset
);
interpreter
::
group2value
(
L
,
pgroup
);
interpreter
::
group2value
(
L
,
pgroup
);
return
1
;
return
1
;
...
...
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