Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
e5260f24
You need to sign in or sign up before continuing.
Commit
e5260f24
authored
Apr 18, 2017
by
nekrozar
Committed by
VanillaSalt
Apr 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#850)
parent
92e28d37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
20 deletions
+38
-20
c1686814.lua
c1686814.lua
+20
-11
c90884403.lua
c90884403.lua
+18
-9
No files found.
c1686814.lua
View file @
e5260f24
...
...
@@ -41,25 +41,34 @@ function c1686814.initial_effect(c)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
end
function
c1686814
.
sprfilter1
(
c
,
tp
)
function
c1686814
.
sprfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
4
and
c
:
IsAbleToGraveAsCost
()
end
function
c1686814
.
sprfilter1
(
c
,
ft
,
g
)
local
lv
=
c
:
GetLevel
()
return
lv
>
4
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c1686814
.
sprfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
lv
)
local
chk
=
false
if
ft
>
0
or
c
:
CheckMZoneFromEX
()
then
chk
=
true
end
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c1686814
.
sprfilter2
,
1
,
c
,
lv
,
ft
,
chk
)
end
function
c1686814
.
sprfilter2
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToGraveAsCost
(
)
function
c1686814
.
sprfilter2
(
c
,
lv
,
ft
,
chk
)
return
(
chk
or
ft
>
0
or
c
:
CheckMZoneFromEX
())
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
end
function
c1686814
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingMatchingCard
(
c1686814
.
sprfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
return
ft
>-
2
and
g
:
IsExists
(
c1686814
.
sprfilter1
,
1
,
nil
,
ft
,
g
)
end
function
c1686814
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c1686814
.
sprfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g1
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
g
)
local
chk
=
false
if
ft
>
0
or
g1
:
GetFirst
():
CheckMZoneFromEX
()
then
chk
=
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c1686814
.
sprfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
g1
:
GetFirst
():
GetLevel
()
)
local
g2
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
chk
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
...
...
@@ -71,12 +80,12 @@ function c1686814.spfilter(c,e,tp)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c1686814
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
FromEx
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c1686814
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c1686814
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
FromEx
(
tp
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1686814
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
c90884403.lua
View file @
e5260f24
...
...
@@ -46,25 +46,34 @@ function c90884403.initial_effect(c)
e5
:
SetOperation
(
c90884403
.
spop
)
c
:
RegisterEffect
(
e5
)
end
function
c90884403
.
sprfilter1
(
c
,
tp
)
function
c90884403
.
sprfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
7
and
c
:
IsAbleToGraveAsCost
()
end
function
c90884403
.
sprfilter1
(
c
,
ft
,
g
)
local
lv
=
c
:
GetLevel
()
return
lv
>
7
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c90884403
.
sprfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
lv
)
local
chk
=
false
if
ft
>
0
or
c
:
CheckMZoneFromEX
()
then
chk
=
true
end
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c90884403
.
sprfilter2
,
1
,
c
,
lv
,
ft
,
chk
)
end
function
c90884403
.
sprfilter2
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToGraveAsCost
(
)
function
c90884403
.
sprfilter2
(
c
,
lv
,
ft
,
chk
)
return
(
chk
or
ft
>
0
or
c
:
CheckMZoneFromEX
())
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
end
function
c90884403
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingMatchingCard
(
c90884403
.
sprfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
return
ft
>-
2
and
g
:
IsExists
(
c90884403
.
sprfilter1
,
1
,
nil
,
ft
,
g
)
end
function
c90884403
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c90884403
.
sprfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g1
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
g
)
local
chk
=
false
if
ft
>
0
or
g1
:
GetFirst
():
CheckMZoneFromEX
()
then
chk
=
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c90884403
.
sprfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
g1
:
GetFirst
():
GetLevel
()
)
local
g2
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
chk
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
...
...
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