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
xiaoye
ygopro-core
Commits
89d5e316
Commit
89d5e316
authored
Dec 31, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.GetLocationCountFromEx
parent
7c9d72a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
libduel.cpp
libduel.cpp
+20
-3
No files found.
libduel.cpp
View file @
89d5e316
...
...
@@ -1899,10 +1899,22 @@ int32 scriptlib::duel_get_location_count_fromex(lua_State *L) {
}
swapped
=
true
;
}
bool
use_temp_card
=
false
;
card
*
scard
=
0
;
if
(
lua_gettop
(
L
)
>=
4
)
{
check_param
(
L
,
PARAM_TYPE_CARD
,
4
);
scard
=
*
(
card
**
)
lua_touserdata
(
L
,
4
);
if
(
lua_gettop
(
L
)
>=
4
&&
!
lua_isnil
(
L
,
4
))
{
if
(
check_param
(
L
,
PARAM_TYPE_CARD
,
4
,
TRUE
))
{
scard
=
*
(
card
**
)
lua_touserdata
(
L
,
4
);
}
else
{
use_temp_card
=
true
;
uint32
type
=
lua_tointeger
(
L
,
4
);
scard
=
pduel
->
game_field
->
temp_card
;
scard
->
current
.
location
=
LOCATION_EXTRA
;
scard
->
data
.
type
=
TYPE_MONSTER
|
type
;
if
(
type
&
TYPE_PENDULUM
)
scard
->
current
.
position
=
POS_FACEUP_DEFENSE
;
else
scard
->
current
.
position
=
POS_FACEDOWN_DEFENSE
;
}
}
uint32
zone
=
0xff
;
if
(
lua_gettop
(
L
)
>=
5
)
...
...
@@ -1916,6 +1928,11 @@ int32 scriptlib::duel_get_location_count_fromex(lua_State *L) {
pduel
->
game_field
->
player
[
0
].
list_mzone
.
swap
(
list_mzone
[
0
]);
pduel
->
game_field
->
player
[
1
].
list_mzone
.
swap
(
list_mzone
[
1
]);
}
if
(
use_temp_card
)
{
scard
->
current
.
location
=
0
;
scard
->
data
.
type
=
0
;
scard
->
current
.
position
=
0
;
}
return
2
;
}
int32
scriptlib
::
duel_get_usable_mzone_count
(
lua_State
*
L
)
{
...
...
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