Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
083ff8e2
Commit
083ff8e2
authored
Mar 31, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
60b56db5
Pipeline
#34433
passed with stages
in 65 minutes and 28 seconds
Changes
29
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
136 additions
and
130 deletions
+136
-130
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c12847402.lua
expansions/script/c12847402.lua
+3
-4
expansions/script/c1300900.lua
expansions/script/c1300900.lua
+19
-19
expansions/script/c1300901.lua
expansions/script/c1300901.lua
+62
-59
expansions/script/c18700806.lua
expansions/script/c18700806.lua
+2
-2
expansions/script/c31750001.lua
expansions/script/c31750001.lua
+1
-1
expansions/script/c31750041.lua
expansions/script/c31750041.lua
+4
-3
expansions/script/c31750061.lua
expansions/script/c31750061.lua
+0
-1
expansions/script/c5012622.lua
expansions/script/c5012622.lua
+3
-3
expansions/script/c5012633.lua
expansions/script/c5012633.lua
+3
-0
expansions/script/c5012738.lua
expansions/script/c5012738.lua
+2
-1
expansions/script/c96071017.lua
expansions/script/c96071017.lua
+1
-1
expansions/script/c96071035.lua
expansions/script/c96071035.lua
+2
-2
expansions/script/c96071037.lua
expansions/script/c96071037.lua
+2
-2
expansions/script/c96071039.lua
expansions/script/c96071039.lua
+2
-2
expansions/script/c96071042.lua
expansions/script/c96071042.lua
+2
-2
expansions/script/c96071086.lua
expansions/script/c96071086.lua
+2
-2
expansions/script/c96071089.lua
expansions/script/c96071089.lua
+2
-2
expansions/script/c96071091.lua
expansions/script/c96071091.lua
+1
-1
expansions/script/c96071094.lua
expansions/script/c96071094.lua
+2
-2
expansions/script/c96071097.lua
expansions/script/c96071097.lua
+2
-2
expansions/script/c96071102.lua
expansions/script/c96071102.lua
+2
-2
expansions/script/c96071106.lua
expansions/script/c96071106.lua
+5
-5
expansions/script/c96071114.lua
expansions/script/c96071114.lua
+2
-2
expansions/script/c96071116.lua
expansions/script/c96071116.lua
+2
-2
expansions/script/c96071119.lua
expansions/script/c96071119.lua
+2
-2
expansions/script/c96071121.lua
expansions/script/c96071121.lua
+2
-2
expansions/script/c96071127.lua
expansions/script/c96071127.lua
+2
-2
expansions/script/c96071131.lua
expansions/script/c96071131.lua
+2
-2
No files found.
expansions/FiNALE.cdb
View file @
083ff8e2
No preview for this file type
expansions/script/c12847402.lua
View file @
083ff8e2
...
@@ -38,8 +38,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,8 +38,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
cm
.
spfilter
,
nil
,
e
,
tp
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
cm
.
spfilter
,
nil
,
e
,
tp
)
if
#
og
<=
0
then
return
end
if
#
og
<=
0
then
return
end
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
...
@@ -68,8 +67,8 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,8 +67,8 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
local
cg
=
spg
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
spg
:
Filter
(
Card
.
IsFacedown
,
nil
)
if
#
cg
>
0
then
if
#
cg
>
0
and
cg
:
GetFirst
():
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
g
)
end
end
end
end
end
end
...
...
expansions/script/c1300900.lua
View file @
083ff8e2
--妮蒂亚
--妮蒂亚
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
0
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
0
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
0
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e
0
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e
1
:
SetRange
(
LOCATION_HAND
)
e
0
:
SetRange
(
LOCATION_HAND
)
e
1
:
SetCountLimit
(
1
,
id
)
e
0
:
SetCountLimit
(
1
,
id
)
e
1
:
SetCost
(
s
.
cost
)
e
0
:
SetCost
(
s
.
cost
)
e
1
:
SetOperation
(
s
.
operation
)
e
0
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
0
)
end
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
...
@@ -17,18 +17,18 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,18 +17,18 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
0
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
1
:
SetCode
(
EVENT_ADJUST
)
e
0
:
SetCode
(
EVENT_ADJUST
)
e
1
:
SetOperation
(
s
.
adjustop
)
e
0
:
SetOperation
(
s
.
adjustop
)
e
1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e
0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
1
,
true
)
Duel
.
RegisterEffect
(
e
0
,
true
)
end
end
function
s
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
ct
=
g
:
GetCount
()
-
6
local
ct
=
g
1
:
GetCount
()
-
6
if
ct
>
0
then
if
ct
>
0
then
local
sg
=
g
:
RandomSelect
(
1
-
tp
,
ct
)
local
g2
=
g1
:
RandomSelect
(
1
-
tp
,
ct
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g2
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
expansions/script/c1300901.lua
View file @
083ff8e2
--栖夜莉丝
--栖夜莉丝
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
0
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
0
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
0
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e
0
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e
1
:
SetRange
(
LOCATION_HAND
)
e
0
:
SetRange
(
LOCATION_HAND
)
e
1
:
SetCountLimit
(
1
,
id
)
e
0
:
SetCountLimit
(
1
,
id
)
e
1
:
SetCost
(
s
.
cost
)
e
0
:
SetCost
(
s
.
cost
)
e
1
:
SetOperation
(
s
.
operation
)
e
0
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
0
)
end
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
...
@@ -23,76 +23,79 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,76 +23,79 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
if
opt
==
2
then
ct
=
TYPE_XYZ
end
if
opt
==
2
then
ct
=
TYPE_XYZ
end
if
opt
==
3
then
ct
=
TYPE_LINK
end
if
opt
==
3
then
ct
=
TYPE_LINK
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetLabel
(
ct
)
e0
:
SetCondition
(
s
.
con1
)
e0
:
SetOperation
(
s
.
op1
)
e0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e0
,
tp
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_
SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_
PREDRAW
)
e1
:
Set
Label
(
ct
)
e1
:
Set
CountLimit
(
1
)
e1
:
SetCondition
(
s
.
regcon
)
e1
:
SetCondition
(
s
.
con2
)
e1
:
SetOperation
(
s
.
regop
)
e1
:
SetOperation
(
s
.
op2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PREDRAW
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetOperation
(
s
.
spop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
s
.
filter
(
c
,
sp
,
tpe
)
function
s
.
filter
(
c
,
sp
,
tpe
)
return
c
:
IsSummonPlayer
(
sp
)
and
c
:
IsType
(
tpe
)
return
c
:
IsSummonPlayer
(
sp
)
and
c
:
IsType
(
tpe
)
end
end
function
s
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
end
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
0
,
LOCATION_EXTRA
,
nil
,
e
:
GetLabel
())
local
g
1
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
0
,
LOCATION_EXTRA
,
nil
,
e
:
GetLabel
())
if
g
:
GetCount
()
>
0
then
if
g
1
:
GetCount
()
>
0
then
local
rg
=
g
:
RandomSelect
(
1
-
tp
,
2
)
local
g2
=
g1
:
RandomSelect
(
1
-
tp
,
2
)
local
tc
=
rg
:
GetFirst
()
local
tc
=
g2
:
GetFirst
()
while
tc
do
while
tc
do
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e0
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e0
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e0
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e0
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
2
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
2
)
tc
=
rg
:
GetNext
()
tc
=
g2
:
GetNext
()
end
end
end
end
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
function
s
.
spfilter1
(
c
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
c
:
GetFlagEffect
(
id
)
>
0
end
function
s
.
spfilter2
(
c
)
return
c
:
GetFlagEffect
(
id
)
>
0
return
c
:
GetFlagEffect
(
id
)
>
0
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
c
:
GetFlagEffect
(
id
)
>
0
end
function
s
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
1
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
nil
,
e
,
tp
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
local
sg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
s
.
spfilter1
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
sg
:
GetCount
()
>
0
then
if
g1
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
sg
)
Duel
.
ConfirmCards
(
tp
,
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
1
,
nil
,
e
,
tp
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter2
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g2
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
ShuffleExtra
(
1
-
tp
)
Duel
.
ShuffleExtra
(
1
-
tp
)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
rg
:
GetCount
()
>
0
then
for
tc
in
aux
.
Next
(
rg
)
do
tc
:
ResetFlagEffect
(
id
)
end
end
end
end
end
end
end
end
s
.
skipop
(
e
,
tp
)
end
function
s
.
skipop
(
e
,
tp
)
local
g1
=
Duel
.
GetMatchingGroup
(
s
.
spfilter1
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
g1
:
GetCount
()
>
0
then
for
tc
in
aux
.
Next
(
g1
)
do
tc
:
ResetFlagEffect
(
id
)
end
end
end
end
\ No newline at end of file
expansions/script/c18700806.lua
View file @
083ff8e2
...
@@ -82,7 +82,7 @@ end
...
@@ -82,7 +82,7 @@ end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
18700806
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
18700806
,
0
,
0
,
1
)
if
re
:
GetHandler
():
IsDestructable
()
then
if
re
:
GetHandler
():
IsDestructable
()
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
end
...
@@ -122,7 +122,7 @@ function cm.mvcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -122,7 +122,7 @@ function cm.mvcost(e,tp,eg,ep,ev,re,r,rp,chk)
else
else
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
Duel
.
RegisterFlagEffect
(
tp
,
18700806
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
18700806
,
0
,
0
,
1
)
end
end
function
cm
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c31750001.lua
View file @
083ff8e2
...
@@ -71,7 +71,7 @@ end
...
@@ -71,7 +71,7 @@ end
-- Effect 2 functions --
-- Effect 2 functions --
function
s
.
xyzfilter
(
c
,
tp
)
function
s
.
xyzfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x694
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSummonPlayer
(
tp
)
and
c
:
GetOverlayGroup
():
Filter
(
s
.
mfilter
,
nil
)
return
c
:
IsSetCard
(
0x694
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSummonPlayer
(
tp
)
and
c
:
GetOverlayGroup
():
Filter
(
s
.
mfilter
,
nil
)
:
GetCount
()
>
0
end
end
function
s
.
mfilter
(
c
)
function
s
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x694
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x694
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
expansions/script/c31750041.lua
View file @
083ff8e2
...
@@ -48,9 +48,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,9 +48,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
-- Operation function
-- Operation function
function
s
.
operation
(
e
,
tp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
(
not
tc
:
IsRelateToEffect
(
e
))
or
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
0
,
POS_FACEUP_ATTACK
,
0
)
==
0
then
return
end
if
not
tc
:
IsRelateToEffect
(
re
)
then
return
end
if
not
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
0
,
POS_FACEUP_ATTACK
,
0
)
==
0
then
return
end
if
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
return
end
if
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
tc
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
if
tc
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
...
@@ -86,7 +87,7 @@ function s.operation(e,tp)
...
@@ -86,7 +87,7 @@ function s.operation(e,tp)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
expansions/script/c31750061.lua
View file @
083ff8e2
...
@@ -86,6 +86,5 @@ function s.setop(e,tp)
...
@@ -86,6 +86,5 @@ function s.setop(e,tp)
end
end
function
s
.
actcon
(
e
)
function
s
.
actcon
(
e
)
Debug
.
Message
(
Duel
.
GetCurrentChain
())
return
Duel
.
GetCurrentChain
()
>=
2
return
Duel
.
GetCurrentChain
()
>=
2
end
end
expansions/script/c5012622.lua
View file @
083ff8e2
...
@@ -15,9 +15,9 @@ function s.initial_effect(c)
...
@@ -15,9 +15,9 @@ function s.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
2
)
e3
:
SetDescription
(
2
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
--
e3:SetType(EFFECT_TYPE_QUICK_O)
--e2
:SetType(EFFECT_TYPE_IGNITION)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
--
e3:SetCode(EVENT_FREE_CHAIN)
e3
:
SetRange
(
LOCATION_HAND
)
e3
:
SetRange
(
LOCATION_HAND
)
--e3:SetCountLimit(1,id)
--e3:SetCountLimit(1,id)
e3
:
SetCost
(
aux
.
bfgcost
)
e3
:
SetCost
(
aux
.
bfgcost
)
...
...
expansions/script/c5012633.lua
View file @
083ff8e2
...
@@ -21,6 +21,9 @@ function cm.initial_effect(c)
...
@@ -21,6 +21,9 @@ function cm.initial_effect(c)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTarget
(
s
.
sp
)
e2
:
SetTarget
(
s
.
sp
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
c
:
RegisterEffect
(
e4
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
expansions/script/c5012738.lua
View file @
083ff8e2
...
@@ -42,6 +42,7 @@ function s.initial_effect(c)
...
@@ -42,6 +42,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e2
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
66
)
e2
:
SetTarget
(
s
.
desreptg
)
e2
:
SetTarget
(
s
.
desreptg
)
e2
:
SetOperation
(
s
.
desrepop
)
e2
:
SetOperation
(
s
.
desrepop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -143,7 +144,7 @@ function s.chk(e,tp,eg,ep,ev,re,r,rp)
...
@@ -143,7 +144,7 @@ function s.chk(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
mfilter1
(
c
,
e
,
tp
)
function
s
.
mfilter1
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
10
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsLevel
(
10
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
s
.
mfilter2
(
c
)
function
s
.
mfilter2
(
c
)
return
not
c
:
IsForbidden
()
and
c
:
IsCode
(
5012730
)
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
return
not
c
:
IsForbidden
()
and
c
:
IsCode
(
5012730
)
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
...
...
expansions/script/c96071017.lua
View file @
083ff8e2
...
@@ -47,7 +47,7 @@ function cm.initial_effect(c)
...
@@ -47,7 +47,7 @@ function cm.initial_effect(c)
end
end
--recover
--recover
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsSetCard
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
(),
0xef1
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsSetCard
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
(),
0xef1
)
end
...
...
expansions/script/c96071035.lua
View file @
083ff8e2
...
@@ -116,12 +116,12 @@ function cm.mfilter(c)
...
@@ -116,12 +116,12 @@ function cm.mfilter(c)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
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
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
c
:
IsType
(
TYPE_XYZ
)
if
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
cm
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
>
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
cm
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
...
...
expansions/script/c96071037.lua
View file @
083ff8e2
...
@@ -61,7 +61,7 @@ function cm.spdtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,7 +61,7 @@ function cm.spdtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
if
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
if
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
...
@@ -70,7 +70,7 @@ end
...
@@ -70,7 +70,7 @@ end
function
cm
.
spdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
tc
and
tc
:
IsRelateToBattle
()
if
tc
and
tc
:
IsRelateToBattle
()
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
...
...
expansions/script/c96071039.lua
View file @
083ff8e2
...
@@ -72,7 +72,7 @@ function cm.thfilter(c)
...
@@ -72,7 +72,7 @@ function cm.thfilter(c)
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -83,7 +83,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,7 +83,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
and
c
:
IsRelateToEffect
(
e
)
then
if
g
:
GetCount
()
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
Duel
.
ResetFlagEffect
(
tp
,
m
)
Duel
.
ResetFlagEffect
(
tp
,
m
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c96071042.lua
View file @
083ff8e2
...
@@ -73,14 +73,14 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -73,14 +73,14 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
2400
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
2400
)
end
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Recover
(
tp
,
2400
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
2400
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c96071086.lua
View file @
083ff8e2
...
@@ -71,12 +71,12 @@ end
...
@@ -71,12 +71,12 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
...
...
expansions/script/c96071089.lua
View file @
083ff8e2
...
@@ -60,9 +60,9 @@ function cm.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,9 +60,9 @@ function cm.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c96071091.lua
View file @
083ff8e2
...
@@ -122,7 +122,7 @@ function cm.adesop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -122,7 +122,7 @@ function cm.adesop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
end
end
--handes
--handes
...
...
expansions/script/c96071094.lua
View file @
083ff8e2
...
@@ -70,7 +70,7 @@ end
...
@@ -70,7 +70,7 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
...
@@ -82,7 +82,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,7 +82,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
if
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
expansions/script/c96071097.lua
View file @
083ff8e2
...
@@ -79,14 +79,14 @@ function cm.thfilter(c)
...
@@ -79,14 +79,14 @@ function cm.thfilter(c)
end
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c96071102.lua
View file @
083ff8e2
...
@@ -55,13 +55,13 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,13 +55,13 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
end
end
--pendulum set
--pendulum set
...
...
expansions/script/c96071106.lua
View file @
083ff8e2
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
--回手卡效果+检索卡组效果+含特殊召唤效果
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
--回手卡效果+检索卡组效果+含特殊召唤效果
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
--场上所有卡状态变化时触发+诱发选发效果
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
--场上所有卡状态变化时触发+诱发选发效果
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
--攻击宣言时
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
--攻击宣言时
e1
:
SetRange
(
LOCATION_PZONE
)
--灵摆区域
e1
:
SetRange
(
LOCATION_PZONE
)
--灵摆区域
...
@@ -35,9 +35,9 @@ function cm.initial_effect(c)
...
@@ -35,9 +35,9 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--atk
--atk
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
--改变攻击效果
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
--自己状态变化时触发+诱发必发效果
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
--特殊召唤成功时
e3
:
SetTarget
(
cm
.
atktg
)
e3
:
SetTarget
(
cm
.
atktg
)
e3
:
SetOperation
(
cm
.
atkop
)
e3
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -52,7 +52,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
NegateAttack
()
then
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
end
end
--pendulum set
--pendulum set
...
...
expansions/script/c96071114.lua
View file @
083ff8e2
...
@@ -123,14 +123,14 @@ end
...
@@ -123,14 +123,14 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
))
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c96071116.lua
View file @
083ff8e2
...
@@ -78,12 +78,12 @@ function cm.mfilter(c)
...
@@ -78,12 +78,12 @@ function cm.mfilter(c)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
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
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
c
:
IsType
(
TYPE_XYZ
)
if
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
cm
.
mfilter
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
>
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
cm
.
mfilter
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
...
...
expansions/script/c96071119.lua
View file @
083ff8e2
...
@@ -117,14 +117,14 @@ function cm.filter(c,tp)
...
@@ -117,14 +117,14 @@ function cm.filter(c,tp)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
tp
)
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
tp
)
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
...
...
expansions/script/c96071121.lua
View file @
083ff8e2
...
@@ -84,7 +84,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,7 +84,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
5
or
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>=
5
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
5
or
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>=
5
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
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -101,7 +101,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,7 +101,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
end
end
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SortDecktop
(
tp
,
tp
,
ac
)
Duel
.
SortDecktop
(
tp
,
tp
,
ac
)
...
...
expansions/script/c96071127.lua
View file @
083ff8e2
...
@@ -119,13 +119,13 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -119,13 +119,13 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
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
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
...
...
expansions/script/c96071131.lua
View file @
083ff8e2
...
@@ -111,14 +111,14 @@ end
...
@@ -111,14 +111,14 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
local
ct
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
ct
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
300
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
local
ct
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
ct
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
if
ct
>
0
then
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
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