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
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-core
Commits
8368ef4f
Commit
8368ef4f
authored
Mar 05, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
864a0e58
37daea2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
libcard.cpp
libcard.cpp
+16
-2
No files found.
libcard.cpp
View file @
8368ef4f
...
@@ -1543,8 +1543,22 @@ int32 scriptlib::card_is_has_effect(lua_State *L) {
...
@@ -1543,8 +1543,22 @@ int32 scriptlib::card_is_has_effect(lua_State *L) {
lua_pushnil
(
L
);
lua_pushnil
(
L
);
return
1
;
return
1
;
}
}
for
(
int32
i
=
0
;
i
<
size
;
++
i
)
int32
check_player
=
PLAYER_NONE
;
interpreter
::
effect2value
(
L
,
eset
[
i
]);
if
(
lua_gettop
(
L
)
>=
3
)
{
check_player
=
lua_tointeger
(
L
,
3
);
if
(
check_player
>
PLAYER_NONE
)
check_player
=
PLAYER_NONE
;
}
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
check_player
==
PLAYER_NONE
||
eset
[
i
]
->
check_count_limit
(
check_player
))
interpreter
::
effect2value
(
L
,
eset
[
i
]);
else
size
--
;
}
if
(
!
size
)
{
lua_pushnil
(
L
);
return
1
;
}
return
size
;
return
size
;
}
}
int32
scriptlib
::
card_reset_effect
(
lua_State
*
L
)
{
int32
scriptlib
::
card_reset_effect
(
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