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
e19a7884
Commit
e19a7884
authored
Jul 06, 2024
by
Crescent/毛虫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c10206060.lua
parent
b3f35acf
Pipeline
#28138
failed with stages
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
script/c101206060.lua
script/c101206060.lua
+8
-16
No files found.
script/c101206060.lua
View file @
e19a7884
...
@@ -14,11 +14,6 @@ function s.initial_effect(c)
...
@@ -14,11 +14,6 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCost
(
s
.
cost1
)
e2
:
SetCondition
(
s
.
con
)
c
:
RegisterEffect
(
e2
)
--set
--set
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
...
@@ -33,23 +28,20 @@ end
...
@@ -33,23 +28,20 @@ end
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
not
c
:
IsCode
(
id
)
and
(
c
:
IsSetCard
(
0x2b9
)
or
c
:
IsType
(
TYPE_NORMAL
))
and
not
c
:
IsPublic
()
return
not
c
:
IsCode
(
id
)
and
(
c
:
IsSetCard
(
0x2b9
)
or
c
:
IsType
(
TYPE_NORMAL
))
and
not
c
:
IsPublic
()
end
end
function
s
.
confilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
and
(
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
IsSetCard
(
0x2b9
)
and
c
:
IsLevelAbove
(
5
))
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
local
b2
=
Duel
.
GetMatchingGroupCount
(
s
.
confilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
>
0
if
chk
==
0
then
return
b1
or
b2
end
if
b2
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
s
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
end
function
s
.
confilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
and
(
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
IsSetCard
(
0x2b9
)
and
c
:
IsLevelAbove
(
5
))
end
function
s
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetMatchingGroupCount
(
s
.
confilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
>
0
end
function
s
.
nbfilter
(
c
)
function
s
.
nbfilter
(
c
)
return
c
:
IsFaceup
()
and
aux
.
NegateAnyFilter
(
c
)
and
c
:
IsAbleToRemove
()
return
c
:
IsFaceup
()
and
aux
.
NegateAnyFilter
(
c
)
and
c
:
IsAbleToRemove
()
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