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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
554b2435
Commit
554b2435
authored
Aug 10, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
82375b84
Pipeline
#510
passed with stages
in 43 minutes and 14 seconds
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
118 additions
and
28 deletions
+118
-28
expansions/script/c10970912.lua
expansions/script/c10970912.lua
+2
-5
expansions/script/c12004025.lua
expansions/script/c12004025.lua
+1
-1
expansions/script/c12044001.lua
expansions/script/c12044001.lua
+1
-1
expansions/script/c12044017.lua
expansions/script/c12044017.lua
+3
-1
expansions/script/c12044032.lua
expansions/script/c12044032.lua
+3
-2
expansions/script/c65060032.lua
expansions/script/c65060032.lua
+18
-3
expansions/script/c65060033.lua
expansions/script/c65060033.lua
+18
-3
expansions/script/c65060034.lua
expansions/script/c65060034.lua
+18
-3
expansions/script/c65060035.lua
expansions/script/c65060035.lua
+18
-3
expansions/script/c65060036.lua
expansions/script/c65060036.lua
+18
-3
expansions/script/c65060037.lua
expansions/script/c65060037.lua
+18
-3
No files found.
expansions/script/c10970912.lua
View file @
554b2435
...
...
@@ -50,20 +50,17 @@ function c10970912.retop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
function
c10970912
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x233
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x233
)
or
c
:
IsType
(
TYPE_FIELD
)
)
end
function
c10970912
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c10970912
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELECT
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c10970912
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
7
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c10970912
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
2
,
nil
)
end
function
c10970912
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FIELD
)
end
function
c10970912
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x233
)
or
c
:
IsType
(
TYPE_FIELD
)
end
function
c10970912
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
...
...
expansions/script/c12004025.lua
View file @
554b2435
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4) ]]
--
end
function
c12004025
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
Card
.
Is
SetCard
,
1
,
nil
,
RACE_MACHINE
)
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x1fbd
)
return
g
:
IsExists
(
Card
.
Is
Race
,
1
,
nil
,
RACE_MACHINE
)
and
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x1fbd
)
end
function
c12004025
.
hspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
...
...
expansions/script/c12044001.lua
View file @
554b2435
...
...
@@ -33,7 +33,7 @@ end
function
cm
.
filter1
(
c
)
return
c
:
IsSetCard
(
0xfb5
)
and
c
:
IsAbleToHand
()
and
c
:
IsFacedown
()
end
function
cm
.
c
filter2
(
c
)
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0xfb5
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceup
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c12044017.lua
View file @
554b2435
...
...
@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
Set
Value
(
1
)
e3
:
Set
CountLimit
(
1
)
e3
:
SetTarget
(
cm
.
thtg
)
e3
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -68,7 +68,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
if
g
then
g
:
GetFirst
():
ReverseInDeck
()
end
Duel
.
ShuffleDeck
(
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
...
...
expansions/script/c12044032.lua
View file @
554b2435
...
...
@@ -122,7 +122,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
not
c
:
IsType
(
e
:
GetLabel
())
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
cm
.
spcon
(
e
,
c
)
...
...
@@ -140,11 +140,12 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetOperation
(
cm
.
levop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
end
function
cm
.
levop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
2000
,
REASON_EFFECT
)
e
:
Reset
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c65060032.lua
View file @
554b2435
...
...
@@ -28,8 +28,21 @@ function c65060032.initial_effect(c)
e2
:
SetTarget
(
c65060032
.
target
)
e2
:
SetOperation
(
c65060032
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060032
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060032
.
filter
(
c
)
function
c65060032
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060032
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060032
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -37,15 +50,17 @@ function c65060032.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060032
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060032
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060032
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060032
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060032
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
end
...
...
expansions/script/c65060033.lua
View file @
554b2435
...
...
@@ -26,8 +26,21 @@ function c65060033.initial_effect(c)
e2
:
SetTarget
(
c65060033
.
target
)
e2
:
SetOperation
(
c65060033
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060033
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060033
.
filter
(
c
)
function
c65060033
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060033
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060033
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -35,15 +48,17 @@ function c65060033.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060033
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060033
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060033
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060033
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060033
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
end
...
...
expansions/script/c65060034.lua
View file @
554b2435
...
...
@@ -28,8 +28,21 @@ function c65060034.initial_effect(c)
e2
:
SetTarget
(
c65060034
.
target
)
e2
:
SetOperation
(
c65060034
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060034
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060034
.
filter
(
c
)
function
c65060034
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060034
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060034
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -37,15 +50,17 @@ function c65060034.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060034
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060034
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060034
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060034
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060034
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
end
...
...
expansions/script/c65060035.lua
View file @
554b2435
...
...
@@ -31,8 +31,21 @@ function c65060035.initial_effect(c)
e2
:
SetTarget
(
c65060035
.
target
)
e2
:
SetOperation
(
c65060035
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060035
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060035
.
filter
(
c
)
function
c65060035
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060035
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060035
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -40,15 +53,17 @@ function c65060035.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060035
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060035
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060035
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060035
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
end
...
...
expansions/script/c65060036.lua
View file @
554b2435
...
...
@@ -27,8 +27,21 @@ function c65060036.initial_effect(c)
e2
:
SetTarget
(
c65060036
.
target
)
e2
:
SetOperation
(
c65060036
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060036
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060036
.
filter
(
c
)
function
c65060036
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060036
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060036
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -36,15 +49,17 @@ function c65060036.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060036
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060036
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060036
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060036
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060036
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
end
...
...
expansions/script/c65060037.lua
View file @
554b2435
...
...
@@ -28,8 +28,21 @@ function c65060037.initial_effect(c)
e2
:
SetTarget
(
c65060037
.
target
)
e2
:
SetOperation
(
c65060037
.
operation
)
c
:
RegisterEffect
(
e2
)
--without release
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SUMMON_PROC
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetCondition
(
c65060037
.
ntcon
)
e0
:
SetValue
(
SUMMON_TYPE_NORMAL
)
c
:
RegisterEffect
(
e0
)
e2
:
SetLabelObject
(
e0
)
end
function
c65060037
.
filter
(
c
)
function
c65060037
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
CheckTribute
(
c
,
0
)
end
function
c65060037
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsSummonable
(
true
,
e
)
end
function
c65060037
.
ccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -37,15 +50,17 @@ function c65060037.ccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c65060037
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060037
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ce
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65060037
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
ce
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c65060037
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ce
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65060037
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
Summon
(
tp
,
tc
,
true
,
e
)
Duel
.
Summon
(
tp
,
tc
,
true
,
c
e
)
end
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