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
2fec8857
Commit
2fec8857
authored
May 30, 2024
by
mercury233
Committed by
GitHub
May 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.IsPlayerCanSpecialSummonMonster (#590)
parent
c40eed7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
libduel.cpp
libduel.cpp
+9
-11
No files found.
libduel.cpp
View file @
2fec8857
...
...
@@ -4358,7 +4358,7 @@ int32 scriptlib::duel_is_player_can_flipsummon(lua_State * L) {
return
1
;
}
int32
scriptlib
::
duel_is_player_can_spsummon_monster
(
lua_State
*
L
)
{
check_param_count
(
L
,
9
);
check_param_count
(
L
,
2
);
int32
playerid
=
(
int32
)
lua_tointeger
(
L
,
1
);
if
(
playerid
!=
0
&&
playerid
!=
1
)
{
lua_pushboolean
(
L
,
0
);
...
...
@@ -4369,21 +4369,19 @@ int32 scriptlib::duel_is_player_can_spsummon_monster(lua_State * L) {
::
read_card
(
code
,
&
dat
);
dat
.
code
=
code
;
dat
.
alias
=
0
;
if
(
!
lua_isnil
(
L
,
3
))
{
uint64
setcode_list
=
lua_tointeger
(
L
,
3
);
dat
.
set_setcode
(
setcode_list
);
}
if
(
!
lua_isnil
(
L
,
4
))
if
(
lua_gettop
(
L
)
>=
3
&&
!
lua_isnil
(
L
,
3
))
dat
.
set_setcode
((
uint64
)
lua_tointeger
(
L
,
3
));
if
(
lua_gettop
(
L
)
>=
4
&&
!
lua_isnil
(
L
,
4
))
dat
.
type
=
(
uint32
)
lua_tointeger
(
L
,
4
);
if
(
!
lua_isnil
(
L
,
5
))
if
(
lua_gettop
(
L
)
>=
5
&&
!
lua_isnil
(
L
,
5
))
dat
.
attack
=
(
int32
)
lua_tointeger
(
L
,
5
);
if
(
!
lua_isnil
(
L
,
6
))
if
(
lua_gettop
(
L
)
>=
6
&&
!
lua_isnil
(
L
,
6
))
dat
.
defense
=
(
int32
)
lua_tointeger
(
L
,
6
);
if
(
!
lua_isnil
(
L
,
7
))
if
(
lua_gettop
(
L
)
>=
7
&&
!
lua_isnil
(
L
,
7
))
dat
.
level
=
(
uint32
)
lua_tointeger
(
L
,
7
);
if
(
!
lua_isnil
(
L
,
8
))
if
(
lua_gettop
(
L
)
>=
8
&&
!
lua_isnil
(
L
,
8
))
dat
.
race
=
(
uint32
)
lua_tointeger
(
L
,
8
);
if
(
!
lua_isnil
(
L
,
9
))
if
(
lua_gettop
(
L
)
>=
9
&&
!
lua_isnil
(
L
,
9
))
dat
.
attribute
=
(
uint32
)
lua_tointeger
(
L
,
9
);
int32
pos
=
POS_FACEUP
;
int32
toplayer
=
playerid
;
...
...
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