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
c2f8f1d3
Commit
c2f8f1d3
authored
May 19, 2024
by
zengsxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f03847cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
script/c100200256.lua
script/c100200256.lua
+5
-6
script/c100200257.lua
script/c100200257.lua
+4
-4
No files found.
script/c100200256.lua
View file @
c2f8f1d3
...
@@ -37,8 +37,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,8 +37,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
@@ -58,16 +57,16 @@ function s.xtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -58,16 +57,16 @@ function s.xtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
xfilter
(
chkc
)
and
chkc
~=
c
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
xfilter
(
chkc
)
and
chkc
~=
c
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
and
s
.
xyzfilter
(
c
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
c
)
end
and
s
.
xyzfilter
(
c
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
s
.
xyzfilter
)
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SelectTarget
(
tp
,
s
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
end
end
function
s
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
xyzfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
xyzfilter
)
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
c
)
if
g
:
GetCount
()
>
0
and
s
.
xyzfilter
(
c
)
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
g
:
GetCount
()
>
0
and
s
.
xyzfilter
(
c
)
and
c
:
Is
Controler
(
tp
)
and
c
:
Is
RelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
mg
=
Group
.
FromCards
(
c
,
g
:
Select
(
tp
,
1
,
1
,
c
))
local
mg
=
Group
.
__add
(
c
,
g
:
Select
(
tp
,
1
,
1
,
c
))
if
mg
:
GetCount
()
==
2
then
Duel
.
Overlay
(
tc
,
mg
)
end
if
mg
:
GetCount
()
==
2
then
Duel
.
Overlay
(
tc
,
mg
)
end
end
end
end
end
\ No newline at end of file
script/c100200257.lua
View file @
c2f8f1d3
...
@@ -40,15 +40,15 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,15 +40,15 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
CalculateDamage
(
a
,
c
)
Duel
.
CalculateDamage
(
a
,
c
)
end
end
end
end
function
s
.
atkfilter
(
c
)
function
s
.
atkfilter
(
c
,
ac
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
and
not
c
:
IsCode
(
id
)
and
c
:
GetBaseAttack
()
+
ac
:
GetBaseAttack
()
>
0
end
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
~=
c
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
atkfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
~=
c
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
atkfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
,
c
)
end
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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