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
3f2b334a
Commit
3f2b334a
authored
Jul 30, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push false when checking S/X/L summonable...
...for non-S/X/L monsters
parent
2035bd6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
libcard.cpp
libcard.cpp
+12
-6
No files found.
libcard.cpp
View file @
3f2b334a
...
@@ -1973,8 +1973,10 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
...
@@ -1973,8 +1973,10 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
check_param_count(L, 2);
check_param_count(L, 2);
check_param(L, PARAM_TYPE_CARD, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
if
(
!
(
pcard
->
data
.
type
&
TYPE_SYNCHRO
))
if(!(pcard->data.type & TYPE_SYNCHRO)) {
return
0
;
lua_pushboolean(L, FALSE);
return 1;
}
card* tuner = 0;
card* tuner = 0;
group* mg = 0;
group* mg = 0;
if(!lua_isnil(L, 2)) {
if(!lua_isnil(L, 2)) {
...
@@ -2005,8 +2007,10 @@ int32 scriptlib::card_is_xyz_summonable(lua_State *L) {
...
@@ -2005,8 +2007,10 @@ int32 scriptlib::card_is_xyz_summonable(lua_State *L) {
check_param_count(L, 2);
check_param_count(L, 2);
check_param(L, PARAM_TYPE_CARD, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
if
(
!
(
pcard
->
data
.
type
&
TYPE_XYZ
))
if(!(pcard->data.type & TYPE_XYZ)) {
return
0
;
lua_pushboolean(L, FALSE);
return 1;
}
group* materials = 0;
group* materials = 0;
if(!lua_isnil(L, 2)) {
if(!lua_isnil(L, 2)) {
check_param(L, PARAM_TYPE_GROUP, 2);
check_param(L, PARAM_TYPE_GROUP, 2);
...
@@ -2029,8 +2033,10 @@ int32 scriptlib::card_is_link_summonable(lua_State *L) {
...
@@ -2029,8 +2033,10 @@ int32 scriptlib::card_is_link_summonable(lua_State *L) {
check_param_count(L, 2);
check_param_count(L, 2);
check_param(L, PARAM_TYPE_CARD, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**)lua_touserdata(L, 1);
card* pcard = *(card**)lua_touserdata(L, 1);
if
(
!
(
pcard
->
data
.
type
&
TYPE_LINK
))
if(!(pcard->data.type & TYPE_LINK)) {
return
0
;
lua_pushboolean(L, FALSE);
return 1;
}
group* materials = 0;
group* materials = 0;
card* lcard = 0;
card* lcard = 0;
if(!lua_isnil(L, 2)) {
if(!lua_isnil(L, 2)) {
...
...
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