Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
6de1ffa4
Commit
6de1ffa4
authored
Feb 25, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daniaozhuanzhuanzhuan
parent
3c972027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
expansions/script/c33400508.lua
expansions/script/c33400508.lua
+1
-1
expansions/script/c33400510.lua
expansions/script/c33400510.lua
+9
-2
No files found.
expansions/script/c33400508.lua
View file @
6de1ffa4
...
@@ -75,7 +75,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,7 +75,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x3
40
)
or
(
c
:
IsSetCard
(
0x
341
)
and
c
:
IsType
(
TYPE_QUICKPLAY
)))
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x3
344
)
or
(
c
:
IsSetCard
(
0x6
341
)
and
c
:
IsType
(
TYPE_QUICKPLAY
)))
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c33400510.lua
View file @
6de1ffa4
...
@@ -52,7 +52,14 @@ function cm.desfilter(c,e,tp)
...
@@ -52,7 +52,14 @@ function cm.desfilter(c,e,tp)
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
Group
.
FromCards
(
c
))
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
Group
.
FromCards
(
c
))
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
,
dg
)
function
cm
.
spfilter
(
c
,
e
,
tp
,
dg
)
return
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsFaceup
())
or
c
:
IsLocation
(
LOCATION_HAND
))
and
(
c
:
IsSetCard
(
0x341
)
or
c
:
IsAttribute
(
ATTRIBUTE_WATER
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
dg
,
c
)
>
0
local
tc
=
dg
:
GetFirst
()
return
(
c
:
IsSetCard
(
0x341
)
or
c
:
IsAttribute
(
ATTRIBUTE_WATER
))
and
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsFaceup
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
dg
,
c
)
>
0
)
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
tc
:
GetSequence
()
<
5
)))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
cm
.
spfilter2
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x341
)
or
c
:
IsAttribute
(
ATTRIBUTE_WATER
))
and
(
(
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsFaceup
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
ckfilter
(
c
)
function
cm
.
ckfilter
(
c
)
return
c
:
IsSetCard
(
0x3344
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x3344
)
and
c
:
IsFaceup
()
...
@@ -75,7 +82,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +82,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
2
,
tp
,
LOCATION_EXTRA
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
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