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
fdac8ecb
Commit
fdac8ecb
authored
Feb 18, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jnmlp
parent
f90739f1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c11200029.lua
expansions/script/c11200029.lua
+6
-5
expansions/script/c11200034.lua
expansions/script/c11200034.lua
+3
-3
expansions/script/c11200049.lua
expansions/script/c11200049.lua
+7
-8
No files found.
expansions/222DIY.cdb
View file @
fdac8ecb
No preview for this file type
expansions/script/c11200029.lua
View file @
fdac8ecb
...
...
@@ -3,7 +3,7 @@ function c11200029.initial_effect(c)
aux
.
AddCodeList
(
c
,
11200029
)
--to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TO
GRAVE
)
e1
:
SetCategory
(
CATEGORY_TO
HAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
11200029
)
...
...
@@ -37,18 +37,19 @@ function c11200029.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_DISCARD
+
REASON_COST
)
end
function
c11200029
.
filter
(
c
)
return
aux
.
IsCodeListed
(
c
,
11200029
)
and
not
c
:
IsCode
(
11200029
)
and
c
:
IsAbleTo
Grave
()
return
aux
.
IsCodeListed
(
c
,
11200029
)
and
not
c
:
IsCode
(
11200029
)
and
c
:
IsAbleTo
Hand
()
end
function
c11200029
.
sgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11200029
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
GRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
HAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c11200029
.
sgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11200029
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c11200029
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11200034.lua
View file @
fdac8ecb
...
...
@@ -37,20 +37,20 @@ function c11200034.initial_effect(c)
end
function
c11200034
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
==
PHASE_MAIN1
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
ph
==
PHASE_MAIN2
return
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
end
function
c11200034
.
ctfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
11200029
)
end
function
c11200034
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11200034
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x1620
,
1
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x1620
,
1
)
end
end
function
c11200034
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
Duel
.
GetMatchingGroupCount
(
c11200034
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
ct
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x1620
,
1
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x1620
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
ct
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
expansions/script/c11200049.lua
View file @
fdac8ecb
...
...
@@ -13,7 +13,6 @@ function c11200049.initial_effect(c)
--counter
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
17030033
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -62,23 +61,23 @@ function c11200049.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
end
function
c11200049
.
xyzfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
Is
Type
(
TYPE_XYZ
)
and
c
:
IsRace
(
RACE_AQUA
)
return
c
:
IsFaceup
()
and
c
:
Is
Race
(
RACE_AQUA
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c11200049
.
matfilter
(
c
)
return
c
:
Is
Type
(
TYPE_XYZ
)
and
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsCanOverlay
(
)
return
c
:
Is
Race
(
RACE_AQUA
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c11200049
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c11200049
.
xyzfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c11200049
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c11200049
.
matfilter
,
tp
,
LOCATION_
DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
and
Duel
.
IsExistingMatchingCard
(
c11200049
.
matfilter
,
tp
,
LOCATION_
EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
Duel
.
SelectTarget
(
tp
,
c11200049
.
xyzfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c11200049
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11200049
.
matfilter
,
tp
,
LOCATION_
DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tc
)
if
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11200049
.
matfilter
,
tp
,
LOCATION_
EXTRA
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc
,
g
)
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