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
70c1b51e
Commit
70c1b51e
authored
Dec 02, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto Push by Miyuki
parent
2ddf27e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
38 deletions
+5
-38
expansions/script/c57300025.lua
expansions/script/c57300025.lua
+4
-37
expansions/script/c57320008.lua
expansions/script/c57320008.lua
+1
-1
No files found.
expansions/script/c57300025.lua
View file @
70c1b51e
--库拉丽丝-翩翩
xpcall
(
function
()
require
(
"expansions/script/c57300000"
)
end
,
function
()
require
(
"script/c57300000"
)
end
)
function
c57300025
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--fusion material
...
...
@@ -81,7 +82,7 @@ function c57300025.fscon(e,g,gc,chkfnf)
if
not
c57300025
.
fsfilter
(
gc
,
fc
)
then
return
false
end
sg
:
AddCard
(
gc
)
end
return
c57300025
.
CheckGroup
(
mg
,
c57300025
.
fgoal
,
sg
,
1
,
5
,
e
:
GetHandler
(),
e
:
GetHandlerPlayer
(),
chkf
)
return
miyuki
.
CheckGroup
(
mg
,
c57300025
.
fgoal
,
sg
,
1
,
5
,
e
:
GetHandler
(),
e
:
GetHandlerPlayer
(),
chkf
)
end
function
c57300025
.
val
(
c
)
return
(
0x10000
*
c
:
GetOverlayCount
())
+
1
...
...
@@ -98,43 +99,9 @@ function c57300025.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
local
fs
=
false
local
chkf
=
(
chkfnf
&
0xff
)
local
mg
=
eg
:
Filter
(
c57300025
.
fsfilter
,
nil
,
e
:
GetHandler
())
local
tg
=
c57300025
.
SelectGroup
(
tp
,
HINTMSG_FMATERIAL
,
mg
,
c57300025
.
fgoal
,
sg
,
1
,
5
,
e
:
GetHandler
(),
tp
,
chkf
)
local
tg
=
miyuki
.
SelectGroup
(
tp
,
HINTMSG_FMATERIAL
,
mg
,
c57300025
.
fgoal
,
sg
,
1
,
5
,
e
:
GetHandler
(),
tp
,
chkf
)
Duel
.
SetFusionMaterial
(
tg
)
end
function
c57300025
.
CheckGroupRecursive
(
c
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
sg
:
AddCard
(
c
)
local
ct
=
sg
:
GetCount
()
local
res
=
(
ct
>=
min
and
f
(
sg
,
table.unpack
(
ext_params
)))
or
(
ct
<
max
and
g
:
IsExists
(
c57300025
.
CheckGroupRecursive
,
1
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
))
sg
:
RemoveCard
(
c
)
return
res
end
function
c57300025
.
CheckGroup
(
g
,
f
,
cg
,
min
,
max
,
...
)
local
min
=
min
or
1
local
max
=
max
or
g
:
GetCount
()
if
min
>
max
then
return
false
end
local
ext_params
=
{
...
}
local
sg
=
Group
.
CreateGroup
()
if
cg
then
sg
:
Merge
(
cg
)
end
local
ct
=
sg
:
GetCount
()
if
ct
>=
min
and
ct
<
max
and
f
(
sg
,
...
)
then
return
true
end
return
g
:
IsExists
(
c57300025
.
CheckGroupRecursive
,
1
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
end
function
c57300025
.
SelectGroup
(
tp
,
desc
,
g
,
f
,
cg
,
min
,
max
,
...
)
local
min
=
min
or
1
local
max
=
max
or
g
:
GetCount
()
local
ext_params
=
{
...
}
local
sg
=
Group
.
CreateGroup
()
if
cg
then
sg
:
Merge
(
cg
)
end
local
ct
=
sg
:
GetCount
()
while
ct
<
max
and
not
(
ct
>=
min
and
f
(
sg
,
...
)
and
not
(
g
:
IsExists
(
c57300025
.
CheckGroupRecursive
,
1
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
and
Duel
.
SelectYesNo
(
tp
,
210
)))
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
desc
)
local
tg
=
g
:
FilterSelect
(
tp
,
c57300025
.
CheckGroupRecursive
,
1
,
1
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
sg
:
Merge
(
tg
)
ct
=
sg
:
GetCount
()
end
return
sg
end
function
c57300025
.
spfilter
(
c
,
e
,
tp
)
if
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
return
c
:
IsSetCard
(
0x570
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -186,7 +153,7 @@ function c57300025.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
(
g
:
GetFirst
():
GetOriginalType
()
&
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
((
cat
|
CATEGORY_SPECIAL_SUMMON
))
else
e
:
SetCategory
((
cat
&
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)
))
e
:
SetCategory
((
cat
&
~
CATEGORY_SPECIAL_SUMMON
))
end
end
function
c57300025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c57320008.lua
View file @
70c1b51e
...
...
@@ -31,7 +31,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
(
g
:
GetFirst
():
GetOriginalType
()
&
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
((
cat
|
CATEGORY_SPECIAL_SUMMON
))
else
e
:
SetCategory
((
cat
&
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)
))
e
:
SetCategory
((
cat
&
~
CATEGORY_SPECIAL_SUMMON
))
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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