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
MyCard
pre-release-database-cdb
Commits
fb97c253
Commit
fb97c253
authored
Jan 11, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Shadow Severing Strike
parent
963b4ae5
Pipeline
#32509
passed with stages
in 1 minute and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
50 deletions
+39
-50
SUDA-EN.cdb
SUDA-EN.cdb
+0
-0
script/c101207085.lua
script/c101207085.lua
+39
-50
No files found.
SUDA-EN.cdb
View file @
fb97c253
No preview for this file type
script/c101207085.lua
View file @
fb97c253
...
@@ -7,18 +7,18 @@ function s.initial_effect(c)
...
@@ -7,18 +7,18 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--effect
--effect
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_REMOVE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_CUSTOM
+
id
)
e2
:
SetCode
(
custom_code
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetTarget
(
s
.
actg
)
e2
:
SetTarget
(
s
.
actg
)
e2
:
SetOperation
(
s
.
acop
)
e2
:
SetOperation
(
s
.
acop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_REMOVE
)
--tohand
--tohand
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
...
@@ -50,6 +50,7 @@ function s.cfilter(c)
...
@@ -50,6 +50,7 @@ function s.cfilter(c)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_COST
)
and
c
:
IsReason
(
REASON_COST
)
and
c
:
GetFlagEffect
(
id
)
~=
0
and
c
:
GetFlagEffect
(
id
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
+
LOCATION_HAND
)
end
end
function
s
.
disfiter
(
c
)
function
s
.
disfiter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
NegateAnyFilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
NegateAnyFilter
(
c
)
...
@@ -73,59 +74,47 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -73,59 +74,47 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TRAP
)
and
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TRAP
)
local
off
=
1
if
not
b1
and
not
b2
and
not
b3
then
return
end
local
ops
=
{}
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
opval
=
{}
{
b1
,
aux
.
Stringid
(
id
,
2
),
1
},
if
b1
then
{
b2
,
aux
.
Stringid
(
id
,
3
),
2
},
ops
[
off
]
=
aux
.
Stringid
(
id
,
2
)
{
b3
,
aux
.
Stringid
(
id
,
4
),
3
})
opval
[
off
-
1
]
=
1
if
op
==
1
then
off
=
off
+
1
end
if
b2
then
ops
[
off
]
=
aux
.
Stringid
(
id
,
3
)
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
if
b3
then
ops
[
off
]
=
aux
.
Stringid
(
id
,
4
)
opval
[
off
-
1
]
=
3
off
=
off
+
1
end
if
off
==
1
then
return
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
if
opval
[
op
]
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
disfiter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
disfiter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
sg
:
GetCount
()
>
0
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
HintSelection
(
sg
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
tc
=
sg
:
GetFirst
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetCode
(
EFFECT_DISABLE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
tc
:
RegisterEffect
(
e1
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
tc
:
RegisterEffect
(
e2
)
e2
:
SetValue
(
RESET_TURN_SET
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
local
e3
=
Effect
.
CreateEffect
(
c
)
tc
:
RegisterEffect
(
e2
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
tc
:
RegisterEffect
(
e3
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
end
end
elseif
op
val
[
op
]
==
2
then
elseif
op
==
2
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
elseif
op
val
[
op
]
==
3
then
elseif
op
==
3
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
t
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
if
t
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
t
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg
)
Duel
.
HintSelection
(
sg
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
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