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
533e5d7c
Commit
533e5d7c
authored
Apr 11, 2024
by
zengsxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c101205024.lua
parent
d6654c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
script/c101205024.lua
script/c101205024.lua
+12
-14
No files found.
script/c101205024.lua
View file @
533e5d7c
...
...
@@ -40,17 +40,19 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
s
.
desfilter
(
c
)
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
function
s
.
desfilter
(
c
,
tp
)
local
code
=
c
:
GetCode
()
if
c
:
IsControler
(
1
-
tp
)
then
code
=
nil
end
return
c
:
IsControler
(
1
-
tp
)
and
aux
.
NegateAnyFilter
(
c
)
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
nil
)
or
c
:
IsControler
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
s
.
thfilter
(
c
,
tc
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
and
(
not
tc
or
tc
:
IsControler
(
1
-
c
:
GetControler
())
or
not
c
:
IsCode
(
tc
:
GetCode
()
))
function
s
.
thfilter
(
c
,
code
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
and
(
not
code
or
not
c
:
IsCode
(
code
))
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_FZONE
)
and
(
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
and
aux
.
NegateAnyFilter
(
c
)
or
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
chkc
)
and
chkc
:
IsControler
(
tp
))
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
nil
)
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
tc
=
Duel
.
SelectTarget
(
tp
,
s
.
desfilter
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectTarget
(
tp
,
s
.
desfilter
,
tp
,
LOCATION_FZONE
,
LOCATION_FZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
:
IsControler
(
tp
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
else
...
...
@@ -62,12 +64,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
code
=
tc
:
GetCode
()
if
tc
:
IsControler
(
tp
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
code
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
elseif
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -80,11 +83,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
tc
:
RegisterEffect
(
e3
)
end
Duel
.
AdjustInstantly
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
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