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
Ai
ygopro-222DIY-cards
Commits
381aa799
Commit
381aa799
authored
Jan 16, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix k2
parent
3f3818aa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
55 deletions
+44
-55
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33310159.lua
expansions/script/c33310159.lua
+41
-50
expansions/script/c47530035.lua
expansions/script/c47530035.lua
+1
-1
expansions/script/c47530042.lua
expansions/script/c47530042.lua
+2
-4
No files found.
expansions/222DIY.cdb
View file @
381aa799
No preview for this file type
expansions/script/c33310159.lua
View file @
381aa799
...
...
@@ -22,7 +22,6 @@ function c33310159.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c33310159
[
c
]
=
e1
end
function
c33310159
.
ltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
0x55b
)
end
end
...
...
@@ -48,31 +47,27 @@ function c33310159.mfilter(c,e,tp,eg,ep,ev,re,r,rp)
if
tg
and
not
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
nil
,
c
)
then
return
false
end
return
true
end
function
c33310159
.
sffilter1
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
end
function
c33310159
.
sffilter2
(
c
)
return
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
end
function
c33310159
.
remfilter
(
c
,
tp
)
return
c
:
IsControler
(
1
-
tp
)
and
(
c
:
IsLocation
(
LOCATION_SZONE
)
or
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
))
end
function
c33310159
.
desfilter
(
c
,
s
,
tp
)
local
seq
=
c
:
GetSequence
()
return
seq
<
5
and
math.abs
(
seq
-
s
)
==
1
and
c
:
IsControler
(
tp
)
end
function
c33310159
.
sfilter
(
c
)
local
tp
=
c
:
GetControler
()
local
g
=
c
:
GetColumnGroup
(
1
,
1
)
if
g
then
g
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
if
g
then
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
g
=
g
:
Filter
(
c33310159
.
sffilter1
,
nil
)
elseif
c
:
IsLocation
(
LOCATION_SZONE
)
then
g
=
g
:
Filter
(
c33310159
.
sffilter2
,
nil
)
end
g
:
Merge
(
c
:
GetColumnGroup
())
if
g
then
local
g
=
c
:
GetColumnGroup
()
if
g
:
GetCount
()
>
0
then
g
:
Remove
(
c33310159
.
remfilter
,
nil
,
tp
)
end
if
c
:
GetSequence
()
<
5
then
local
dg
=
Duel
.
GetMatchingGroup
(
c33310159
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
:
GetSequence
(),
tp
)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
elseif
c
:
IsLocation
(
LOCATION_SZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_SZONE
)
end
g
:
Merge
(
dg
)
end
return
g
:
GetCount
()
>
0
end
...
...
@@ -106,22 +101,20 @@ function c33310159.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetCategory
(
CATEGORY_TOGRAVE
)
local
gc
=
g
:
GetFirst
()
local
gtp
=
gc
:
GetControler
()
local
gg
=
gc
:
GetColumnGroup
(
1
,
1
)
if
gg
then
gg
=
gg
:
Filter
(
Card
.
IsControler
,
nil
,
gtp
)
if
gg
then
if
gc
:
IsLocation
(
LOCATION_MZONE
)
then
gg
=
gg
:
Filter
(
c33310159
.
sffilter1
,
nil
)
elseif
c
:
IsLocation
(
LOCATION_SZONE
)
then
gg
=
gg
:
Filter
(
c33310159
.
sffilter2
,
nil
)
end
gg
:
Merge
(
gc
:
GetColumnGroup
())
if
gg
then
gg
:
Remove
(
c33310159
.
remfilter
,
nil
,
gtp
)
local
g
=
gc
:
GetColumnGroup
()
if
g
:
GetCount
()
>
0
then
g
:
Remove
(
c33310159
.
remfilter
,
nil
,
gtp
)
end
if
gc
:
GetSequence
()
<
5
then
local
dg
=
Duel
.
GetMatchingGroup
(
c33310159
.
desfilter
,
gtp
,
LOCATION_ONFIELD
,
0
,
nil
,
gc
:
GetSequence
(),
gtp
)
if
gc
:
IsLocation
(
LOCATION_MZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
elseif
gc
:
IsLocation
(
LOCATION_SZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_SZONE
)
end
g
:
Merge
(
dg
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
g
,
g
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
op
=
1
end
e
:
SetLabel
(
op
)
...
...
@@ -138,20 +131,18 @@ function c33310159.efop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
ttp
=
tc
:
GetControler
()
local
g
=
tc
:
GetColumnGroup
(
1
,
1
)
if
g
then
g
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
ttp
)
if
g
then
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
g
=
g
:
Filter
(
c33310159
.
sffilter1
,
nil
)
elseif
tc
:
IsLocation
(
LOCATION_SZONE
)
then
g
=
g
:
Filter
(
c33310159
.
sffilter2
,
nil
)
end
g
:
Merge
(
tc
:
GetColumnGroup
())
if
g
then
local
g
=
tc
:
GetColumnGroup
()
if
g
:
GetCount
()
>
0
then
g
:
Remove
(
c33310159
.
remfilter
,
nil
,
ttp
)
end
if
tc
:
GetSequence
()
<
5
then
local
dg
=
Duel
.
GetMatchingGroup
(
c33310159
.
desfilter
,
ttp
,
LOCATION_ONFIELD
,
0
,
nil
,
tc
:
GetSequence
(),
ttp
)
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
elseif
tc
:
IsLocation
(
LOCATION_SZONE
)
then
dg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_SZONE
)
end
g
:
Merge
(
dg
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
expansions/script/c47530035.lua
View file @
381aa799
...
...
@@ -72,7 +72,7 @@ function c47530035.teop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
SendtoExtraP
(
c
,
tp
,
REASON_EFFECT
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
fals
e
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
tru
e
)
end
end
function
c47530035
.
xyzcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c47530042.lua
View file @
381aa799
...
...
@@ -39,18 +39,16 @@ function c47530042.spfilter(c,e,tp)
end
function
c47530042
.
rbtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c47530042
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c47530042
.
lfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
1
,
1
,
0
,
0
)
end
function
c47530042
.
rbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
zone
=
bit
.
band
(
tc
:
GetLinkedZone
(
tp
),
0x1f
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c47530042
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
and
zone
~=
0
then
if
tc
then
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_XYZ_LEVEL
)
...
...
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