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
Vee4
pre-release-database-cdb
Commits
3d85aac9
Commit
3d85aac9
authored
Jul 07, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
9010968b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
154 additions
and
46 deletions
+154
-46
SD48.cdb
SD48.cdb
+0
-0
pack/2025-09-06 SD48.ydk
pack/2025-09-06 SD48.ydk
+5
-0
pics/100200277.jpg
pics/100200277.jpg
+0
-0
script-fix.cdb
script-fix.cdb
+0
-0
script/c100200277.lua
script/c100200277.lua
+1
-1
script/c100244001.lua
script/c100244001.lua
+3
-4
script/c100244002.lua
script/c100244002.lua
+6
-4
script/c100244005.lua
script/c100244005.lua
+25
-15
script/c100244032.lua
script/c100244032.lua
+21
-20
script/c101302037.lua
script/c101302037.lua
+1
-1
script/c101302042.lua
script/c101302042.lua
+1
-1
script/c8529136.lua
script/c8529136.lua
+91
-0
No files found.
SD48.cdb
View file @
3d85aac9
No preview for this file type
pack/2025-09-06 SD48.ydk
0 → 100644
View file @
3d85aac9
#created by ygomobile
100244001
100244002
100244005
100244032
\ No newline at end of file
pics/100200277.jpg
0 → 100644
View file @
3d85aac9
118 KB
script-fix.cdb
View file @
3d85aac9
No preview for this file type
script/c100200277.lua
View file @
3d85aac9
...
@@ -88,4 +88,4 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,4 +88,4 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
and
c
:
IsRelateToChain
()
and
c
:
IsCanOverlay
()
and
aux
.
NecroValleyFilter
()(
c
)
then
and
c
:
IsRelateToChain
()
and
c
:
IsCanOverlay
()
and
aux
.
NecroValleyFilter
()(
c
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
\ No newline at end of file
script/c100244001.lua
View file @
3d85aac9
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
6
3977008
,
60800381
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
c
:
IsCode
(
8529136
))
and
c
:
IsAbleToHand
()
return
(
aux
.
IsCodeListed
(
c
,
6
0800381
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
c
:
IsCode
(
63977008
))
and
c
:
IsAbleToHand
()
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_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
@@ -43,9 +43,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,9 +43,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
IsBattlePhase
()
and
Duel
.
GetTurnPlayer
()
==
e
:
GetHandlerPlayer
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
end
function
s
.
atktg
(
e
,
c
)
function
s
.
atktg
(
e
,
c
)
return
aux
.
IsCodeListed
(
c
,
60800381
)
or
c
:
IsOriginalSetCard
(
0x43
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
aux
.
IsCodeListed
(
c
,
60800381
)
or
c
:
IsOriginalSetCard
(
0x43
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
\ No newline at end of file
script/c100244002.lua
View file @
3d85aac9
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
spcon
)
e1
:
SetCondition
(
s
.
spcon
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetTarget
(
s
.
sptg
)
...
@@ -16,10 +17,11 @@ function s.initial_effect(c)
...
@@ -16,10 +17,11 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
60800381
)
or
aux
.
IsCodeListed
(
c
,
60800381
))
return
c
:
IsFaceup
()
and
not
c
:
IsCode
(
id
)
and
(
c
:
IsCode
(
60800381
)
or
aux
.
IsCodeListed
(
c
,
60800381
)
and
c
:
IsType
(
TYPE_MONSTER
))
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
0
,
LOCATION_
MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
nil
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
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
...
@@ -28,7 +30,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,7 +30,7 @@ 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
:
IsRelateToChain
()
then
if
c
:
IsRelateToChain
()
and
aux
.
NecroValleyFilter
()(
c
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -42,4 +44,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,4 +44,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
splimit
(
e
,
c
)
function
s
.
splimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
\ No newline at end of file
script/c100244005.lua
View file @
3d85aac9
...
@@ -4,14 +4,15 @@ function s.initial_effect(c)
...
@@ -4,14 +4,15 @@ function s.initial_effect(c)
aux
.
AddMaterialCodeList
(
c
,
63977008
,
60800381
,
44508094
)
aux
.
AddMaterialCodeList
(
c
,
63977008
,
60800381
,
44508094
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
substitute as a monster
--
lvdown
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
)
...
@@ -22,32 +23,40 @@ function s.initial_effect(c)
...
@@ -22,32 +23,40 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
lvop
)
e2
:
SetOperation
(
s
.
lvop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
cfilter
(
c
)
function
s
.
thfilter1
(
c
)
return
c
:
IsCode
(
63977008
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
63977008
)
and
c
:
IsAbleToHand
()
end
end
function
s
.
thfilter2
(
c
)
return
(
aux
.
IsCodeListed
(
c
,
60800381
)
or
aux
.
IsCodeListed
(
c
,
44508094
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
(
c
:
IsCode
(
63977008
)
or
(
aux
.
IsCodeListed
(
c
,
60800381
)
or
aux
.
IsCodeListed
(
c
,
44508094
))
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
63977008
)
or
(
aux
.
IsCodeListed
(
c
,
60800381
)
or
aux
.
IsCodeListed
(
c
,
44508094
))
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
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
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
and
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
g
:
CheckSubGroup
(
aux
.
gffcheck
,
2
,
2
,
s
.
thfilter1
,
nil
,
s
.
thfilter2
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
end
function
s
.
check
(
g
)
function
s
.
check
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
and
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
and
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
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
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
<
2
then
return
end
if
not
g
:
CheckSubGroup
(
aux
.
gffcheck
,
2
,
2
,
s
.
thfilter1
,
nil
,
s
.
thfilter2
,
nil
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg1
=
g
:
SelectSubGroup
(
tp
,
s
.
check
,
false
,
2
,
2
)
local
tg1
=
g
:
SelectSubGroup
(
tp
,
aux
.
gffcheck
,
false
,
2
,
2
,
s
.
thfilter1
,
nil
,
s
.
thfilter2
,
nil
)
Duel
.
SendtoHand
(
tg1
,
nil
,
REASON_EFFECT
)
if
#
tg1
==
2
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg1
)
Duel
.
SendtoHand
(
tg1
,
nil
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg1
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
end
function
s
.
lvfilter
(
c
)
function
s
.
lvfilter
(
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
GetLevel
()
>
1
and
c
:
IsFaceup
()
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
GetLevel
()
>
1
and
c
:
IsFaceup
()
...
@@ -61,7 +70,8 @@ end
...
@@ -61,7 +70,8 @@ end
function
s
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
lvop
(
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
tc
:
IsRelateToChain
()
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToChain
()
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
GetLevel
()
>
1
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
...
@@ -80,4 +90,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,4 +90,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
end
end
end
\ No newline at end of file
script/c100244032.lua
View file @
3d85aac9
...
@@ -47,26 +47,27 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,26 +47,27 @@ 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
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
ft
<=
0
then
return
end
if
ft
>
0
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
local
g
=
nil
local
g
=
nil
if
tg
:
GetCount
()
>
ft
then
if
tg
:
GetCount
()
>
ft
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
g
=
tg
:
Select
(
tp
,
ft
,
ft
,
nil
)
g
=
tg
:
Select
(
tp
,
ft
,
ft
,
nil
)
else
else
g
=
tg
g
=
tg
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
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
)
end
Duel
.
SpecialSummonComplete
()
end
end
Duel
.
SpecialSummonComplete
()
end
end
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -116,4 +117,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -116,4 +117,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
end
end
\ No newline at end of file
script/c101302037.lua
View file @
3d85aac9
...
@@ -83,4 +83,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,4 +83,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToChain
()
and
aux
.
NecroValleyFilter
()(
c
)
then
if
c
:
IsRelateToChain
()
and
aux
.
NecroValleyFilter
()(
c
)
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
\ No newline at end of file
script/c101302042.lua
View file @
3d85aac9
...
@@ -74,4 +74,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,4 +74,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
script/c8529136.lua
0 → 100644
View file @
3d85aac9
--スクラップ・フィスト
function
c8529136
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
60800381
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c8529136
.
condition
)
e1
:
SetTarget
(
c8529136
.
target
)
e1
:
SetOperation
(
c8529136
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c8529136
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
<
PHASE_MAIN2
end
function
c8529136
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
60800381
)
and
c
:
GetFlagEffect
(
8529136
)
==
0
end
function
c8529136
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c8529136
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c8529136
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c8529136
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c8529136
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
GetFlagEffect
(
8529136
)
==
0
then
tc
:
RegisterFlagEffect
(
8529136
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetCondition
(
c8529136
.
actcon
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_PIERCE
)
e2
:
SetCondition
(
c8529136
.
effcon
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CHANGE_BATTLE_DAMAGE
)
e3
:
SetCondition
(
c8529136
.
damcon
)
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
DOUBLE_DAMAGE
))
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
,
true
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetCondition
(
c8529136
.
effcon
)
e4
:
SetValue
(
1
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
)
end
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e5
:
SetCondition
(
c8529136
.
descon
)
e5
:
SetOperation
(
c8529136
.
desop
)
e5
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e5
,
true
)
end
end
function
c8529136
.
actcon
(
e
)
local
c
=
e
:
GetHandler
()
return
(
Duel
.
GetAttacker
()
==
c
or
Duel
.
GetAttackTarget
()
==
c
)
and
c
:
GetBattleTarget
()
~=
nil
and
e
:
GetOwnerPlayer
()
==
e
:
GetHandlerPlayer
()
end
function
c8529136
.
effcon
(
e
)
return
e
:
GetOwnerPlayer
()
==
e
:
GetHandlerPlayer
()
end
function
c8529136
.
damcon
(
e
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
end
function
c8529136
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
return
tc
and
tc
:
IsRelateToBattle
()
and
e
:
GetOwnerPlayer
()
==
tp
end
function
c8529136
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
Hint
(
HINT_CARD
,
0
,
8529136
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
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