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
9ddd9242
Commit
9ddd9242
authored
Jan 15, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
323b138d
5a7c9657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
libcard.cpp
libcard.cpp
+11
-3
No files found.
libcard.cpp
View file @
9ddd9242
...
...
@@ -2132,6 +2132,10 @@ int32 scriptlib::card_is_msetable(lua_State *L) {
check_param_count
(
L
,
3
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
pcard
->
pduel
->
game_field
->
core
.
effect_damage_step
)
{
lua_pushboolean
(
L
,
FALSE
);
return
1
;
}
uint32
p
=
pcard
->
pduel
->
game_field
->
core
.
reason_player
;
uint32
ign
=
lua_toboolean
(
L
,
2
);
effect
*
peffect
=
nullptr
;
...
...
@@ -2174,7 +2178,7 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
!
(
pcard
->
data
.
type
&
TYPE_SYNCHRO
))
{
if
(
!
(
pcard
->
data
.
type
&
TYPE_SYNCHRO
)
||
pcard
->
pduel
->
game_field
->
core
.
effect_damage_step
)
{
lua_pushboolean
(
L
,
FALSE
);
return
1
;
}
...
...
@@ -2210,7 +2214,7 @@ int32 scriptlib::card_is_xyz_summonable(lua_State *L) {
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
!
(
pcard
->
data
.
type
&
TYPE_XYZ
))
{
if
(
!
(
pcard
->
data
.
type
&
TYPE_XYZ
)
||
pcard
->
pduel
->
game_field
->
core
.
effect_damage_step
)
{
lua_pushboolean
(
L
,
FALSE
);
return
1
;
}
...
...
@@ -2238,7 +2242,7 @@ int32 scriptlib::card_is_link_summonable(lua_State *L) {
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
!
(
pcard
->
data
.
type
&
TYPE_LINK
))
{
if
(
!
(
pcard
->
data
.
type
&
TYPE_LINK
)
||
pcard
->
pduel
->
game_field
->
core
.
effect_damage_step
)
{
lua_pushboolean
(
L
,
FALSE
);
return
1
;
}
...
...
@@ -2274,6 +2278,10 @@ int32 scriptlib::card_is_can_be_summoned(lua_State *L) {
check_param_count
(
L
,
3
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
pcard
->
pduel
->
game_field
->
core
.
effect_damage_step
)
{
lua_pushboolean
(
L
,
FALSE
);
return
1
;
}
uint32
p
=
pcard
->
pduel
->
game_field
->
core
.
reason_player
;
uint32
ign
=
lua_toboolean
(
L
,
2
);
effect
*
peffect
=
nullptr
;
...
...
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