Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Mr.Tan
pre-release-database-cdb
Commits
dbde3117
Commit
dbde3117
authored
Jan 21, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fixed scripts
parent
2dd3aab7
Changes
61
Hide whitespace changes
Inline
Side-by-side
Showing
61 changed files
with
122 additions
and
153 deletions
+122
-153
script/c12682213.lua
script/c12682213.lua
+8
-5
script/c12804701.lua
script/c12804701.lua
+7
-7
script/c13070280.lua
script/c13070280.lua
+4
-3
script/c19299793.lua
script/c19299793.lua
+1
-1
script/c20357457.lua
script/c20357457.lua
+6
-8
script/c22414174.lua
script/c22414174.lua
+1
-1
script/c24689197.lua
script/c24689197.lua
+1
-2
script/c24892828.lua
script/c24892828.lua
+3
-3
script/c25191307.lua
script/c25191307.lua
+2
-2
script/c25861589.lua
script/c25861589.lua
+1
-2
script/c25919316.lua
script/c25919316.lua
+0
-1
script/c26523337.lua
script/c26523337.lua
+1
-3
script/c26700718.lua
script/c26700718.lua
+1
-4
script/c26746975.lua
script/c26746975.lua
+1
-1
script/c2772337.lua
script/c2772337.lua
+10
-3
script/c30989084.lua
script/c30989084.lua
+0
-3
script/c34568783.lua
script/c34568783.lua
+1
-5
script/c38044854.lua
script/c38044854.lua
+1
-1
script/c39767432.lua
script/c39767432.lua
+0
-2
script/c48017189.lua
script/c48017189.lua
+0
-1
script/c49139666.lua
script/c49139666.lua
+1
-1
script/c50134646.lua
script/c50134646.lua
+1
-1
script/c50281477.lua
script/c50281477.lua
+2
-2
script/c51303014.lua
script/c51303014.lua
+4
-4
script/c52918032.lua
script/c52918032.lua
+2
-2
script/c53134520.lua
script/c53134520.lua
+1
-1
script/c53194323.lua
script/c53194323.lua
+1
-1
script/c56741506.lua
script/c56741506.lua
+1
-1
script/c57964143.lua
script/c57964143.lua
+1
-1
script/c58680635.lua
script/c58680635.lua
+2
-2
script/c59069885.lua
script/c59069885.lua
+2
-2
script/c60830240.lua
script/c60830240.lua
+1
-3
script/c61775475.lua
script/c61775475.lua
+6
-8
script/c62318994.lua
script/c62318994.lua
+2
-0
script/c64049553.lua
script/c64049553.lua
+1
-1
script/c64327901.lua
script/c64327901.lua
+7
-7
script/c69802283.lua
script/c69802283.lua
+1
-1
script/c71222868.lua
script/c71222868.lua
+1
-1
script/c72444406.lua
script/c72444406.lua
+1
-3
script/c73167098.lua
script/c73167098.lua
+0
-2
script/c74289646.lua
script/c74289646.lua
+1
-1
script/c8173184.lua
script/c8173184.lua
+2
-1
script/c83962752.lua
script/c83962752.lua
+1
-1
script/c85123771.lua
script/c85123771.lua
+1
-3
script/c85698115.lua
script/c85698115.lua
+0
-1
script/c8617563.lua
script/c8617563.lua
+1
-1
script/c86553594.lua
script/c86553594.lua
+2
-2
script/c87462901.lua
script/c87462901.lua
+3
-3
script/c87498729.lua
script/c87498729.lua
+1
-1
script/c87532344.lua
script/c87532344.lua
+1
-1
script/c87676171.lua
script/c87676171.lua
+1
-1
script/c90241276.lua
script/c90241276.lua
+0
-3
script/c90711610.lua
script/c90711610.lua
+15
-15
script/c9551692.lua
script/c9551692.lua
+0
-4
script/c96029570.lua
script/c96029570.lua
+1
-1
script/c96113307.lua
script/c96113307.lua
+1
-1
script/c96402918.lua
script/c96402918.lua
+0
-1
script/c98520301.lua
script/c98520301.lua
+2
-2
script/c99529628.lua
script/c99529628.lua
+0
-3
script/c99599062.lua
script/c99599062.lua
+2
-5
test-update.cdb
test-update.cdb
+0
-0
No files found.
script/c12682213.lua
View file @
dbde3117
...
@@ -40,10 +40,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,10 +40,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
():
GetColumnGroup
()
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
local
dg
=
rc
:
GetColumnGroup
()
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
and
rc
:
GetCount
()
>
0
then
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
dg
:
RemoveCard
(
c
)
end
if
Duel
.
NegateActivation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
and
dg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
script/c12804701.lua
View file @
dbde3117
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_RECOVER
)
e1
:
SetCategory
(
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetTarget
(
s
.
rectg
)
e1
:
SetTarget
(
s
.
rectg
)
e1
:
SetOperation
(
s
.
recop
)
e1
:
SetOperation
(
s
.
recop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Spsummon && Recover
--Spsummon && Recover
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
...
...
script/c13070280.lua
View file @
dbde3117
...
@@ -16,11 +16,12 @@ function s.filter(c,e,tp)
...
@@ -16,11 +16,12 @@ function s.filter(c,e,tp)
return
c
:
IsSetCard
(
0x1a4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x1a4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_HAND
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
script/c19299793.lua
View file @
dbde3117
...
@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
afilter
(
c
)
function
s
.
afilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsFaceup
()
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsFaceup
()
end
end
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
afilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
afilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
script/c20357457.lua
View file @
dbde3117
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetTarget
(
s
.
sptg2
)
e2
:
SetTarget
(
s
.
sptg2
)
e2
:
SetOperation
(
s
.
spop2
)
e2
:
SetOperation
(
s
.
spop2
)
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
--to hand
--to hand
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCost
(
aux
.
bfgcost
)
e4
:
SetCost
(
aux
.
bfgcost
)
...
@@ -84,21 +84,19 @@ function s.splimit(e,c)
...
@@ -84,21 +84,19 @@ function s.splimit(e,c)
return
not
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
function
s
.
thfilter
(
c
,
e
,
tp
)
function
s
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
37351133
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
c
:
IsFaceupEx
()
return
c
:
IsCode
(
37351133
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
c
:
IsFaceupEx
()
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
then
if
tc
then
if
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
3
),
aux
.
Stringid
(
id
,
4
)
)
==
0
then
if
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
0
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
else
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
end
end
\ No newline at end of file
script/c22414174.lua
View file @
dbde3117
--シンクロ・クリード
--シンクロ・クリード
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
...
...
script/c24689197.lua
View file @
dbde3117
--アロマリリス-ロザリーナ
--アロマリリス-ロザリーナ
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
c24689197
.
initial_effect
(
c
)
function
c24689197
.
initial_effect
(
c
)
--recover
--recover
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
@@ -51,7 +51,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Recover
(
tp
,
rec
,
REASON_EFFECT
)
end
Duel
.
Recover
(
tp
,
rec
,
REASON_EFFECT
)
end
end
end
--spsummon
function
s
.
spfilter
(
c
,
e
,
tp
)
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc9
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xc9
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
...
...
script/c24892828.lua
View file @
dbde3117
...
@@ -24,7 +24,7 @@ function s.initial_effect(c)
...
@@ -24,7 +24,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
filter
(
c
,
id
)
function
s
.
filter
(
c
,
id
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a4
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a4
)
and
c
:
IsHasLevel
()
and
not
c
:
IsCode
(
id
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -69,7 +69,7 @@ end
...
@@ -69,7 +69,7 @@ end
function
s
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
ovop
(
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
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
)
)
Duel
.
Overlay
(
tc
,
c
)
end
end
end
end
\ No newline at end of file
script/c25191307.lua
View file @
dbde3117
...
@@ -79,8 +79,8 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -79,8 +79,8 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
Duel
.
IsExistingTarget
(
s
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
end
and
c
:
IsCanBeEffectTarget
(
e
)
and
Duel
.
IsExistingTarget
(
s
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
e
,
tp
)
g
:
AddCard
(
c
)
g
:
AddCard
(
c
)
...
...
script/c25861589.lua
View file @
dbde3117
...
@@ -45,12 +45,11 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,12 +45,11 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
end
end
--fusion
function
s
.
filter1
(
c
,
e
)
function
s
.
filter1
(
c
,
e
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
s
.
exfilter0
(
c
)
function
s
.
exfilter0
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToRemove
()
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToRemove
()
end
end
function
s
.
exfilter1
(
c
,
e
)
function
s
.
exfilter1
(
c
,
e
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
...
...
script/c25919316.lua
View file @
dbde3117
...
@@ -93,4 +93,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,4 +93,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c26523337.lua
View file @
dbde3117
...
@@ -27,13 +27,12 @@ function s.initial_effect(c)
...
@@ -27,13 +27,12 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetOperation
(
s
.
spop
)
e3
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
end
end
function
s
.
rgfilter
(
c
,
e
,
tp
)
function
s
.
rgfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemove
()
and
c
:
IsFaceupEx
()
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemove
()
and
c
:
IsFaceupEx
()
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
@@ -52,7 +51,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +51,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
--spe
function
s
.
costfilter
(
c
)
function
s
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsFaceupEx
()
and
not
c
:
IsCode
(
id
)
return
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsFaceupEx
()
and
not
c
:
IsCode
(
id
)
end
end
...
...
script/c26700718.lua
View file @
dbde3117
...
@@ -25,9 +25,7 @@ function s.initial_effect(c)
...
@@ -25,9 +25,7 @@ function s.initial_effect(c)
e2
:
SetTarget
(
s
.
spstg
)
e2
:
SetTarget
(
s
.
spstg
)
e2
:
SetOperation
(
s
.
spsop
)
e2
:
SetOperation
(
s
.
spsop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
--spell
function
s
.
filter1
(
c
)
function
s
.
filter1
(
c
)
return
c
:
IsSetCard
(
0x19b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0x19b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
end
end
...
@@ -55,7 +53,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +53,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
--special
function
s
.
sfilter
(
c
,
e
,
tp
)
function
s
.
sfilter
(
c
,
e
,
tp
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
c
:
GetType
()
&
TYPE_CONTINUOUS
+
TYPE_SPELL
==
TYPE_CONTINUOUS
+
TYPE_SPELL
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
c
:
GetType
()
&
TYPE_CONTINUOUS
+
TYPE_SPELL
==
TYPE_CONTINUOUS
+
TYPE_SPELL
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -71,4 +68,4 @@ end
...
@@ -71,4 +68,4 @@ end
function
s
.
spsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
\ No newline at end of file
script/c26746975.lua
View file @
dbde3117
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon rule
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
script/c2772337.lua
View file @
dbde3117
--賜炎の咎姫
--賜炎の咎姫
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--same effect send this card to grave and summon another card check
local
e0
=
aux
.
AddThisCardInGraveAlreadyCheck
(
c
)
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkType
,
TYPE_EFFECT
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkType
,
TYPE_EFFECT
),
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
@@ -13,7 +15,7 @@ function s.initial_effect(c)
...
@@ -13,7 +15,7 @@ function s.initial_effect(c)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
splimit
)
e1
:
SetTarget
(
s
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--SpecialSummon
--SpecialSummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
@@ -31,6 +33,7 @@ function s.initial_effect(c)
...
@@ -31,6 +33,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetLabelObject
(
e0
)
e3
:
SetCountLimit
(
1
,
id
+
o
)
e3
:
SetCountLimit
(
1
,
id
+
o
)
e3
:
SetCondition
(
s
.
spcon2
)
e3
:
SetCondition
(
s
.
spcon2
)
e3
:
SetTarget
(
s
.
sptg2
)
e3
:
SetTarget
(
s
.
sptg2
)
...
@@ -56,8 +59,12 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,8 +59,12 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
function
s
.
spfilter2
(
c
,
tp
,
se
)
return
c
:
IsControler
(
tp
)
and
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
end
function
s
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
local
se
=
e
:
GetLabelObject
():
GetLabelObject
()
return
eg
:
IsExists
(
s
.
spfilter2
,
1
,
nil
,
1
-
tp
,
se
)
end
end
function
s
.
descheck
(
c
,
tp
)
function
s
.
descheck
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
...
@@ -65,7 +72,7 @@ end
...
@@ -65,7 +72,7 @@ end
function
s
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
descheck
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
descheck
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
descheck
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
descheck
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
...
...
script/c30989084.lua
View file @
dbde3117
...
@@ -41,7 +41,6 @@ function c30989084.initial_effect(c)
...
@@ -41,7 +41,6 @@ function c30989084.initial_effect(c)
e3
:
SetOperation
(
s
.
rmop
)
e3
:
SetOperation
(
s
.
rmop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
--to hand
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsSetCard
(
0xc9
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xc9
)
and
c
:
IsAbleToHand
()
end
end
...
@@ -58,7 +57,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +57,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
--special
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
return
ep
==
tp
end
end
...
@@ -85,7 +83,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,7 +83,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
end
end
end
end
--remove
function
s
.
cfilter
(
c
,
g
)
function
s
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
return
g
:
IsContains
(
c
)
end
end
...
...
script/c34568783.lua
View file @
dbde3117
...
@@ -22,8 +22,6 @@ function s.initial_effect(c)
...
@@ -22,8 +22,6 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
thop
)
e2
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
--change
function
s
.
cgfilter
(
c
,
mc
)
function
s
.
cgfilter
(
c
,
mc
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsAttribute
(
mc
:
GetAttribute
())
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsAttribute
(
mc
:
GetAttribute
())
end
end
...
@@ -46,7 +44,7 @@ function s.cgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +44,7 @@ function s.cgop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
if
c
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsType
(
TYPE_TUNER
)
if
c
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -58,8 +56,6 @@ function s.cgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,8 +56,6 @@ function s.cgop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
--to hand
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
...
...
script/c38044854.lua
View file @
dbde3117
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
s
.
filter1
(
c
,
e
)
function
s
.
filter1
(
c
,
e
)
return
c
:
GetRank
()
>
0
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
GetRank
()
>
0
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
s
.
filter2
(
c
,
e
,
tp
,
mg
)
function
s
.
filter2
(
c
,
e
,
tp
,
mg
)
local
rk
=
mg
:
GetSum
(
Card
.
GetRank
)
local
rk
=
mg
:
GetSum
(
Card
.
GetRank
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
...
...
script/c39767432.lua
View file @
dbde3117
...
@@ -34,7 +34,6 @@ function s.initial_effect(c)
...
@@ -34,7 +34,6 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
damop
)
e3
:
SetOperation
(
s
.
damop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
--recover
function
s
.
recfilter
(
c
,
lg
)
function
s
.
recfilter
(
c
,
lg
)
return
lg
:
IsContains
(
c
)
return
lg
:
IsContains
(
c
)
end
end
...
@@ -55,7 +54,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +54,6 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
end
--damage
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
or
1
-
tp
return
ep
==
tp
or
1
-
tp
end
end
...
...
script/c48017189.lua
View file @
dbde3117
...
@@ -36,7 +36,6 @@ function s.spcon(e,c)
...
@@ -36,7 +36,6 @@ function s.spcon(e,c)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
,
TYPE_LINK
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
,
TYPE_LINK
)
end
end
--to hand
function
s
.
cfilter
(
c
,
tp
,
se
)
function
s
.
cfilter
(
c
,
tp
,
se
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsLink
(
2
)
and
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsLink
(
2
)
and
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsFaceup
()))
and
c
:
IsPreviousControler
(
tp
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsFaceup
()))
and
c
:
IsPreviousControler
(
tp
)
...
...
script/c49139666.lua
View file @
dbde3117
...
@@ -16,7 +16,7 @@ function s.initial_effect(c)
...
@@ -16,7 +16,7 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetTarget
(
s
.
lvtg
)
e2
:
SetTarget
(
s
.
lvtg
)
e2
:
SetOperation
(
s
.
lvop
)
e2
:
SetOperation
(
s
.
lvop
)
...
...
script/c50134646.lua
View file @
dbde3117
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
operation
)
e1
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--set
--set
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
script/c50281477.lua
View file @
dbde3117
...
@@ -78,7 +78,7 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,7 +78,7 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
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
)
--check
--check
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -98,7 +98,7 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -98,7 +98,7 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetTarget
(
s
.
atktg
)
e3
:
SetTarget
(
s
.
atktg
)
e2
:
SetLabelObject
(
e3
)
e2
:
SetLabelObject
(
e3
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
id
)
~=
0
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
id
)
~=
0
then
return
end
...
...
script/c51303014.lua
View file @
dbde3117
...
@@ -3,6 +3,7 @@ local s,id,o=GetID()
...
@@ -3,6 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
@@ -17,11 +18,11 @@ end
...
@@ -17,11 +18,11 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
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
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
math.min
(
2
,
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
))
local
ct
=
math.min
(
2
,
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
))
if
ct
<=
0
then
return
end
if
ct
<=
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
@@ -36,8 +37,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,8 +37,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
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
)
if
g
:
GetClassCount
(
Card
.
GetOriginalLevel
)
==
1
then
if
g
:
GetClassCount
(
Card
.
GetOriginalLevel
)
==
1
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetOwnerPlayer
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
script/c52918032.lua
View file @
dbde3117
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetTarget
(
s
.
thtg
)
e3
:
SetTarget
(
s
.
thtg
)
e3
:
SetOperation
(
s
.
thop
)
e3
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e2
=
e3
:
Clone
()
local
e2
=
e3
:
Clone
()
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -27,7 +27,7 @@ function s.initial_effect(c)
...
@@ -27,7 +27,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
s
.
thfilter
(
c
,
tp
)
function
s
.
thfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x1a1
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
return
c
:
IsSetCard
(
0x1a1
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
id
)
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
thfilter
(
chkc
)
end
...
...
script/c53134520.lua
View file @
dbde3117
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
if
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
...
...
script/c53194323.lua
View file @
dbde3117
...
@@ -12,7 +12,7 @@ function s.initial_effect(c)
...
@@ -12,7 +12,7 @@ function s.initial_effect(c)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
script/c56741506.lua
View file @
dbde3117
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_EQUIP
)
e2
:
SetCategory
(
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCost
(
s
.
eqcost
)
e2
:
SetCost
(
s
.
eqcost
)
e2
:
SetTarget
(
s
.
eqtg
)
e2
:
SetTarget
(
s
.
eqtg
)
...
...
script/c57964143.lua
View file @
dbde3117
...
@@ -83,7 +83,7 @@ function s.dfcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -83,7 +83,7 @@ function s.dfcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
s
.
dfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
Duel
.
DiscardHand
(
tp
,
s
.
dfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
end
function
s
.
posfilter
(
c
)
function
s
.
posfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsCanChangePosition
()
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsCanChangePosition
()
end
end
function
s
.
dftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
dftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c58680635.lua
View file @
dbde3117
...
@@ -38,7 +38,7 @@ function c58680635.lvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c58680635.lvop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
4
)
e1
:
SetValue
(
4
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
c
:
IsLevel
(
4
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c58680635
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
c
:
IsLevel
(
4
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c58680635
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
58680635
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
58680635
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
@@ -66,7 +66,7 @@ function c58680635.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function c58680635.drop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
local
g
=
Group
.
FromCards
(
c
,
tc
)
local
g
=
Group
.
FromCards
(
c
,
tc
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
end
end
\ No newline at end of file
script/c59069885.lua
View file @
dbde3117
...
@@ -48,7 +48,7 @@ function s.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -48,7 +48,7 @@ function s.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
end
end
end
end
...
@@ -56,7 +56,7 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
s
.
filter
(
c
,
tp
)
function
s
.
filter
(
c
,
tp
)
return
c
:
IsFacedown
()
and
c
:
IsControler
(
1
-
tp
)
and
c
:
IsControlerCanBeChanged
()
return
c
:
IsFacedown
()
and
c
:
IsControler
(
1
-
tp
)
and
c
:
IsControlerCanBeChanged
()
end
end
function
s
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
...
...
script/c60830240.lua
View file @
dbde3117
...
@@ -68,9 +68,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -68,9 +68,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
tg
:
SelectSubGroup
(
tp
,
aux
.
TRUE
,
false
,
1
,
11
)
local
g
=
tg
:
SelectSubGroup
(
tp
,
aux
.
TRUE
,
false
,
1
,
11
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
if
g
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
...
...
script/c61775475.lua
View file @
dbde3117
...
@@ -66,8 +66,8 @@ end
...
@@ -66,8 +66,8 @@ end
function
s
.
rmlimit
(
e
,
c
,
tp
,
r
,
re
)
function
s
.
rmlimit
(
e
,
c
,
tp
,
r
,
re
)
return
c
:
IsAttribute
(
e
:
GetLabel
())
and
re
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsCode
(
id
)
and
r
==
REASON_COST
return
c
:
IsAttribute
(
e
:
GetLabel
())
and
re
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsCode
(
id
)
and
r
==
REASON_COST
end
end
function
s
.
tdfilter
(
c
,
tp
)
function
s
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsAbleToDeck
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2
)
and
c
:
IsAbleToDeck
()
and
c
:
IsFaceup
()
end
end
function
s
.
desfilter
(
c
)
function
s
.
desfilter
(
c
)
return
c
:
GetSequence
()
<
5
return
c
:
GetSequence
()
<
5
...
@@ -79,17 +79,15 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -79,17 +79,15 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dabcheck
,
false
,
1
,
6
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dabcheck
,
false
,
1
,
6
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetTargetCard
(
sg
)
if
sg
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
Get
ChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
Get
TargetsRelateToChain
(
)
if
not
tg
then
return
end
if
#
tg
==
0
then
return
end
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
local
g
=
Duel
.
GetOperatedGroup
()
local
g
=
Duel
.
GetOperatedGroup
()
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
local
ct
=
t
g
:
GetCount
()
local
ct
=
g
:
GetCount
()
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
if
ct
>
0
and
dg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
if
ct
>
0
and
dg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
script/c62318994.lua
View file @
dbde3117
...
@@ -104,6 +104,8 @@ end
...
@@ -104,6 +104,8 @@ end
function
s
.
thosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
aux
.
NecroValleyNegateCheck
(
c
)
then
return
end
if
not
aux
.
NecroValleyFilter
()(
c
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c64049553.lua
View file @
dbde3117
...
@@ -38,7 +38,7 @@ function s.cfilter(c,tp)
...
@@ -38,7 +38,7 @@ function s.cfilter(c,tp)
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
...
...
script/c64327901.lua
View file @
dbde3117
...
@@ -36,7 +36,7 @@ function s.initial_effect(c)
...
@@ -36,7 +36,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xac
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xac
)
end
end
function
s
.
atkval
(
e
,
c
)
function
s
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
s
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
*
300
return
Duel
.
GetMatchingGroupCount
(
s
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
*
300
...
@@ -65,12 +65,12 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,12 +65,12 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc2
=
g
:
GetNext
()
local
tc2
=
g
:
GetNext
()
local
lv1
=
tc1
:
GetLevel
()
local
lv1
=
tc1
:
GetLevel
()
local
lv2
=
tc2
:
GetLevel
()
local
lv2
=
tc2
:
GetLevel
()
if
e
:
GetLabel
()
==
1
then
if
e
:
GetLabel
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
4
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
4
))
local
g1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
g1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
lv
=
g1
:
GetFirst
():
GetLevel
()
local
lv
=
g1
:
GetFirst
():
GetLevel
()
local
sc
=
(
g
-
g1
):
GetFirst
()
local
sc
=
(
g
-
g1
):
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
script/c69802283.lua
View file @
dbde3117
...
@@ -75,7 +75,7 @@ function s.negfilter(c)
...
@@ -75,7 +75,7 @@ function s.negfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
Get
TurnPlayer
()
~=
tp
and
Duel
.
IsExistingMatchingCard
(
s
.
negfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
return
Duel
.
Get
Attacker
():
IsControler
(
1
-
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
negfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
end
function
s
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateAttack
()
Duel
.
NegateAttack
()
...
...
script/c71222868.lua
View file @
dbde3117
...
@@ -43,7 +43,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
damval1
(
c
)
function
s
.
damval1
(
c
)
if
c
:
GetLocation
()
~=
LOCATION_MZONE
then
return
end
if
c
:
GetLocation
()
~=
LOCATION_MZONE
then
return
end
return
math.max
(
0
,
c
:
GetTextAttack
())
return
math.max
(
0
,
c
:
GetTextAttack
())
end
end
function
s
.
damval2
(
c
)
function
s
.
damval2
(
c
)
if
c
:
GetPreviousLocation
()
~=
LOCATION_MZONE
then
return
end
if
c
:
GetPreviousLocation
()
~=
LOCATION_MZONE
then
return
end
...
...
script/c72444406.lua
View file @
dbde3117
...
@@ -41,7 +41,6 @@ function s.initial_effect(c)
...
@@ -41,7 +41,6 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
spsop
)
e3
:
SetOperation
(
s
.
spsop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
--move
function
s
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
...
@@ -64,7 +63,7 @@ function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -64,7 +63,7 @@ function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
~=
1
then
return
false
end
if
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
~=
1
then
return
false
end
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
Duel
.
MoveToField
(
tc
,
tp
,
tc
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
and
Duel
.
MoveToField
(
tc
,
tp
,
tc
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -76,7 +75,6 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +75,6 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
--special
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
return
e
:
GetHandler
():
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
end
...
...
script/c73167098.lua
View file @
dbde3117
...
@@ -46,7 +46,6 @@ end
...
@@ -46,7 +46,6 @@ end
function
s
.
indtg
(
e
,
c
)
function
s
.
indtg
(
e
,
c
)
return
e
:
GetHandler
()
==
c
or
c
:
IsRace
(
RACE_PLANT
)
return
e
:
GetHandler
()
==
c
or
c
:
IsRace
(
RACE_PLANT
)
end
end
--remove
function
s
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
Duel
.
PayLPCost
(
tp
,
2000
)
Duel
.
PayLPCost
(
tp
,
2000
)
...
@@ -69,7 +68,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +68,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
--atk up
function
s
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
e
:
GetHandler
():
IsFaceup
()
return
ep
==
tp
and
e
:
GetHandler
():
IsFaceup
()
end
end
...
...
script/c74289646.lua
View file @
dbde3117
...
@@ -19,7 +19,7 @@ function c74289646.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,7 +19,7 @@ function c74289646.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
if
cl
==
3
then
if
cl
==
3
then
e
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_DAMAGE
)
e
:
SetCategory
(
CATEGORY_DICE
+
CATEGORY_DAMAGE
)
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_PLAYER_TARGET
)
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_PLAYER_TARGET
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
...
...
script/c8173184.lua
View file @
dbde3117
--リペア・ジェネクス・コントローラー
--リペア・ジェネクス・コントローラー
--not fully implemented
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--link summon
--link summon
...
@@ -161,4 +162,4 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
...
@@ -161,4 +162,4 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
end
end
Duel
.
SetSynchroMaterial
(
g
)
Duel
.
SetSynchroMaterial
(
g
)
end
end
\ No newline at end of file
script/c83962752.lua
View file @
dbde3117
...
@@ -102,5 +102,5 @@ function c83962752.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,5 +102,5 @@ function c83962752.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c83962752
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
function
c83962752
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
end
\ No newline at end of file
script/c85123771.lua
View file @
dbde3117
...
@@ -28,8 +28,6 @@ function s.initial_effect(c)
...
@@ -28,8 +28,6 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
thop
)
e2
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
--disable
function
s
.
disfilter
(
c
)
function
s
.
disfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsDisabled
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsDisabled
()
end
end
...
@@ -70,7 +68,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +68,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EVENT_CHANGE_POS
)
e2
:
SetCode
(
EVENT_CHANGE_POS
)
e2
:
SetCondition
(
s
.
recon
)
e2
:
SetCondition
(
s
.
recon
)
e2
:
SetOperation
(
s
.
reop
)
e2
:
SetOperation
(
s
.
reop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
rcon
(
e
)
function
s
.
rcon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
...
...
script/c85698115.lua
View file @
dbde3117
...
@@ -60,7 +60,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +60,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
--todeck
function
s
.
rfilter
(
c
)
function
s
.
rfilter
(
c
)
return
c
:
IsLevel
(
1
)
and
c
:
IsAbleToDeck
()
return
c
:
IsLevel
(
1
)
and
c
:
IsAbleToDeck
()
end
end
...
...
script/c8617563.lua
View file @
dbde3117
...
@@ -46,7 +46,7 @@ function s.setfilter(c)
...
@@ -46,7 +46,7 @@ function s.setfilter(c)
end
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
0
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
id
,
0
))
end
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c86553594.lua
View file @
dbde3117
...
@@ -42,7 +42,7 @@ function s.filter(c)
...
@@ -42,7 +42,7 @@ function s.filter(c)
end
end
function
s
.
filter1
(
c
,
tp
)
function
s
.
filter1
(
c
,
tp
)
return
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
)
return
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
)
end
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
...
@@ -52,7 +52,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter1
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter1
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tp
)
if
#
g
>
0
then
if
#
g
>
0
then
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
end
end
...
...
script/c87462901.lua
View file @
dbde3117
...
@@ -44,8 +44,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,8 +44,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
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
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
function
s
.
indtg
(
e
,
c
)
function
s
.
indtg
(
e
,
c
)
...
@@ -64,7 +64,7 @@ end
...
@@ -64,7 +64,7 @@ end
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
then
if
#
g
>
0
then
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c87498729.lua
View file @
dbde3117
--Fallen of the Tistina
--Fallen of the Tistina
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--place
--place
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
script/c87532344.lua
View file @
dbde3117
...
@@ -69,7 +69,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetLabelObject
())
return
eg
:
IsContains
(
e
:
GetLabelObject
())
end
end
function
s
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
...
script/c87676171.lua
View file @
dbde3117
...
@@ -4,7 +4,7 @@ function s.initial_effect(c)
...
@@ -4,7 +4,7 @@ function s.initial_effect(c)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
10
,
2
)
aux
.
AddXyzProcedure
(
c
,
nil
,
10
,
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--to grave
--to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
...
...
script/c90241276.lua
View file @
dbde3117
...
@@ -39,7 +39,6 @@ function s.initial_effect(c)
...
@@ -39,7 +39,6 @@ function s.initial_effect(c)
e4
:
SetOperation
(
s
.
mvop
)
e4
:
SetOperation
(
s
.
mvop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
--sp
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
end
end
...
@@ -53,7 +52,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +52,6 @@ function s.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
,
false
,
false
,
POS_FACEUP
)
end
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
--th
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x19c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x19c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
...
@@ -69,7 +67,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +67,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
--move
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
end
end
...
...
script/c90711610.lua
View file @
dbde3117
...
@@ -41,11 +41,11 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,11 +41,11 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_EFFECT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_EFFECT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
id
,
2
))
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
id
,
2
))
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_EFFECT
)
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_EFFECT
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
end
end
end
end
...
@@ -54,14 +54,14 @@ function s.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,14 +54,14 @@ function s.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_EFFECT
)
then
if
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_EFFECT
)
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_EFFECT
)
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
id
,
3
))
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
id
,
3
))
then
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
cg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
cg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
end
end
end
end
end
end
\ No newline at end of file
script/c9551692.lua
View file @
dbde3117
...
@@ -29,8 +29,6 @@ function s.initial_effect(c)
...
@@ -29,8 +29,6 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
ssop
)
e3
:
SetOperation
(
s
.
ssop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
--spsummon
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
end
end
...
@@ -52,8 +50,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,8 +50,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
--special summon
function
s
.
ssfilter
(
c
)
function
s
.
ssfilter
(
c
)
return
c
:
IsType
(
TYPE_FLIP
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsType
(
TYPE_FLIP
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
script/c96029570.lua
View file @
dbde3117
...
@@ -103,7 +103,7 @@ end
...
@@ -103,7 +103,7 @@ end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c96113307.lua
View file @
dbde3117
...
@@ -67,7 +67,7 @@ function s.bsop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +67,7 @@ function s.bsop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
sumc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
sfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
):
GetFirst
()
local
sumc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
sfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
sumc
then
Duel
.
Summon
(
tp
,
sumc
,
true
,
nil
)
end
if
sumc
then
Duel
.
Summon
(
tp
,
sumc
,
true
,
nil
)
end
end
end
end
end
end
end
...
...
script/c96402918.lua
View file @
dbde3117
--氷霊山の龍祖 ランセア
--氷霊山の龍祖 ランセア
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
...
script/c98520301.lua
View file @
dbde3117
...
@@ -31,7 +31,6 @@ function s.initial_effect(c)
...
@@ -31,7 +31,6 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
thop
)
e3
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
spfilter
(
c
)
function
s
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
6
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
6
)
end
end
...
@@ -46,7 +45,8 @@ function s.poscon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +45,8 @@ function s.poscon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
end
end
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
sg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
...
...
script/c99529628.lua
View file @
dbde3117
...
@@ -44,7 +44,6 @@ function s.initial_effect(c)
...
@@ -44,7 +44,6 @@ function s.initial_effect(c)
e4
:
SetLabelObject
(
e3
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
--sp
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
end
end
...
@@ -62,7 +61,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +61,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
--remove
function
s
.
spfilter1
(
c
,
e
,
tp
)
function
s
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
6
)
and
c
:
IsRace
(
RACE_FISH
)
and
e
:
GetHandler
():
IsAbleToRemove
()
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
6
)
and
c
:
IsRace
(
RACE_FISH
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
end
...
@@ -101,7 +99,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,7 +99,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
--spsummon
function
s
.
spreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetTurnCount
()
local
ct
=
Duel
.
GetTurnCount
()
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
...
...
script/c99599062.lua
View file @
dbde3117
...
@@ -23,9 +23,7 @@ function s.initial_effect(c)
...
@@ -23,9 +23,7 @@ function s.initial_effect(c)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
--to spsummon 0x21
function
s
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
...
@@ -44,7 +42,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +42,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -59,11 +57,10 @@ end
...
@@ -59,11 +57,10 @@ end
function
s
.
splimit
(
e
,
c
)
function
s
.
splimit
(
e
,
c
)
return
not
(
c
:
IsType
(
TYPE_SYNCHRO
)
or
c
:
IsType
(
TYPE_FUSION
))
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
(
c
:
IsType
(
TYPE_SYNCHRO
)
or
c
:
IsType
(
TYPE_FUSION
))
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
--fusion
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
nil
)
or
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
or
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
end
end
function
s
.
filter1
(
c
,
e
)
function
s
.
filter1
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
...
...
test-update.cdb
View file @
dbde3117
No preview for this file type
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