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
dd901a4f
Commit
dd901a4f
authored
Nov 01, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
watele
parent
334b4974
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
80 additions
and
67 deletions
+80
-67
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12000000.lua
expansions/script/c12000000.lua
+2
-2
expansions/script/c12015002.lua
expansions/script/c12015002.lua
+2
-2
expansions/script/c12015003.lua
expansions/script/c12015003.lua
+1
-1
expansions/script/c12015011.lua
expansions/script/c12015011.lua
+8
-8
expansions/script/c12015022.lua
expansions/script/c12015022.lua
+1
-1
expansions/script/c12015023.lua
expansions/script/c12015023.lua
+1
-1
expansions/script/c12015024.lua
expansions/script/c12015024.lua
+1
-1
expansions/script/c12015025.lua
expansions/script/c12015025.lua
+1
-1
expansions/script/c12015026.lua
expansions/script/c12015026.lua
+1
-1
expansions/script/c12070032.lua
expansions/script/c12070032.lua
+19
-8
expansions/script/c12070036.lua
expansions/script/c12070036.lua
+2
-2
expansions/script/c12070038.lua
expansions/script/c12070038.lua
+13
-13
expansions/script/c12070040.lua
expansions/script/c12070040.lua
+5
-5
expansions/script/c12070041.lua
expansions/script/c12070041.lua
+9
-8
expansions/script/c12070042.lua
expansions/script/c12070042.lua
+10
-9
expansions/script/c12899001.lua
expansions/script/c12899001.lua
+1
-1
expansions/script/c12899002.lua
expansions/script/c12899002.lua
+1
-1
expansions/script/c33200423.lua
expansions/script/c33200423.lua
+2
-2
No files found.
expansions/222DIY.cdb
View file @
dd901a4f
No preview for this file type
expansions/script/c12000000.lua
View file @
dd901a4f
...
...
@@ -100,10 +100,10 @@ function srre.check_effect_ignite(c)
return
srre
.
check_effect
(
c
,
"ignite"
)
end
function
srre
.
check_set_GDRT
(
c
)
--
return
srre
.
check_set
(
c
,
"GDRT"
)
or
srre
.
check_set
(
c
,
"GDRT
_
DG"
)
return
srre
.
check_set
(
c
,
"GDRT"
)
or
srre
.
check_set
(
c
,
"GDRTDG"
)
end
function
srre
.
check_set_GDRT_DG
(
c
)
--
return
srre
.
check_set
(
c
,
"GDRT
_
DG"
)
return
srre
.
check_set
(
c
,
"GDRTDG"
)
end
function
srre
.
SPSummoneffect
(
c
,
m
,
des
,
tt
,
cate
,
pro
,
limit
,
con
,
cost
,
tg
,
op
)
--tograve
...
...
expansions/script/c12015002.lua
View file @
dd901a4f
...
...
@@ -10,12 +10,12 @@ function cm.initial_effect(c)
end
function
cm
.
lxceffect
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
ct
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
ct
>
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
REMOVE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
if
tg
:
GetCount
()
>
0
then
Duel
.
Remove
(
tg
,
POS_FACEDOWN
,
REASON_EFFECT
)
...
...
expansions/script/c12015003.lua
View file @
dd901a4f
...
...
@@ -13,7 +13,7 @@ function cm.lxceffect(e,tp,eg,ep,ev,re,r,rp,ct)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
2
,
2
,
REASON_EFFECT
+
REASON_DISCARD
)
end
if
ct
>
2
then
if
ct
>
2
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectEffectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c12015011.lua
View file @
dd901a4f
...
...
@@ -27,7 +27,7 @@ function cm.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_RECOVER
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_
REMO
VE
)
e2
:
SetCode
(
EVENT_
TO_GRA
VE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetOperation
(
cm
.
operation
)
...
...
@@ -60,17 +60,17 @@ function cm.initial_effect(c)
e3
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spfilter
(
c
,
fc
,
tp
)
function
cm
.
c
spfilter
(
c
,
fc
,
tp
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsReleasable
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
fc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
fc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
nil
,
c
,
tp
)
return
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
c
spfilter
,
1
,
nil
,
c
,
tp
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
1
,
nil
,
c
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
c
spfilter
,
1
,
1
,
nil
,
c
,
tp
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_COST
)
c
:
CompleteProcedure
()
...
...
@@ -104,19 +104,19 @@ end
function
cm
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
cm
.
mt
filter
(
c
,
e
,
tp
)
function
cm
.
sp
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
mt
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
sp
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
cm
.
mt
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
cm
.
sp
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
end
function
cm
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mt
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sp
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
e
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
g
:
GetCount
()
or
(
g
:
GetCount
()
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
then
return
end
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
\ No newline at end of file
expansions/script/c12015022.lua
View file @
dd901a4f
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
1
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
2
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c12015023.lua
View file @
dd901a4f
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
1
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
3
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c12015024.lua
View file @
dd901a4f
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
1
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
4
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c12015025.lua
View file @
dd901a4f
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
1
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
5
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa6
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c12015026.lua
View file @
dd901a4f
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
1
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1201500
6
)
end
function
cm
.
filter
(
c
)
return
c
:
IsRace
(
RACE_SEASERPENT
)
and
c
:
IsAbleToGrave
()
...
...
expansions/script/c12070032.lua
View file @
dd901a4f
...
...
@@ -16,8 +16,8 @@ function cm.initial_effect(c)
if
chk
==
0
then
return
not
c
:
IsPublic
()
and
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
end
)
e1
:
SetTarget
(
cm
.
t
stg
)
e1
:
SetOperation
(
cm
.
tsop
)
e1
:
SetTarget
(
cm
.
t
arget
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -45,23 +45,23 @@ end)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
t
s
filter
(
c
)
function
cm
.
t
h
filter
(
c
)
return
c
:
IsCode
(
12070031
)
and
c
:
IsAbleToHand
()
end
function
cm
.
lvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
end
function
cm
.
t
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
t
s
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsAbleToDeck
()
end
function
cm
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
t
h
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsAbleToDeck
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
tsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
(
not
Duel
.
IsExistingMatchingCard
(
cm
.
t
s
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
))
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
(
not
Duel
.
IsExistingMatchingCard
(
cm
.
t
h
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
))
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
t
s
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
t
h
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
@@ -119,5 +119,16 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
local
sc
=
Duel
.
GetOperatedGroup
()
local
tc
=
sc
:
GetFirst
()
if
tc
:
IsType
(
TYPE_MONSTER
)
then
local
tcm
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
tcm
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
end
\ No newline at end of file
expansions/script/c12070036.lua
View file @
dd901a4f
...
...
@@ -53,7 +53,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
ec
=
re
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
ec
:
IsRelateToEffect
(
e
)
and
ec
:
IsFaceup
()
then
if
true
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
@@ -65,7 +65,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
end
function
cm
.
thfilter
(
c
)
return
(
c
:
IsCode
(
12070031
)
or
srre
.
check_set_GDRT
_
DG
(
c
)
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
12070031
)
or
srre
.
check_set_GDRTDG
(
c
)
)
and
c
:
IsAbleToHand
()
end
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
...
...
expansions/script/c12070038.lua
View file @
dd901a4f
...
...
@@ -30,18 +30,18 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
--special summon & disable
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e
3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DISABLE
)
e
3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e
3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e
3
:
SetRange
(
LOCATION_GRAVE
)
e
3
:
SetCountLimit
(
1
,
m
+
100
)
e
3
:
SetCondition
(
cm
.
spcon
)
e
3
:
SetTarget
(
cm
.
sptg
)
e
3
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e
3
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e
2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DISABLE
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e
2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e
2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e
2
:
SetRange
(
LOCATION_GRAVE
)
e
2
:
SetCountLimit
(
1
,
m
+
100
)
e
2
:
SetCondition
(
cm
.
spcon
)
e
2
:
SetTarget
(
cm
.
sptg
)
e
2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e
2
)
end
function
cm
.
thfilter
(
c
)
return
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_RITUAL
)
or
c
:
IsCode
(
12070031
)
)
and
c
:
IsAbleToHand
()
...
...
@@ -65,7 +65,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
...
...
expansions/script/c12070040.lua
View file @
dd901a4f
...
...
@@ -2,7 +2,7 @@
local
m
=
12070040
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c12000000.lua"
)
cm
.
named_with_GDRT
_
GD
=
true
cm
.
named_with_GDRTGD
=
true
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -17,8 +17,8 @@ function cm.initial_effect(c)
if
chk
==
0
then
return
not
c
:
IsPublic
()
and
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
end
)
e1
:
SetTarget
(
cm
.
t
htg
)
e1
:
SetOperation
(
cm
.
thop
)
e1
:
SetTarget
(
cm
.
t
arget
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -46,10 +46,10 @@ end)
e3
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
t
htg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
...
...
expansions/script/c12070041.lua
View file @
dd901a4f
...
...
@@ -2,7 +2,7 @@
local
m
=
12070041
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c12000000.lua"
)
cm
.
named_with_GDRT
_
GD
=
true
cm
.
named_with_GDRTGD
=
true
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -17,8 +17,8 @@ function cm.initial_effect(c)
if
chk
==
0
then
return
not
c
:
IsPublic
()
and
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
end
)
e1
:
SetTarget
(
cm
.
t
stg
)
e1
:
SetOperation
(
cm
.
tsop
)
e1
:
SetTarget
(
cm
.
t
arget
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -45,10 +45,10 @@ end)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
t
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
end
end
function
cm
.
tsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
...
...
@@ -67,14 +67,15 @@ end
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
1
(
c
)
return
c
:
IsAbleToGrave
()
end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_EXTRA
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
if
#
g
>
10
then
Debug
.
Message
(
#
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
#
g
-
10
,
#
g
-
10
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
cm
.
thfilter1
,
1
-
tp
,
LOCATION_EXTRA
,
0
,
#
g
-
10
,
#
g
-
10
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
...
...
expansions/script/c12070042.lua
View file @
dd901a4f
...
...
@@ -2,7 +2,7 @@
local
m
=
12070042
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c12000000.lua"
)
cm
.
named_with_GDRT
_
GD
=
true
cm
.
named_with_GDRTGD
=
true
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -17,8 +17,8 @@ function cm.initial_effect(c)
if
chk
==
0
then
return
not
c
:
IsPublic
()
and
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
end
)
e1
:
SetTarget
(
cm
.
t
htg
)
e1
:
SetOperation
(
cm
.
thop
)
e1
:
SetTarget
(
cm
.
t
arget
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -36,20 +36,21 @@ end)
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetCategory
(
CATEGORY_
ATKCHANGE
)
e3
:
SetCategory
(
CATEGORY_
TODECK
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_DRAW
)
e3
:
SetCountLimit
(
1
,
m
+
200
)
e3
:
SetCondition
(
cm
.
atkcon
)
e3
:
SetTarget
(
cm
.
atktg
)
e3
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
t
htg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
...
...
@@ -71,17 +72,17 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
function
cm
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
end
function
cm
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
function
cm
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
expansions/script/c12899001.lua
View file @
dd901a4f
...
...
@@ -73,7 +73,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c12899002.lua
View file @
dd901a4f
...
...
@@ -68,7 +68,7 @@ function cm.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
re
:
GetHandler
():
IsAbleToGrave
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
eg
,
1
,
0
,
0
)
...
...
expansions/script/c33200423.lua
View file @
dd901a4f
...
...
@@ -61,8 +61,8 @@ function c33200423.atkfilter(c)
return
c
:
IsSetCard
(
0xc329
)
and
c
:
IsFaceup
()
end
function
c33200423
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
GetAttack
()
~=
0
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c33200423
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c33200423
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
and
e
:
GetHandler
():
GetAttack
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c33200423
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
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