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
yks
pre-release-database-cdb
Commits
21131feb
Commit
21131feb
authored
Feb 07, 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
2e4f7c0d
eaa517bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
44 deletions
+54
-44
script/c101204043.lua
script/c101204043.lua
+19
-11
script/c101205053.lua
script/c101205053.lua
+35
-33
No files found.
script/c101204043.lua
View file @
21131feb
...
@@ -19,22 +19,28 @@ function s.initial_effect(c)
...
@@ -19,22 +19,28 @@ function s.initial_effect(c)
--cannot remove
--cannot remove
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_REMOVE
)
e2
:
SetCode
(
EFFECT_CANNOT_REMOVE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTarget
(
s
.
efilter
)
e2
:
SetTarget
(
s
.
efilter
)
c
:
RegisterEffect
(
e2
)
--remove and tograve
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DECKDES
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
id
+
o
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetCost
(
s
.
recost
)
e3
:
SetTarget
(
s
.
eftg
)
e3
:
SetTarget
(
s
.
retg
)
e3
:
SetLabelObject
(
e2
)
e3
:
SetOperation
(
s
.
reop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--remove and tograve
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DECKDES
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
id
+
o
)
e4
:
SetCost
(
s
.
recost
)
e4
:
SetTarget
(
s
.
retg
)
e4
:
SetOperation
(
s
.
reop
)
c
:
RegisterEffect
(
e4
)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
@@ -58,8 +64,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,8 +64,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
efilter
(
e
,
c
,
rp
,
r
,
re
)
function
s
.
efilter
(
e
,
c
,
rp
,
r
,
re
)
local
tp
=
e
:
GetHandlerPlayer
()
return
c
==
e
:
GetHandler
()
and
r
&
REASON_EFFECT
>
0
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x38
)
and
re
and
r
&
REASON_EFFECT
>
0
end
function
s
.
eftg
(
e
,
c
)
return
c
:
IsSetCard
(
0x38
)
and
c
:
IsFaceup
()
end
end
function
s
.
refilter
(
c
)
function
s
.
refilter
(
c
)
return
c
:
IsSetCard
(
0x38
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x38
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
script/c101205053.lua
View file @
21131feb
...
@@ -17,15 +17,42 @@ function s.spfilter(c,e,tp)
...
@@ -17,15 +17,42 @@ function s.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
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_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsExistingMatchingCard
(
s
.
ndfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
s
.
t
dfilter
(
c
)
function
s
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
c
:
IsAbleToDeck
()
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
not
(
c
:
GetOriginalLevel
()
>=
10
and
c
:
IsSetCard
(
0xde
)
or
c
:
IsSetCard
(
0x2ae
))
and
not
(
c
:
GetOriginalLevel
()
>=
10
and
c
:
IsSetCard
(
0xde
)
or
c
:
IsSetCard
(
0x2ae
))
end
end
function
s
.
afactivate
(
e
,
tp
)
function
s
.
tdfilter
(
c
)
return
s
.
dfilter
(
c
)
and
c
:
IsAbleToDeck
()
end
function
s
.
ndfilter
(
c
)
return
s
.
dfilter
(
c
)
and
not
c
:
IsAbleToDeck
()
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
5
,
nil
,
e
,
tp
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
>=
1
then
Duel
.
ShuffleHand
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
sg
:
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
#
tg
>
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
...
@@ -41,35 +68,10 @@ function s.afactivate(e,tp)
...
@@ -41,35 +68,10 @@ function s.afactivate(e,tp)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
c
:
IsRelateToEffect
(
e
)
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
if
c
:
IsRelateToEffect
(
e
)
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
if
c
:
IsAbleToDeck
()
then
end
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
else
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
:
CancelToGrave
(
false
)
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
nil
)
then
s
.
afactivate
(
e
,
tp
)
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
5
,
5
,
nil
,
e
,
tp
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
>=
1
then
Duel
.
ShuffleHand
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
sg
:
GetFirst
()
if
not
tc
then
s
.
afactivate
(
e
,
tp
)
return
end
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
#
tg
>
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
end
end
s
.
afactivate
(
e
,
tp
)
end
end
\ No newline at end of file
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