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
fd1127c6
Commit
fd1127c6
authored
Nov 12, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 繋がり-Ai-
parent
46bd3895
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
28 deletions
+37
-28
script/c101208207.lua
script/c101208207.lua
+37
-28
No files found.
script/c101208207.lua
View file @
fd1127c6
...
...
@@ -17,21 +17,21 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
true
end
end
function
s
.
thfilter
(
c
,
res
,
att
)
if
res
then
if
c
:
IsLevelAbove
(
5
)
or
not
c
:
IsRace
(
RACE_CYBERSE
)
then
return
false
end
else
if
not
c
:
IsSetCard
(
0x135
)
then
return
false
end
end
return
not
c
:
IsAttribute
(
att
)
and
c
:
IsAbleToHand
()
function
s
.
thdfilter
(
c
)
return
c
:
IsAbleToHand
()
and
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
)
end
function
s
.
thndfilter
(
c
,
att
)
return
c
:
IsAbleToHand
()
and
not
c
:
IsAttribute
(
att
)
and
c
:
IsSetCard
(
0x135
)
end
---@param c Card
function
s
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
not
c
:
IsPublic
()
and
(
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
th
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
,
ATTRIBUTE_DARK
)
and
Duel
.
IsExistingMatchingCard
(
s
.
th
dfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToDeck
()
and
Duel
.
IsExistingMatchingCard
(
s
.
th
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
,
c
:
GetAttribute
()))
and
Duel
.
IsExistingMatchingCard
(
s
.
th
ndfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetAttribute
()))
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -44,31 +44,40 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
local
gc
=
g
:
GetFirst
()
if
gc
:
IsAttribute
(
ATTRIBUTE_DARK
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
gc
,
1
,
0
,
0
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
gc
,
1
,
0
,
0
)
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
end
Duel
.
SetTargetCard
(
g
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
false
end
if
tc
:
IsAttribute
(
ATTRIBUTE_DARK
)
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
,
ATTRIBUTE_DARK
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
true
,
ATTRIBUTE_DARK
)
if
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
(
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsAttribute
(
ATTRIBUTE_DARK
)
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
thdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
else
if
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
,
c
:
GetAttribute
())
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
false
,
c
:
GetAttribute
())
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
else
local
att
=
tc
:
GetAttribute
()
if
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thndfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
att
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thndfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
att
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
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