Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
292486a2
Commit
292486a2
authored
Dec 02, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto Push by Miyuki
parent
6dddb019
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
85 deletions
+3
-85
expansions/script/c57300000.lua
expansions/script/c57300000.lua
+1
-1
expansions/script/c57300009.lua
expansions/script/c57300009.lua
+2
-84
No files found.
expansions/script/c57300000.lua
View file @
292486a2
...
@@ -165,7 +165,7 @@ function cm.XyzProcedureCustomOperation(xm)
...
@@ -165,7 +165,7 @@ function cm.XyzProcedureCustomOperation(xm)
end
end
end
end
function
cm
.
AddXyzProcedureClariS
(
c
,
ct
,
rk
)
function
cm
.
AddXyzProcedureClariS
(
c
,
ct
,
rk
)
local
f
=
rk
and
cm
.
ClariSRankFilter
or
cm
.
ClariS
Rank
Filter
local
f
=
rk
and
cm
.
ClariSRankFilter
or
cm
.
ClariS
Xyz
Filter
cm
.
AddXyzProcedureCustom
(
c
,
f
,
cm
.
ClariSXyzCheck
(
ct
),
1
,
ct
)
cm
.
AddXyzProcedureCustom
(
c
,
f
,
cm
.
ClariSXyzCheck
(
ct
),
1
,
ct
)
end
end
function
cm
.
ClariSXyzFilter
(
c
,
xyzc
)
function
cm
.
ClariSXyzFilter
(
c
,
xyzc
)
...
...
expansions/script/c57300009.lua
View file @
292486a2
--库拉丽丝-血泪
--库拉丽丝-血泪
function
c57300009
.
initial_effect
(
c
)
function
c57300009
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
xpcall
(
function
()
require
(
"expansions/script/c57300000"
)
end
,
function
()
require
(
"script/c57300000"
)
end
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
miyuki
.
AddXyzProcedureClariS
(
c
,
2
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetLabel
(
2
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c57300009
.
xyzcon
)
e1
:
SetOperation
(
c57300009
.
xyzop
)
e1
:
SetValue
(
SUMMON_TYPE_XYZ
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
57300009
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
57300009
,
0
))
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetCategory
(
CATEGORY_REMOVE
)
...
@@ -23,80 +15,6 @@ function c57300009.initial_effect(c)
...
@@ -23,80 +15,6 @@ function c57300009.initial_effect(c)
e2
:
SetOperation
(
c57300009
.
tdop
)
e2
:
SetOperation
(
c57300009
.
tdop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c57300009
.
mfilter
(
c
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x570
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
c
:
IsXyzLevel
(
xyzc
,
2
)
end
function
c57300009
.
xyzfilter
(
c
,
mg
,
sg
,
ct
,
min
,
max
,
tp
,
xyzc
)
sg
:
AddCard
(
c
)
local
i
=
sg
:
GetCount
()
local
res
=
(
i
>=
min
and
c57300009
.
xyzgoal
(
sg
,
ct
,
tp
,
xyzc
))
or
(
i
<
max
and
mg
:
IsExists
(
c57300009
.
xyzfilter
,
1
,
sg
,
mg
,
sg
,
ct
,
min
,
max
,
tp
,
xyzc
))
sg
:
RemoveCard
(
c
)
return
res
end
function
c57300009
.
xyzgoal
(
g
,
ct
,
tp
,
xyzc
)
local
i
=
g
:
GetCount
()
if
not
g
:
CheckWithSumEqual
(
c57300009
.
xyzval
,
ct
,
i
,
i
)
then
return
false
end
--to be changed in mr4
--return Duel.GetLocationCountFromEx(tp,tp,g,xyzc)>0
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
xyzc
)
>
0
end
function
c57300009
.
xyzval
(
c
)
local
v
=
1
if
c
:
IsHasEffect
(
57300021
)
then
v
=
v
+
0x20000
end
return
v
end
function
c57300009
.
xyzcon
(
e
,
c
,
og
,
min
,
max
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
nil
if
og
then
mg
=
og
:
Filter
(
c57300009
.
mfilter
,
nil
,
c
)
else
mg
=
Duel
.
GetMatchingGroup
(
c57300009
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
)
end
local
ct
=
e
:
GetLabel
()
local
sg
=
Group
.
CreateGroup
()
local
min
=
min
or
1
local
max
=
max
and
math.min
(
max
,
ct
)
or
ct
return
min
<=
max
and
mg
:
IsExists
(
c57300009
.
xyzfilter
,
1
,
sg
,
mg
,
sg
,
ct
,
min
,
max
,
tp
,
c
)
end
function
c57300009
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
min
,
max
)
local
mg
=
nil
if
og
then
if
not
min
then
local
tg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
og
)
do
tg
:
Merge
(
tc
:
GetOverlayGroup
())
end
c
:
SetMaterial
(
og
)
Duel
.
SendtoGrave
(
tg
,
REASON_RULE
)
Duel
.
Overlay
(
c
,
og
)
return
end
mg
=
og
:
Filter
(
c57300009
.
mfilter
,
nil
,
c
)
else
mg
=
Duel
.
GetMatchingGroup
(
c57300009
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
)
end
local
ct
=
e
:
GetLabel
()
local
sg
=
Group
.
CreateGroup
()
local
min
=
min
or
1
local
max
=
max
and
math.min
(
max
,
ct
)
or
ct
local
i
=
sg
:
GetCount
()
repeat
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
mg
:
FilterSelect
(
tp
,
c57300009
.
xyzfilter
,
1
,
1
,
sg
,
mg
,
sg
,
ct
,
min
,
max
,
tp
,
c
)
sg
:
Merge
(
g
)
i
=
sg
:
GetCount
()
until
i
>=
max
or
(
i
>=
min
and
c57300009
.
xyzgoal
(
sg
,
ct
,
tp
,
xyzc
)
and
not
(
mg
:
IsExists
(
c57300009
.
xyzfilter
,
1
,
sg
,
mg
,
sg
,
ct
,
min
,
max
,
tp
,
c
)
and
Duel
.
SelectYesNo
(
tp
,
210
)))
local
tg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
sg
)
do
tg
:
Merge
(
tc
:
GetOverlayGroup
())
end
c
:
SetMaterial
(
sg
)
Duel
.
SendtoGrave
(
tg
,
REASON_RULE
)
Duel
.
Overlay
(
c
,
sg
)
end
function
c57300009
.
tdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57300009
.
tdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
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