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
f45868bb
Commit
f45868bb
authored
Nov 10, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push by Appveyor
parent
f622e917
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
30 deletions
+30
-30
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c10113020.lua
expansions/script/c10113020.lua
+1
-1
expansions/script/c10113030.lua
expansions/script/c10113030.lua
+1
-1
expansions/script/c10113040.lua
expansions/script/c10113040.lua
+1
-1
expansions/script/c10113048.lua
expansions/script/c10113048.lua
+2
-2
expansions/script/c10113050.lua
expansions/script/c10113050.lua
+1
-1
expansions/script/c10173011.lua
expansions/script/c10173011.lua
+2
-2
expansions/script/c10173016.lua
expansions/script/c10173016.lua
+4
-4
expansions/script/c10173054.lua
expansions/script/c10173054.lua
+2
-2
expansions/script/c10173061.lua
expansions/script/c10173061.lua
+3
-3
expansions/script/c10173062.lua
expansions/script/c10173062.lua
+3
-3
expansions/script/c10173063.lua
expansions/script/c10173063.lua
+6
-6
expansions/script/c10173066.lua
expansions/script/c10173066.lua
+2
-2
expansions/script/c10173068.lua
expansions/script/c10173068.lua
+2
-2
No files found.
expansions/222DIY.cdb
View file @
f45868bb
No preview for this file type
expansions/script/c10113020.lua
View file @
f45868bb
...
@@ -31,7 +31,7 @@ function c10113020.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,7 +31,7 @@ function c10113020.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
end
function
c10113020
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10113020
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
expansions/script/c10113030.lua
View file @
f45868bb
...
@@ -51,7 +51,7 @@ function c10113030.filter(c,e,tp)
...
@@ -51,7 +51,7 @@ function c10113030.filter(c,e,tp)
return
c
:
IsCode
(
10113040
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
10113040
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c10113030
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10113030
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10113030
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c10113030
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
...
...
expansions/script/c10113040.lua
View file @
f45868bb
...
@@ -63,7 +63,7 @@ function c10113040.filter(c,e,tp)
...
@@ -63,7 +63,7 @@ function c10113040.filter(c,e,tp)
return
c
:
IsCode
(
10113050
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
10113050
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c10113040
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10113040
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10113040
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c10113040
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
...
...
expansions/script/c10113048.lua
View file @
f45868bb
...
@@ -69,7 +69,7 @@ function c10113048.thfilter2(c)
...
@@ -69,7 +69,7 @@ function c10113048.thfilter2(c)
end
end
function
c10113048
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c10113048
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
Get
MZoneCount
(
tp
)
local
ft
=
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_ONFIELD
local
loc
=
LOCATION_ONFIELD
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeEffectTarget
,
tp
,
loc
,
0
,
c
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeEffectTarget
,
tp
,
loc
,
0
,
c
,
e
)
...
@@ -97,7 +97,7 @@ function c10113048.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -97,7 +97,7 @@ function c10113048.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
and
Duel
.
Get
MZoneCount
(
tp
)
<=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_HAND
)
then
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
return
...
...
expansions/script/c10113050.lua
View file @
f45868bb
...
@@ -55,7 +55,7 @@ function c10113050.filter(c,e,tp)
...
@@ -55,7 +55,7 @@ function c10113050.filter(c,e,tp)
return
c
:
IsCode
(
10113030
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
10113030
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c10113050
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10113050
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10113040
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c10113040
.
filter
,
tp
,
0x13
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
...
...
expansions/script/c10173011.lua
View file @
f45868bb
...
@@ -83,7 +83,7 @@ function c10173011.spfilter(c)
...
@@ -83,7 +83,7 @@ function c10173011.spfilter(c)
end
end
function
c10173011
.
hspcon
(
e
,
c
)
function
c10173011
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
ft
=
Duel
.
Get
MZoneCount
(
c
:
GetControler
()
)
local
ft
=
Duel
.
Get
LocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173011
.
spfilter
,
c
:
GetControler
(),
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173011
.
spfilter
,
c
:
GetControler
(),
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
if
ft
>
0
then
return
if
ft
>
0
then
return
g
:
GetCount
()
>=
2
g
:
GetCount
()
>=
2
...
@@ -92,7 +92,7 @@ function c10173011.hspcon(e,c)
...
@@ -92,7 +92,7 @@ function c10173011.hspcon(e,c)
end
end
end
end
function
c10173011
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c10173011
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
,
sg
=
Duel
.
Get
MZoneCount
(
tp
)
local
ft
,
sg
=
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173011
.
spfilter
,
c
:
GetControler
(),
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173011
.
spfilter
,
c
:
GetControler
(),
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
if
ft
>
0
then
if
ft
>
0
then
...
...
expansions/script/c10173016.lua
View file @
f45868bb
...
@@ -26,7 +26,7 @@ function c10173016.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c10173016.initial_effect(c)
end
end
function
c10173016
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c10173016
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
Get
MZoneCount
(
tp
)
local
ft
=
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_ONFIELD
local
loc
=
LOCATION_ONFIELD
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeEffectTarget
,
tp
,
loc
,
0
,
c
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeEffectTarget
,
tp
,
loc
,
0
,
c
,
e
)
...
@@ -54,7 +54,7 @@ function c10173016.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c10173016.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
and
Duel
.
Get
MZoneCount
(
tp
)
<=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_HAND
)
then
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
return
...
@@ -69,7 +69,7 @@ function c10173016.setcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function c10173016.setcon(e,tp,eg,ep,ev,re,r,rp)
return
true
return
true
end
end
function
c10173016
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173016
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
,
ft1
,
ft2
,
ct
=
e
:
GetHandler
(),
Duel
.
Get
MZoneCount
(
tp
,
LOCATION_SZONE
),
Duel
.
GetLocationCount
(
tp
),
e
:
GetLabel
()
local
c
,
ft1
,
ft2
,
ct
=
e
:
GetHandler
(),
Duel
.
Get
LocationCount
(
tp
,
LOCATION_SZONE
),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
),
e
:
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173016
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
ft1
,
ft2
,
ct
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173016
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
ft1
,
ft2
,
ct
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
end
...
@@ -77,7 +77,7 @@ function c10173016.setfilter(c,e,tp,ft1,ft2,ct)
...
@@ -77,7 +77,7 @@ function c10173016.setfilter(c,e,tp,ft1,ft2,ct)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
not
c
:
IsForbidden
()
and
(
ft1
>
0
or
(
ft2
>
0
and
ct
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
not
c
:
IsForbidden
()
and
(
ft1
>
0
or
(
ft2
>
0
and
ct
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
end
end
function
c10173016
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10173016
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
,
ft1
,
ft2
,
ct
=
e
:
GetHandler
(),
Duel
.
Get
MZoneCount
(
tp
,
LOCATION_SZONE
),
Duel
.
GetLocationCount
(
tp
),
e
:
GetLabel
()
local
c
,
ft1
,
ft2
,
ct
=
e
:
GetHandler
(),
Duel
.
Get
LocationCount
(
tp
,
LOCATION_SZONE
),
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
),
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
10173016
,
4
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
10173016
,
4
))
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c10173016
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ft1
,
ft2
,
ct
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c10173016
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ft1
,
ft2
,
ct
):
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
...
...
expansions/script/c10173054.lua
View file @
f45868bb
...
@@ -51,12 +51,12 @@ function c10173054.filter(c,e,tp)
...
@@ -51,12 +51,12 @@ function c10173054.filter(c,e,tp)
return
c
:
IsCode
(
10113017
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
10113017
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c10173054
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173054
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>-
1
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c10173054
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c10173054
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c10173054
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10173054
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Get
MZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c10173054
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c10173054
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
...
...
expansions/script/c10173061.lua
View file @
f45868bb
...
@@ -45,7 +45,7 @@ function c10173061.spfilter(c,e,tp)
...
@@ -45,7 +45,7 @@ function c10173061.spfilter(c,e,tp)
end
end
function
c10173061
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173061
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173061
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
and
c
:
IsAbleToRemove
()
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173061
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
and
c
:
IsAbleToRemove
()
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
...
@@ -54,7 +54,7 @@ function c10173061.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c10173061.spop2(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c10173061
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c10173061
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
Remove
(
Group
.
FromCards
(
c
,
tc
),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
(
tc
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsLocation
(
LOCATION_REMOVED
))
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
then
if
tc
and
Duel
.
Remove
(
Group
.
FromCards
(
c
,
tc
),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
(
tc
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsLocation
(
LOCATION_REMOVED
))
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173061
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173061
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -70,7 +70,7 @@ function c10173061.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +70,7 @@ function c10173061.spcon(e,tp,eg,ep,ev,re,r,rp)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c10173061
.
cfilter
,
1
,
nil
,
tp
)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c10173061
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c10173061
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173061
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
end
end
...
...
expansions/script/c10173062.lua
View file @
f45868bb
...
@@ -45,7 +45,7 @@ function c10173062.spfilter(c,e,tp)
...
@@ -45,7 +45,7 @@ function c10173062.spfilter(c,e,tp)
end
end
function
c10173062
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173062
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173062
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
and
c
:
IsAbleToRemove
()
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10173062
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
and
c
:
IsAbleToRemove
()
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
...
@@ -54,7 +54,7 @@ function c10173062.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c10173062.spop2(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c10173062
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c10173062
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
Remove
(
Group
.
FromCards
(
c
,
tc
),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
(
tc
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsLocation
(
LOCATION_REMOVED
))
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
then
if
tc
and
Duel
.
Remove
(
Group
.
FromCards
(
c
,
tc
),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
(
tc
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsLocation
(
LOCATION_REMOVED
))
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173062
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173062
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -70,7 +70,7 @@ function c10173062.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +70,7 @@ function c10173062.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c10173062
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c10173062
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c10173062
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173062
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
end
end
...
...
expansions/script/c10173063.lua
View file @
f45868bb
...
@@ -35,13 +35,13 @@ function c10173063.spfilter2(c,e,tp)
...
@@ -35,13 +35,13 @@ function c10173063.spfilter2(c,e,tp)
end
end
function
c10173063
.
sptg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173063
.
sptg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
c10173063
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
c
,
e
,
tp
)
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
end
if
chk
==
0
then
return
c
:
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
c10173063
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
c
,
e
,
tp
)
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0x13
)
end
end
function
c10173063
.
spop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10173063
.
spop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173063
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173063
.
spfilter2
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -57,7 +57,7 @@ function c10173063.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,7 +57,7 @@ function c10173063.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c10173063
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173063
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
)
return
g
:
GetCount
()
>
1
and
g
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0xc332
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
return
g
:
GetCount
()
>
1
and
g
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0xc332
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_GRAVE
)
...
@@ -72,7 +72,7 @@ function c10173063.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,7 +72,7 @@ function c10173063.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
g2
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
g1
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
==
2
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
g1
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
==
2
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
@@ -81,12 +81,12 @@ function c10173063.spfilter(c,e,tp)
...
@@ -81,12 +81,12 @@ function c10173063.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c10173063
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173063
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10173063
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c10173063
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c10173063
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10173063
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Get
MZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173063
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10173063
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c10173066.lua
View file @
f45868bb
...
@@ -105,7 +105,7 @@ function c10173066.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -105,7 +105,7 @@ function c10173066.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c10173066
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c10173066
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c10173066
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c10173066
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>-
1
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c10173066
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c10173066
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c10173066
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c10173066
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -115,7 +115,7 @@ end
...
@@ -115,7 +115,7 @@ end
function
c10173066
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10173066
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Get
MZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
GetFlagEffect
(
10173066
)
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10173066
,
3
))
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
GetFlagEffect
(
10173066
)
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10173066
,
3
))
then
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
...
...
expansions/script/c10173068.lua
View file @
f45868bb
...
@@ -57,7 +57,7 @@ function c10173068.cfilter(c,code)
...
@@ -57,7 +57,7 @@ function c10173068.cfilter(c,code)
end
end
function
c10173068
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10173068
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
and
c
:
GetFlagEffect
(
10173068
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
10173068
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
10173068
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
10173068
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
...
@@ -80,7 +80,7 @@ function c10173068.aop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +80,7 @@ function c10173068.aop(e,tp,eg,ep,ev,re,r,rp)
e
:
SetLabel
(
ac
)
e
:
SetLabel
(
ac
)
e
:
GetHandler
():
RegisterFlagEffect
(
10173068
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
10173068
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173068
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
,
ac
)
local
g
=
Duel
.
GetMatchingGroup
(
c10173068
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
,
ac
)
if
g
:
GetCount
()
>
0
and
Duel
.
Get
MZoneCount
(
tp
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10173068
,
2
))
then
if
g
:
GetCount
()
>
0
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10173068
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
...
...
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