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
d4831e03
Commit
d4831e03
authored
Jan 26, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 怒小児様
①效果应为1回合1次 ①效果应可以从双方墓地选各最多1张
parent
d5dff83b
Pipeline
#25114
passed with stages
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
script/c101204046.lua
script/c101204046.lua
+19
-13
No files found.
script/c101204046.lua
View file @
d4831e03
...
@@ -7,8 +7,9 @@ function s.initial_effect(c)
...
@@ -7,8 +7,9 @@ function s.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e1
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetTarget
(
s
.
ovtg
)
e1
:
SetTarget
(
s
.
ovtg
)
e1
:
SetOperation
(
s
.
ovop
)
e1
:
SetOperation
(
s
.
ovop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -59,7 +60,7 @@ end
...
@@ -59,7 +60,7 @@ end
function
s
.
negcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
negcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
de
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_REASON
)
local
de
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_DISABLE_REASON
)
if
de
then
if
de
then
Duel
.
RaiseEvent
(
re
,
EVENT_CUSTOM
+
id
,
te
,
0
,
tp
,
tp
,
0
)
Duel
.
RaiseEvent
(
e
:
GetHandler
()
,
EVENT_CUSTOM
+
id
,
te
,
0
,
tp
,
tp
,
0
)
end
end
end
end
function
s
.
ofilter
(
c
,
e
)
function
s
.
ofilter
(
c
,
e
)
...
@@ -68,21 +69,26 @@ end
...
@@ -68,21 +69,26 @@ end
function
s
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ofilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ofilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ofilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
s
.
ofilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
end
end
end
function
s
.
gchecktp
(
c
,
tp
)
return
c
:
GetOwner
()
==
tp
end
function
s
.
gcheck
(
g
,
tp
)
return
g
:
FilterCount
(
s
.
gchecktp
,
nil
,
tp
)
<=
1
and
g
:
FilterCount
(
s
.
gchecktp
,
nil
,
1
-
tp
)
<=
1
end
function
s
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
if
c
:
IsRelateToEffect
(
e
)
then
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
s
.
ofilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
ofilter
),
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
s
.
ofilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
then
if
#
g
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
ofilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
1
,
2
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
if
sg
:
GetCount
()
>
0
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
ofilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
):
GetFirst
()
Duel
.
HintSelection
(
sg
)
g
:
AddCard
(
tc
)
Duel
.
Overlay
(
c
,
sg
)
if
g
:
GetCount
()
==
2
then
end
Duel
.
Overlay
(
c
,
g
)
end
end
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