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
Crescent/毛虫
pre-release-database-cdb
Commits
486eff66
You need to sign in or sign up before continuing.
Commit
486eff66
authored
Apr 08, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.mycard.moe/mycard/pre-release-database-cdb
parents
bbf67858
9cc2b21b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
169 additions
and
12 deletions
+169
-12
script/c100220000.lua
script/c100220000.lua
+154
-0
script/c101205028.lua
script/c101205028.lua
+13
-11
script/c101205073.lua
script/c101205073.lua
+2
-1
No files found.
script/c100220000.lua
0 → 100644
View file @
486eff66
--白の枢機竜
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
68468459
)
--aux.AddFusionProcCodeFun(c,68468459,s.mfilter,6,true,true)
c
:
EnableReviveLimit
()
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e0
:
SetCondition
(
s
.
Alba_System_Drugmata_Fusion_Condition
())
e0
:
SetOperation
(
s
.
Alba_System_Drugmata_Fusion_Operation
())
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
fuslimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ATTACK_ALL
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_ATTACK_COST
)
e3
:
SetCost
(
s
.
atcost
)
e3
:
SetOperation
(
s
.
atop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
s
.
tgcon
)
e4
:
SetTarget
(
s
.
tgtg
)
e4
:
SetOperation
(
s
.
tgop
)
c
:
RegisterEffect
(
e4
)
end
function
s
.
Alba_System_Drugmata_Fusion_Filter
(
c
,
mg
,
fc
,
tp
,
chkf
,
gc
)
if
not
c
:
IsFusionCode
(
68468459
)
and
not
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
then
return
false
end
local
g
=
mg
:
Filter
(
s
.
matfilter
,
c
,
tp
)
aux
.
GCheckAdditional
=
aux
.
dncheck
local
res
=
g
:
CheckSubGroup
(
s
.
Alba_System_Drugmata_Fusion_Gcheck
,
6
,
6
,
fc
,
tp
,
c
,
chkf
,
gc
)
aux
.
GCheckAdditional
=
nil
return
res
end
function
s
.
matfilter
(
c
,
fc
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
not
c
:
IsHasEffect
(
6205579
)
end
function
s
.
Alba_System_Drugmata_Fusion_Gcheck
(
g
,
fc
,
tp
,
ec
,
chkf
,
gc
)
local
sg
=
g
:
Clone
()
sg
:
AddCard
(
ec
)
if
sg
:
IsExists
(
aux
.
TuneMagicianCheckX
,
1
,
nil
,
sg
,
EFFECT_TUNE_MAGICIAN_F
)
then
return
false
end
if
gc
and
not
sg
:
IsContains
(
gc
)
then
return
false
end
if
aux
.
FCheckAdditional
and
not
aux
.
FCheckAdditional
(
tp
,
sg
,
fc
)
or
aux
.
FGoalCheckAdditional
and
not
aux
.
FGoalCheckAdditional
(
tp
,
sg
,
fc
)
then
return
false
end
return
g
:
GetClassCount
(
Card
.
GetFusionCode
)
==
g
:
GetCount
()
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
)
end
function
s
.
Alba_System_Drugmata_Fusion_Condition
()
return
function
(
e
,
g
,
gc
,
chkf
)
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
local
fc
=
e
:
GetHandler
()
local
tp
=
e
:
GetHandlerPlayer
()
if
gc
then
if
not
g
:
IsContains
(
gc
)
then
return
false
end
return
g
:
IsExists
(
s
.
Alba_System_Drugmata_Fusion_Filter
,
1
,
nil
,
g
,
fc
,
tp
,
chkf
,
gc
)
end
return
g
:
IsExists
(
s
.
Alba_System_Drugmata_Fusion_Filter
,
1
,
nil
,
g
,
fc
,
tp
,
chkf
,
nil
)
end
end
function
s
.
Alba_System_Drugmata_Fusion_Operation
()
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
local
fc
=
e
:
GetHandler
()
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
nil
if
gc
then
if
s
.
Alba_System_Drugmata_Fusion_Filter
(
gc
,
eg
,
fc
,
tp
,
chkf
)
then
g
=
Group
.
FromCards
(
gc
)
eg
:
RemoveCard
(
gc
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g
=
eg
:
FilterSelect
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Filter
,
1
,
1
,
nil
,
eg
,
fc
,
tp
,
chkf
,
gc
)
eg
:
Sub
(
g
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g
=
eg
:
FilterSelect
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Filter
,
1
,
1
,
nil
,
eg
,
fc
,
tp
,
chkf
,
nil
)
eg
:
Sub
(
g
)
end
local
sg
=
nil
aux
.
GCheckAdditional
=
aux
.
dncheck
local
mg
=
eg
:
Filter
(
s
.
matfilter
,
c
,
tp
)
if
gc
and
g
:
IsContains
(
gc
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
sg
=
mg
:
SelectSubGroup
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Gcheck
,
false
,
6
,
6
,
fc
,
tp
,
g
:
GetFirst
(),
chkf
,
gc
)
else
if
gc
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
sg
=
mg
:
SelectSubGroup
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Gcheck
,
false
,
6
,
6
,
fc
,
tp
,
g
:
GetFirst
(),
chkf
,
gc
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
sg
=
mg
:
SelectSubGroup
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Gcheck
,
true
,
6
,
6
,
fc
,
tp
,
g
:
GetFirst
(),
chkf
,
nil
)
end
end
aux
.
GCheckAdditional
=
nil
while
not
sg
do
eg
:
AddCard
(
g
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g
=
eg
:
FilterSelect
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Filter
,
1
,
1
,
nil
,
eg
,
fc
,
tp
,
chkf
,
nil
)
eg
:
Sub
(
g
)
local
mg
=
eg
:
Filter
(
s
.
matfilter
,
c
,
tp
)
aux
.
GCheckAdditional
=
aux
.
dncheck
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
sg
=
mg
:
SelectSubGroup
(
tp
,
s
.
Alba_System_Drugmata_Fusion_Gcheck
,
true
,
6
,
6
,
fc
,
tp
,
g
:
GetFirst
(),
chkf
)
aux
.
GCheckAdditional
=
nil
end
g
:
Merge
(
sg
)
Duel
.
SetFusionMaterial
(
g
)
end
end
function
s
.
costfilter
(
c
)
return
c
:
IsAbleToGraveAsCost
()
end
function
s
.
atcost
(
e
,
c
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
function
s
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
costfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
cg
,
REASON_COST
)
end
function
s
.
cfilter
(
c
)
return
aux
.
IsMaterialListCode
(
c
,
68468459
)
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
5
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_EXTRA
,
LOCATION_EXTRA
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_EXTRA
,
LOCATION_EXTRA
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_EXTRA
,
LOCATION_EXTRA
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
\ No newline at end of file
script/c101205028.lua
View file @
486eff66
...
...
@@ -11,15 +11,15 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
thtg
)
e1
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e1
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DECKDES
)
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCountLimit
(
1
)
e
1
:
SetTarget
(
s
.
atktg
)
e
1
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e
1
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DECKDES
)
e
2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
)
e
2
:
SetTarget
(
s
.
atktg
)
e
2
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e
2
)
end
function
s
.
filter
(
c
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
...
...
@@ -40,9 +40,10 @@ function s.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
id
)
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
then
return
end
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
...
...
@@ -50,8 +51,9 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRace
(
RACE_DRAGON
)
and
tc
:
IsAttribute
(
ATTRIBUTE_FIRE
)
then
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
+
REASON_REVEAL
)
local
atk
=
Duel
.
GetMatchingGroupCount
(
s
.
cfilter
,
c
:
GetControler
(),
LOCATION_
MZONE
,
0
,
nil
)
*
1000
local
atk
=
Duel
.
GetMatchingGroupCount
(
s
.
cfilter
,
c
:
GetControler
(),
LOCATION_
ONFIELD
,
0
,
nil
)
*
1000
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
atk
>
0
then
Duel
.
BreakEffect
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
script/c101205073.lua
View file @
486eff66
...
...
@@ -68,8 +68,9 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
ft
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
LOCATION_SZONE
,
1
,
ft
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
ft
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
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