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
6b2388ce
Commit
6b2388ce
authored
Apr 20, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2a0a0c6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
c1686814.lua
c1686814.lua
+10
-11
c90884403.lua
c90884403.lua
+10
-11
No files found.
c1686814.lua
View file @
6b2388ce
...
...
@@ -44,29 +44,28 @@ end
function
c1686814
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
4
and
c
:
IsAbleToGraveAsCost
()
end
function
c1686814
.
sprfilter1
(
c
,
ft
,
tp
,
g
)
function
c1686814
.
sprfilter1
(
c
,
tp
,
g
,
sc
)
local
lv
=
c
:
GetLevel
()
if
c
:
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c1686814
.
sprfilter2
,
1
,
c
,
lv
,
ft
,
tp
)
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c1686814
.
sprfilter2
,
1
,
c
,
tp
,
c
,
sc
,
lv
)
end
function
c1686814
.
sprfilter2
(
c
,
lv
,
ft
,
tp
)
return
(
ft
>
0
or
c
:
CheckMZoneFromEx
(
tp
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
function
c1686814
.
sprfilter2
(
c
,
tp
,
mc
,
sc
,
lv
)
local
sg
=
Group
.
FromCards
(
c
,
mc
)
return
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
sc
)
>
0
end
function
c1686814
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
Duel
.
GetLocationCountFromEx
(
tp
)
>-
2
and
g
:
IsExists
(
c1686814
.
sprfilter1
,
1
,
nil
,
ft
,
tp
,
g
)
return
g
:
IsExists
(
c1686814
.
sprfilter1
,
1
,
nil
,
tp
,
g
,
c
)
end
function
c1686814
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
tp
,
g
)
if
g1
:
GetFirst
():
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
local
g1
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter1
,
1
,
1
,
nil
,
tp
,
g
,
c
)
local
mc
=
g1
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
tp
)
local
g2
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter2
,
1
,
1
,
mc
,
tp
,
mc
,
c
,
mc
:
GetLevel
()
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
...
...
c90884403.lua
View file @
6b2388ce
...
...
@@ -49,29 +49,28 @@ end
function
c90884403
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
7
and
c
:
IsAbleToGraveAsCost
()
end
function
c90884403
.
sprfilter1
(
c
,
ft
,
tp
,
g
)
function
c90884403
.
sprfilter1
(
c
,
tp
,
g
,
sc
)
local
lv
=
c
:
GetLevel
()
if
c
:
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c90884403
.
sprfilter2
,
1
,
c
,
lv
,
ft
,
tp
)
return
c
:
IsType
(
TYPE_TUNER
)
and
g
:
IsExists
(
c90884403
.
sprfilter2
,
1
,
c
,
tp
,
c
,
sc
,
lv
)
end
function
c90884403
.
sprfilter2
(
c
,
lv
,
ft
,
tp
)
return
(
ft
>
0
or
c
:
CheckMZoneFromEx
(
tp
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
function
c90884403
.
sprfilter2
(
c
,
tp
,
mc
,
sc
,
lv
)
local
sg
=
Group
.
FromCards
(
c
,
mc
)
return
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
sc
)
>
0
end
function
c90884403
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
Duel
.
GetLocationCountFromEx
(
tp
)
>-
2
and
g
:
IsExists
(
c90884403
.
sprfilter1
,
1
,
nil
,
ft
,
tp
,
g
)
return
g
:
IsExists
(
c90884403
.
sprfilter1
,
1
,
nil
,
tp
,
g
,
c
)
end
function
c90884403
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
tp
,
g
)
if
g1
:
GetFirst
():
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
local
g1
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter1
,
1
,
1
,
nil
,
tp
,
g
,
c
)
local
mc
=
g1
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
tp
)
local
g2
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter2
,
1
,
1
,
mc
,
tp
,
mc
,
c
,
mc
:
GetLevel
()
)
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