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
d2193e30
Commit
d2193e30
authored
Apr 18, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fb6f13bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
interpreter.cpp
interpreter.cpp
+1
-1
libcard.cpp
libcard.cpp
+10
-10
No files found.
interpreter.cpp
View file @
d2193e30
...
@@ -232,7 +232,7 @@ static const struct luaL_Reg cardlib[] = {
...
@@ -232,7 +232,7 @@ static const struct luaL_Reg cardlib[] = {
{
"ResetNegateEffect"
,
scriptlib
::
card_reset_negate_effect
},
{
"ResetNegateEffect"
,
scriptlib
::
card_reset_negate_effect
},
{
"AssumeProperty"
,
scriptlib
::
card_assume_prop
},
{
"AssumeProperty"
,
scriptlib
::
card_assume_prop
},
{
"SetSPSummonOnce"
,
scriptlib
::
card_set_spsummon_once
},
{
"SetSPSummonOnce"
,
scriptlib
::
card_set_spsummon_once
},
{
"CheckMZoneFromE
X
"
,
scriptlib
::
card_check_mzone_from_ex
},
{
"CheckMZoneFromE
x
"
,
scriptlib
::
card_check_mzone_from_ex
},
{
NULL
,
NULL
}
{
NULL
,
NULL
}
};
};
...
...
libcard.cpp
View file @
d2193e30
...
@@ -2453,17 +2453,17 @@ int32 scriptlib::card_set_spsummon_once(lua_State *L) {
...
@@ -2453,17 +2453,17 @@ int32 scriptlib::card_set_spsummon_once(lua_State *L) {
return
0
;
return
0
;
}
}
int32
scriptlib
::
card_check_mzone_from_ex
(
lua_State
*
L
)
{
int32
scriptlib
::
card_check_mzone_from_ex
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
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
);
card
::
card_set
linked_cards
;
int32
playerid
=
lua_tointeger
(
L
,
2
)
;
for
(
int32
playerid
=
0
;
playerid
<
2
;
++
playerid
)
{
duel
*
pduel
=
pcard
->
pduel
;
uint32
linked_zone
=
pcard
->
pduel
->
game_field
->
core
.
duel_rule
>=
4
?
pcard
->
pduel
->
game_field
->
get_linked_zone
(
playerid
)
|
(
1u
<<
5
)
|
(
1u
<<
6
)
:
0x1f
;
field
::
card_set
linked_cards
;
pcard
->
pduel
->
game_field
->
get_cards_in_zone
(
&
linked_cards
,
linked_zone
,
playerid
)
;
uint32
linked_zone
=
pduel
->
game_field
->
core
.
duel_rule
>=
4
?
pduel
->
game_field
->
get_linked_zone
(
playerid
)
|
(
1u
<<
5
)
|
(
1u
<<
6
)
:
0x1f
;
if
(
linked_cards
.
find
(
pcard
)
!=
linked_cards
.
end
())
pduel
->
game_field
->
get_cards_in_zone
(
&
linked_cards
,
linked_zone
,
playerid
);
lua_pushboolean
(
L
,
1
);
if
(
linked_cards
.
find
(
pcard
)
!=
linked_cards
.
end
())
else
lua_pushboolean
(
L
,
1
);
lua_pushboolean
(
L
,
0
);
else
}
lua_pushboolean
(
L
,
0
);
return
1
;
return
1
;
}
}
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