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
9f6248b2
Commit
9f6248b2
authored
Jul 12, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset extra params after calling card::is_special_summonable
close #333
parent
d096b929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
card.cpp
card.cpp
+0
-11
libcard.cpp
libcard.cpp
+17
-3
No files found.
card.cpp
View file @
9f6248b2
...
...
@@ -3118,17 +3118,6 @@ int32 card::is_special_summonable(uint8 playerid, uint32 summon_type) {
}
effect_set
eset
;
filter_spsummon_procedure
(
playerid
,
&
eset
,
summon_type
);
pduel
->
game_field
->
core
.
limit_tuner
=
0
;
pduel
->
game_field
->
core
.
limit_syn
=
0
;
pduel
->
game_field
->
core
.
limit_syn_minc
=
0
;
pduel
->
game_field
->
core
.
limit_syn_maxc
=
0
;
pduel
->
game_field
->
core
.
limit_xyz
=
0
;
pduel
->
game_field
->
core
.
limit_xyz_minc
=
0
;
pduel
->
game_field
->
core
.
limit_xyz_maxc
=
0
;
pduel
->
game_field
->
core
.
limit_link
=
0
;
pduel
->
game_field
->
core
.
limit_link_card
=
0
;
pduel
->
game_field
->
core
.
limit_link_minc
=
0
;
pduel
->
game_field
->
core
.
limit_link_maxc
=
0
;
pduel
->
game_field
->
restore_lp_cost
();
return
eset
.
size
();
}
...
...
libcard.cpp
View file @
9f6248b2
...
...
@@ -2031,7 +2031,12 @@ int32 scriptlib::card_is_synchro_summonable(lua_State *L) {
pcard
->
pduel
->
game_field
->
core
.
limit_syn
=
mg
;
pcard
->
pduel
->
game_field
->
core
.
limit_syn_minc
=
minc
;
pcard
->
pduel
->
game_field
->
core
.
limit_syn_maxc
=
maxc
;
lua_pushboolean
(
L
,
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_SYNCHRO
));
int32
res
=
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_SYNCHRO
);
pcard
->
pduel
->
game_field
->
core
.
limit_tuner
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_syn
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_syn_minc
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_syn_maxc
=
0
;
lua_pushboolean
(
L
,
res
);
return
1
;
}
int32
scriptlib
::
card_is_xyz_summonable
(
lua_State
*
L
)
{
...
...
@@ -2057,7 +2062,11 @@ int32 scriptlib::card_is_xyz_summonable(lua_State *L) {
pcard
->
pduel
->
game_field
->
core
.
limit_xyz
=
materials
;
pcard
->
pduel
->
game_field
->
core
.
limit_xyz_minc
=
minc
;
pcard
->
pduel
->
game_field
->
core
.
limit_xyz_maxc
=
maxc
;
lua_pushboolean
(
L
,
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_XYZ
));
int32
res
=
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_XYZ
);
pcard
->
pduel
->
game_field
->
core
.
limit_xyz
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_xyz_minc
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_xyz_maxc
=
0
;
lua_pushboolean
(
L
,
res
);
return
1
;
}
int32
scriptlib
::
card_is_link_summonable
(
lua_State
*
L
)
{
...
...
@@ -2091,7 +2100,12 @@ int32 scriptlib::card_is_link_summonable(lua_State *L) {
pcard
->
pduel
->
game_field
->
core
.
limit_link_card
=
lcard
;
pcard
->
pduel
->
game_field
->
core
.
limit_link_minc
=
minc
;
pcard
->
pduel
->
game_field
->
core
.
limit_link_maxc
=
maxc
;
lua_pushboolean
(
L
,
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_LINK
));
int32
res
=
pcard
->
is_special_summonable
(
p
,
SUMMON_TYPE_LINK
);
pcard
->
pduel
->
game_field
->
core
.
limit_link
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_link_card
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_link_minc
=
0
;
pcard
->
pduel
->
game_field
->
core
.
limit_link_maxc
=
0
;
lua_pushboolean
(
L
,
res
);
return
1
;
}
int32
scriptlib
::
card_is_can_be_summoned
(
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