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
MyCard
pre-release-database-cdb
Commits
613d460c
Commit
613d460c
authored
Nov 17, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
18af3681
Pipeline
#41682
passed with stages
in 2 minutes and 58 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
53 deletions
+59
-53
script/c100255011.lua
script/c100255011.lua
+3
-1
script/c100255012.lua
script/c100255012.lua
+1
-0
script/c100255013.lua
script/c100255013.lua
+13
-12
script/c100255014.lua
script/c100255014.lua
+18
-19
script/c100255015.lua
script/c100255015.lua
+6
-7
script/c100255016.lua
script/c100255016.lua
+8
-7
script/c100255017.lua
script/c100255017.lua
+10
-7
No files found.
script/c100255011.lua
View file @
613d460c
...
...
@@ -50,7 +50,8 @@ function s.cfilter2(c,lv)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
:
IsRelateToChain
()
and
aux
.
NecroValleyFilter
()(
tc
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
lv
=
0
if
tc
:
IsLevelAbove
(
1
)
then
lv
=
tc
:
GetLevel
()
end
if
tc
:
IsRankAbove
(
1
)
then
lv
=
tc
:
GetRank
()
end
...
...
@@ -60,6 +61,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
tc
,
lv
)
local
tc2
=
g
:
GetFirst
()
Duel
.
HintSelection
(
g
)
local
lv2
=
0
if
tc2
:
IsLevelAbove
(
1
)
then
lv2
=
tc2
:
GetLevel
()
end
if
tc2
:
IsRankAbove
(
1
)
then
lv2
=
tc2
:
GetRank
()
end
...
...
script/c100255012.lua
View file @
613d460c
...
...
@@ -7,6 +7,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c100255013.lua
View file @
613d460c
...
...
@@ -29,36 +29,37 @@ function s.atkfilter(c)
return
c
:
IsSetCard
(
0x7f
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
cg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
spfilter
)
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
#
cg
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
cg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SpecialSummon
Step
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
ag
=
Duel
.
GetMatchingGroup
(
s
.
atkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
atk
=
ag
:
GetSum
(
Card
.
GetAttack
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e1
)
end
Duel
.
SpecialSummonComplete
()
end
end
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
eg
:
GetFirst
()
return
rc
==
Duel
.
GetAttacker
()
and
rc
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
rc
:
IsFaceup
()
and
rc
:
IsSetCard
(
0x7f
)
and
rc
:
IsType
(
TYPE_XYZ
)
and
rc
:
IsAttackAbove
(
1000
)
and
rc
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
rc
:
IsControler
(
tp
)
and
rc
:
IsAttackAbove
(
1000
)
and
rc
:
IsControler
(
tp
)
and
(
rc
:
GetOriginalAttribute
()
&
ATTRIBUTE_LIGHT
)
~=
0
and
not
rc
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsFaceup
()
then
if
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c100255014.lua
View file @
613d460c
...
...
@@ -9,7 +9,6 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,32 +21,32 @@ function s.desfilter(c,atk)
return
c
:
IsAttackBelow
(
atk
-
1
)
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
cfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
cfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
g
:
GetFirst
():
GetAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToChain
()
then
return
end
if
tc
:
IsFaceup
()
then
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
then
local
sg
=
Duel
.
GetOperatedGroup
()
local
dam
=
sg
:
GetSum
(
Card
.
GetBaseAttack
)
if
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
dam
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
local
hg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
nil
)
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
if
not
tc
:
IsRelateToChain
()
or
not
tc
:
IsFaceup
()
or
not
tc
:
IsType
(
TYPE_MONSTER
)
then
return
end
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttack
())
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
then
local
sg
=
Duel
.
GetOperatedGroup
()
local
dam
=
sg
:
GetSum
(
Card
.
GetBaseAttack
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
REASON_EFFECT
)
and
dam
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
hg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_
EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
script/c100255015.lua
View file @
613d460c
...
...
@@ -8,6 +8,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
...
...
@@ -23,8 +24,6 @@ function s.initial_effect(c)
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
p1
=
false
local
p2
=
false
while
tc
do
if
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
then
...
...
@@ -46,7 +45,7 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
:
Filter
(
s
.
filter1
,
nil
,
e
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
@@ -80,18 +79,19 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
ce
and
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
if
ce
then
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
tc
:
CompleteProcedure
()
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
id
,
1
))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
...
@@ -114,7 +114,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
,
true
)
end
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
id
,
1
))
end
end
function
s
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -132,7 +131,7 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateTo
Effect
(
e
)
and
tc
:
IsFaceup
(
)
then
if
tc
:
IsRelateTo
Chain
()
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c100255016.lua
View file @
613d460c
...
...
@@ -47,7 +47,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
race
,
att
)
end
function
s
.
filter1
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsOnField
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
s
.
filter2
(
c
,
e
,
tp
,
m
,
ec
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
...
...
@@ -85,8 +85,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
if
res
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
filter1
,
nil
,
e
)
chkf
=
tp
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
filter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
ec
,
nil
,
chkf
)
local
mg2
=
nil
local
sg2
=
nil
...
...
@@ -103,13 +103,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
ce
and
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
ec
,
chkf
)
tc
:
SetMaterial
(
mat1
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
if
ce
then
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
ec
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
...
...
@@ -138,17 +138,18 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
srg
=
rg
:
FilterSelect
(
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
if
srg
:
GetCount
()
>
0
then
local
rc
=
srg
:
GetFirst
()
local
level
=
rc
:
GetLevel
()
if
Duel
.
Release
(
rc
,
REASON_EFFECT
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
rc
:
GetLevel
()
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
level
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
id
+
o
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
e1
:
SetValue
(
rc
:
GetLevel
()
)
e1
:
SetValue
(
level
)
token
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c100255017.lua
View file @
613d460c
...
...
@@ -11,10 +11,10 @@ function s.initial_effect(c)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
aux
.
ds
con
)
e1
:
SetCost
(
s
.
atkcost
1
)
e1
:
SetCondition
(
s
.
atk
con
)
e1
:
SetCost
(
s
.
atkcost
)
e1
:
SetTarget
(
s
.
atktg
)
e1
:
SetOperation
(
s
.
atkop
1
)
e1
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e1
)
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -29,7 +29,10 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
eqop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
atkcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsBattlePhase
()
and
aux
.
dscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
s
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
...
...
@@ -42,9 +45,9 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
s
.
atkop
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToChain
()
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
@@ -68,7 +71,7 @@ end
function
s
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
aux
.
NecroValleyFilter
()(
c
)
and
c
:
IsRelateTo
Effect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
if
aux
.
NecroValleyFilter
()(
c
)
and
c
:
IsRelateTo
Chain
()
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToChain
(
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
--equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
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