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
823dcdfe
Commit
823dcdfe
authored
Jul 29, 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
267591e5
e11d04e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
script/c101205086.lua
script/c101205086.lua
+9
-2
No files found.
script/c101205086.lua
View file @
823dcdfe
...
...
@@ -38,6 +38,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
code
,
tp
)
if
#
g
<
2
then
return
end
g
:
KeepAlive
()
local
ec
=
g
:
GetFirst
()
while
ec
do
if
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
...
...
@@ -57,12 +58,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetLabelObject
(
g
)
e1
:
SetCondition
(
s
.
chkcon
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetValue
(
1
)
e2
:
SetLabelObject
(
g
)
e2
:
SetCondition
(
s
.
chkcon
)
tc
:
RegisterEffect
(
e2
)
end
...
...
@@ -81,9 +84,13 @@ end
function
s
.
splimit
(
e
,
c
)
return
c
:
GetOriginalRace
()
&
e
:
GetLabel
()
==
0
end
function
s
.
chkfilter
(
c
,
id
,
eg
)
return
c
:
GetFlagEffect
(
id
)
>
0
and
eg
:
IsContains
(
c
)
end
function
s
.
chkcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
GetEquipGroup
():
Filter
(
Card
.
GetFlagEffect
,
nil
,
id
):
GetCount
()
>=
2
local
eg
=
e
:
GetHandler
():
GetEquipGroup
()
local
g
=
e
:
GetLabelObject
()
return
g
:
Filter
(
s
.
chkfilter
,
nil
,
id
,
eg
):
GetCount
()
==
2
end
function
s
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
...
...
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