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
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
八宫一月
ygopro-scripts
Commits
ee6b9f38
Commit
ee6b9f38
authored
Sep 29, 2018
by
mercury233
Committed by
GitHub
Sep 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
85604b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
7 deletions
+38
-7
c52101615.lua
c52101615.lua
+38
-7
No files found.
c52101615.lua
View file @
ee6b9f38
...
@@ -22,12 +22,33 @@ function c52101615.subcon(e)
...
@@ -22,12 +22,33 @@ function c52101615.subcon(e)
return
e
:
GetHandler
():
IsLocation
(
0x1e
)
return
e
:
GetHandler
():
IsLocation
(
0x1e
)
end
end
function
c52101615
.
filter
(
c
,
e
,
tp
,
m
,
gc
,
chkf
)
function
c52101615
.
filter
(
c
,
e
,
tp
,
m
,
gc
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
if
not
(
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
then
return
false
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
gc
,
chkf
)
Auxiliary
.
FCheckAdditional
=
c52101615
.
fccheck
(
#
m
)
local
res
=
c
:
CheckFusionMaterial
(
m
,
gc
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
return
res
end
function
c52101615
.
fccheck
(
ct
)
return
function
(
tp
,
sg
,
fc
)
return
#
sg
==
ct
end
end
end
function
c52101615
.
mfilter
(
c
,
tp
)
function
c52101615
.
mfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
function
c52101615
.
fselect
(
c
,
tp
,
rg
,
sg
,
e
,
gc
,
chkf
)
sg
:
AddCard
(
c
)
local
res
=
c52101615
.
fgoal
(
tp
,
sg
,
e
,
gc
,
chkf
)
or
rg
:
IsExists
(
c52101615
.
fselect
,
1
,
sg
,
tp
,
rg
,
sg
,
e
,
gc
,
chkf
)
sg
:
RemoveCard
(
c
)
return
res
end
function
c52101615
.
fgoal
(
tp
,
sg
,
e
,
gc
,
chkf
)
if
sg
:
GetCount
()
>
0
then
if
not
Duel
.
IsExistingMatchingCard
(
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
sg
,
gc
,
chkf
)
then
return
false
end
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c52101615
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52101615
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
@@ -35,18 +56,28 @@ end
...
@@ -35,18 +56,28 @@ end
function
c52101615
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52101615
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
+
0x100
local
chkf
=
tp
+
0x100
local
g
=
Group
.
FromCards
(
c
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
1
then
return
false
end
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
return
mg
:
IsExists
(
c52101615
.
fselect
,
1
,
c
,
tp
,
mg
,
g
,
e
,
c
,
chkf
)
end
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
while
true
do
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
local
rg
=
mg
:
Filter
(
c52101615
.
fselect
,
g
,
tp
,
mg
,
g
,
e
,
c
,
chkf
)
Duel
.
Release
(
mat
,
REASON_COST
)
if
#
rg
==
0
then
break
end
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
local
min
=
1
if
c52101615
.
fgoal
(
tp
,
g
,
e
,
c
,
chkf
)
then
min
=
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
FilterSelect
(
tp
,
c52101615
.
fselect
,
1
,
1
,
g
,
tp
,
rg
,
g
,
e
,
c
,
chkf
)
if
#
sg
==
0
then
break
end
g
:
Merge
(
sg
)
end
local
fg
=
Duel
.
SelectMatchingCard
(
tp
,
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g
,
c
,
chkf
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
fg
:
GetFirst
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c52101615
.
filter2
(
c
,
e
,
tp
,
code
)
function
c52101615
.
filter2
(
c
,
e
,
tp
,
code
)
...
...
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