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
e31ec9f2
Commit
e31ec9f2
authored
Jan 20, 2025
by
Amiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nex
parent
2037591a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
script/c101208024.lua
script/c101208024.lua
+2
-4
script/c101208076.lua
script/c101208076.lua
+2
-2
No files found.
script/c101208024.lua
View file @
e31ec9f2
...
...
@@ -34,7 +34,7 @@ function s.initial_effect(c)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
3
))
e4
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_TOGRAVE
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -45,12 +45,10 @@ function s.initial_effect(c)
--set
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
id
,
4
))
e5
:
SetCategory
(
CATEGORY_TOGRAVE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCode
(
EVENT_DESTROYED
)
e5
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e5
:
SetCondition
(
s
.
setcon
)
e5
:
SetTarget
(
s
.
settg
)
e5
:
SetOperation
(
s
.
setop
)
c
:
RegisterEffect
(
e5
)
...
...
@@ -77,7 +75,7 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x1c0
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsSetCard
(
0x1c0
)
and
not
c
:
IsCode
(
id
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
s
.
spfilter
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
(),
tp
)
end
...
...
script/c101208076.lua
View file @
e31ec9f2
...
...
@@ -51,7 +51,7 @@ end
function
s
.
tdfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1c0
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
end
function
s
.
d
r
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
d
es
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tdfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
2
,
2
,
nil
)
...
...
@@ -72,7 +72,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
setfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x
d
0
)
and
c
:
IsType
(
TYPE_TRAP
)
and
not
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsSSetable
()
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x
1c
0
)
and
c
:
IsType
(
TYPE_TRAP
)
and
not
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
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