Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
2d9657cd
Commit
2d9657cd
authored
May 20, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
46c9851a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
c4068622.lua
c4068622.lua
+4
-2
c77387463.lua
c77387463.lua
+1
-1
c78509901.lua
c78509901.lua
+1
-1
No files found.
c4068622.lua
View file @
2d9657cd
...
...
@@ -31,7 +31,7 @@ end
function
c4068622
.
spfilter1
(
c
,
ft
,
tp
)
if
c
:
GetSequence
()
<
5
then
ft
=
ft
+
1
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x33
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemove
()
and
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c4068622
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
ft
)
and
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c4068622
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
function
c4068622
.
spfilter2
(
c
,
ft
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemove
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
...
...
@@ -46,8 +46,10 @@ function c4068622.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c4068622
.
spfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
,
tp
)
local
tc
=
g1
:
GetFirst
()
if
tc
:
GetSequence
()
<
5
then
ft
=
ft
+
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c4068622
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
()
,
ft
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c4068622
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
g1
:
Merge
(
g2
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
...
...
c77387463.lua
View file @
2d9657cd
...
...
@@ -51,7 +51,7 @@ function c77387463.spop(e,tp,eg,ep,ev,re,r,rp,c)
if
ft
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
g
=
mg
:
Select
(
tp
,
2
,
2
,
nil
)
elseif
ft
>-
2
then
elseif
ft
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
g
=
mg
:
FilterSelect
(
tp
,
c77387463
.
mzfilter
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c78509901.lua
View file @
2d9657cd
...
...
@@ -48,7 +48,7 @@ function c78509901.spop(e,tp,eg,ep,ev,re,r,rp,c)
if
ft
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
g
=
mg
:
Select
(
tp
,
2
,
2
,
nil
)
elseif
ft
>-
2
then
elseif
ft
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
g
=
mg
:
FilterSelect
(
tp
,
c78509901
.
mzfilter
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
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