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
a4228fd2
Commit
a4228fd2
authored
Apr 18, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e5260f24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
32 deletions
+28
-32
c1686814.lua
c1686814.lua
+14
-16
c90884403.lua
c90884403.lua
+14
-16
No files found.
c1686814.lua
View file @
a4228fd2
...
@@ -41,34 +41,32 @@ function c1686814.initial_effect(c)
...
@@ -41,34 +41,32 @@ function c1686814.initial_effect(c)
e5
:
SetValue
(
1
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c1686814
.
sprfilter
(
c
,
ft
)
function
c1686814
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
4
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
4
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c1686814
.
sprfilter1
(
c
,
ft
,
g
)
function
c1686814
.
sprfilter1
(
c
,
ft
,
tp
,
g
)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
local
chk
=
false
if
c
:
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
if
ft
>
0
or
c
:
CheckMZoneFromEX
()
then
chk
=
true
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
,
lv
,
ft
,
chk
)
end
end
function
c1686814
.
sprfilter2
(
c
,
lv
,
ft
,
chk
)
function
c1686814
.
sprfilter2
(
c
,
lv
,
ft
,
tp
)
return
(
chk
or
ft
>
0
or
c
:
CheckMZoneFromEX
(
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
return
(
ft
>
0
or
c
:
CheckMZoneFromEx
(
tp
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
end
end
function
c1686814
.
sprcon
(
e
,
c
)
function
c1686814
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ft
>-
2
and
g
:
IsExists
(
c1686814
.
sprfilter1
,
1
,
nil
,
ft
,
g
)
return
Duel
.
GetLocationCountFromEx
(
tp
)
>-
2
and
g
:
IsExists
(
c1686814
.
sprfilter1
,
1
,
nil
,
ft
,
tp
,
g
)
end
end
function
c1686814
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c1686814
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
local
g
=
Duel
.
GetMatchingGroup
(
c1686814
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
g
)
local
g1
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
tp
,
g
)
local
chk
=
false
if
g1
:
GetFirst
():
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
if
ft
>
0
or
g1
:
GetFirst
():
CheckMZoneFromEX
()
then
chk
=
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
chk
)
local
g2
=
g
:
FilterSelect
(
tp
,
c1686814
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
tp
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
end
...
...
c90884403.lua
View file @
a4228fd2
...
@@ -46,34 +46,32 @@ function c90884403.initial_effect(c)
...
@@ -46,34 +46,32 @@ function c90884403.initial_effect(c)
e5
:
SetOperation
(
c90884403
.
spop
)
e5
:
SetOperation
(
c90884403
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c90884403
.
sprfilter
(
c
,
ft
)
function
c90884403
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
7
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
7
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c90884403
.
sprfilter1
(
c
,
ft
,
g
)
function
c90884403
.
sprfilter1
(
c
,
ft
,
tp
,
g
)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
local
chk
=
false
if
c
:
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
if
ft
>
0
or
c
:
CheckMZoneFromEX
()
then
chk
=
true
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
,
lv
,
ft
,
chk
)
end
end
function
c90884403
.
sprfilter2
(
c
,
lv
,
ft
,
chk
)
function
c90884403
.
sprfilter2
(
c
,
lv
,
ft
,
tp
)
return
(
chk
or
ft
>
0
or
c
:
CheckMZoneFromEX
(
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
return
(
ft
>
0
or
c
:
CheckMZoneFromEx
(
tp
))
and
c
:
GetLevel
()
==
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
end
end
function
c90884403
.
sprcon
(
e
,
c
)
function
c90884403
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ft
>-
2
and
g
:
IsExists
(
c90884403
.
sprfilter1
,
1
,
nil
,
ft
,
g
)
return
Duel
.
GetLocationCountFromEx
(
tp
)
>-
2
and
g
:
IsExists
(
c90884403
.
sprfilter1
,
1
,
nil
,
ft
,
tp
,
g
)
end
end
function
c90884403
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c90884403
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
)
local
ft
=
Duel
.
GetLocationCountFromEx
(
tp
,
PLAYER_NONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
ft
)
local
g
=
Duel
.
GetMatchingGroup
(
c90884403
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
g
)
local
g1
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter1
,
1
,
1
,
nil
,
ft
,
tp
,
g
)
local
chk
=
false
if
g1
:
GetFirst
():
CheckMZoneFromEx
(
tp
)
then
ft
=
ft
+
1
end
if
ft
>
0
or
g1
:
GetFirst
():
CheckMZoneFromEX
()
then
chk
=
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
chk
)
local
g2
=
g
:
FilterSelect
(
tp
,
c90884403
.
sprfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetLevel
(),
ft
,
tp
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
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