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
a86f2771
Commit
a86f2771
authored
Feb 12, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4ce5ec27
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c65011008.lua
expansions/script/c65011008.lua
+5
-6
expansions/script/c65011014.lua
expansions/script/c65011014.lua
+2
-2
No files found.
expansions/222DIY.cdb
View file @
a86f2771
No preview for this file type
expansions/script/c65011008.lua
View file @
a86f2771
...
...
@@ -104,15 +104,14 @@ function c65011008.disop(e,tp,eg,ep,ev,re,r,rp)
end
function
c65011008
.
filter1
(
c
,
tp
)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c65011008
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
and
c
:
IsSetCard
(
0x3da2
)
return
Duel
.
IsExistingMatchingCard
(
c65011008
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
and
c
:
IsSetCard
(
0x3da2
)
end
function
c65011008
.
filter2
(
c
,
fc
)
if
c
:
IsForbidden
()
or
not
c
:
IsAbleToHand
()
then
return
false
end
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
return
aux
.
IsMaterialListCode
(
fc
,
c
:
GetCode
())
and
c
:
IsAbleToHand
()
end
function
c65011008
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65011008
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c65011008
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
...
...
@@ -120,7 +119,7 @@ function c65011008.activate(e,tp,eg,ep,ev,re,r,rp)
if
cg
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c65011008
.
filter2
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
cg
:
GetFirst
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c65011008
.
filter2
),
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
cg
:
GetFirst
())
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
...
...
@@ -137,5 +136,5 @@ function c65011008.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c65011008
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
\ No newline at end of file
expansions/script/c65011014.lua
View file @
a86f2771
...
...
@@ -47,10 +47,10 @@ function c65011014.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c65011014
.
filter2
(
c
,
fc
)
if
not
c
:
IsAbleToGraveAsCost
()
then
return
false
end
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
return
aux
.
IsMaterialListCode
(
fc
,
c
:
GetCode
(
))
end
function
c65011014
.
filter1
(
c
,
tp
)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c65011014
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
return
Duel
.
IsExistingMatchingCard
(
c65011014
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c65011014
.
costg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65011014
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
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