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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
0b003322
Commit
0b003322
authored
May 20, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
520
parent
b2d805ff
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
4506 additions
and
498 deletions
+4506
-498
expansions/script/c33701015.lua
expansions/script/c33701015.lua
+78
-78
expansions/script/c37900003.lua
expansions/script/c37900003.lua
+1
-0
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+4366
-110
expansions/script/c53728001.lua
expansions/script/c53728001.lua
+2
-1
expansions/script/c53728002.lua
expansions/script/c53728002.lua
+1
-50
expansions/script/c53728003.lua
expansions/script/c53728003.lua
+24
-42
expansions/script/c53728005.lua
expansions/script/c53728005.lua
+2
-1
expansions/script/c53728008.lua
expansions/script/c53728008.lua
+1
-50
expansions/script/c53728010.lua
expansions/script/c53728010.lua
+1
-50
expansions/script/c53728011.lua
expansions/script/c53728011.lua
+3
-2
expansions/script/c53728012.lua
expansions/script/c53728012.lua
+1
-50
expansions/script/c53728013.lua
expansions/script/c53728013.lua
+2
-1
expansions/script/c53728014.lua
expansions/script/c53728014.lua
+2
-1
expansions/script/c53728016.lua
expansions/script/c53728016.lua
+1
-50
expansions/script/c53728021.lua
expansions/script/c53728021.lua
+2
-1
expansions/script/c60010053.lua
expansions/script/c60010053.lua
+10
-3
expansions/script/c67200251.lua
expansions/script/c67200251.lua
+2
-2
expansions/script/c67200254.lua
expansions/script/c67200254.lua
+2
-2
expansions/script/c67200259.lua
expansions/script/c67200259.lua
+2
-2
expansions/script/c67200287.lua
expansions/script/c67200287.lua
+2
-2
expansions/script/c67200309.lua
expansions/script/c67200309.lua
+1
-0
No files found.
expansions/script/c33701015.lua
View file @
0b003322
...
...
@@ -55,12 +55,12 @@ function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
function
s
.
ctfilter
(
c
)
return
not
(
c
:
IsReason
(
REASON_DRAW
)
or
c
:
IsSetCard
(
0x144e
)
)
return
not
c
:
IsSetCard
(
0x144e
)
end
function
s
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
s
[
tp
]
=
s
[
tp
]
+
eg
:
FilterCount
(
s
.
ctfilter
,
nil
)
...
...
@@ -97,7 +97,7 @@ function s.chainreg(e, tp, eg, ep, ev, re, r, rp)
e
:
GetHandler
():
RegisterFlagEffect
(
id
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
end
function
s
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
id
)
~=
0
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
id
)
~=
0
and
Duel
.
GetTurnPlayer
()
~=
tp
end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
...
...
expansions/script/c37900003.lua
View file @
0b003322
...
...
@@ -39,6 +39,7 @@ function c37900003.op(e,tp,eg,ep,ev,re,r,rp)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e4
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
37900003
,
0
,
0
,
0
)
end
end
function
c37900003
.
mattg
(
e
,
c
)
...
...
expansions/script/c53702500.lua
View file @
0b003322
This source diff could not be displayed because it is too large. You can
view the blob
instead.
expansions/script/c53728001.lua
View file @
0b003322
local
m
=
53728001
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"迅征啼鸟 火星之春"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
function
(
c
)
return
c
:
IsLinkType
(
TYPE_UNION
)
and
c
:
IsLinkRace
(
RACE_MACHINE
)
end
,
1
,
1
)
SNNM
.
AnouguryLink
(
c
)
...
...
expansions/script/c53728002.lua
View file @
0b003322
...
...
@@ -2,24 +2,7 @@ local m=53728002
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 铁与石"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
@@ -36,38 +19,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
unop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
cm
.
filter
(
tc
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
aux
.
SetUnionState
(
c
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
cm
.
uncon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousSequence
()
<
5
...
...
expansions/script/c53728003.lua
View file @
0b003322
...
...
@@ -2,24 +2,13 @@ local m=53728003
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 猎人"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
local
f1
=
aux
.
UnionEquipTarget
local
f2
=
aux
.
UnionUnequipTarget
aux
.
UnionEquipTarget
=
cm
.
UnionEquipTarget
aux
.
UnionUnequipTarget
=
cm
.
UnionUnequipTarget
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
aux
.
UnionEquipTarget
=
f1
aux
.
UnionUnequipTarget
=
f2
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
@@ -31,31 +20,24 @@ function cm.initial_effect(c)
e3
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
then
Debug
.
Message
(
114
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_END
)
e1
:
SetOperation
(
cm
.
trgop
)
Duel
.
RegisterEffect
(
e1
,
e
:
GetHandler
():
GetControler
())
end
end
function
cm
.
trgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
114
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
53728000
,
re
,
r
,
rp
,
0
,
0
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
<
2
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
cm
.
UnionEquipTarget
(
equip_filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
equip_filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
c
:
GetFlagEffect
(
FLAG_ID_UNION
)
<
2
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
equip_filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectTarget
(
tp
,
equip_filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
FLAG_ID_UNION
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
cm
.
UnionUnequipTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
FLAG_ID_UNION
)
<
2
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetEquipTarget
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
c
:
RegisterFlagEffect
(
FLAG_ID_UNION
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c53728005.lua
View file @
0b003322
local
m
=
53728005
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"迅征啼鸟 敢死队"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkRace
,
RACE_MACHINE
),
2
,
2
)
SNNM
.
AnouguryLink
(
c
)
...
...
expansions/script/c53728008.lua
View file @
0b003322
...
...
@@ -2,24 +2,7 @@ local m=53728008
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 幽灵"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
@@ -36,38 +19,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
unop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
cm
.
filter
(
tc
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
aux
.
SetUnionState
(
c
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
cm
.
efilter
(
e
,
te
)
if
te
:
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
or
not
te
:
IsActivated
()
then
return
false
end
if
not
te
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
true
end
...
...
expansions/script/c53728010.lua
View file @
0b003322
...
...
@@ -2,24 +2,7 @@ local m=53728010
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 阴森小猫"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
...
...
@@ -44,38 +27,6 @@ function cm.initial_effect(c)
e5
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
cm
.
filter
(
tc
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
aux
.
SetUnionState
(
c
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
cm
.
distg
(
e
,
c
)
if
c
:
GetCardTargetCount
()
==
0
then
return
false
end
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
expansions/script/c53728011.lua
View file @
0b003322
local
m
=
53728011
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"迅征啼鸟 暮色匕首"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLink
SetCard
,
0xc532
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLink
Race
,
RACE_MACHINE
),
2
,
2
)
SNNM
.
AnouguryLink
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
expansions/script/c53728012.lua
View file @
0b003322
...
...
@@ -2,24 +2,7 @@ local m=53728012
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 黄金列"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
...
...
@@ -38,38 +21,6 @@ function cm.initial_effect(c)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
cm
.
filter
(
tc
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
aux
.
SetUnionState
(
c
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
cm
.
cafilter
(
c
)
return
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsSummonable
(
true
,
nil
)
end
...
...
expansions/script/c53728013.lua
View file @
0b003322
local
m
=
53728013
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"迅征啼鸟 黎明之刃"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkRace
,
RACE_MACHINE
),
2
)
SNNM
.
AnouguryLink
(
c
)
...
...
expansions/script/c53728014.lua
View file @
0b003322
local
m
=
53728014
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"高速征啼鸟 最后通牒"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkRace
,
RACE_MACHINE
),
3
)
SNNM
.
AnouguryLink
(
c
)
...
...
expansions/script/c53728016.lua
View file @
0b003322
...
...
@@ -2,24 +2,7 @@ local m=53728016
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"征啼鸟 联合中队"
function
cm
.
initial_effect
(
c
)
aux
.
EnableUnionAttribute
(
c
,
function
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
eqtg
)
e1
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
aux
.
EnableUnionAttribute
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
@@ -36,38 +19,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
filter
(
c
)
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
cm
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
cm
.
filter
(
tc
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
aux
.
SetUnionState
(
c
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
e
:
GetHandler
():
GetEquipTarget
()
==
nil
then
return
false
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
...
...
expansions/script/c53728021.lua
View file @
0b003322
local
m
=
53728021
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"大征啼鸟 歼星激流"
Duel
.
LoadScript
(
"c53702500.lua"
)
if
not
require
and
dofile
then
function
require
(
str
)
return
dofile
(
str
..
".lua"
)
end
end
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkRace
,
RACE_MACHINE
),
2
)
SNNM
.
AnouguryLink
(
c
)
...
...
expansions/script/c60010053.lua
View file @
0b003322
--黄泉-远辞畴昔-
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
60010029
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -30,6 +31,9 @@ function cm.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
ffil
(
c
)
return
c
:
IsCode
(
60010029
)
and
c
:
IsFaceup
()
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
then
Duel
.
RegisterFlagEffect
(
rp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -40,16 +44,18 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp,tc)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>=
9
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
retop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
g
~=
0
then
if
#
g
~=
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
ffil
,
tp
,
LOCATION_FZONE
,
0
,
1
,
nil
)
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
if
#
Duel
.
GetOperatedGroup
()
>=
5
then
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
))
Duel
.
Hint
(
HINT_MESSAGE
,
1
-
tp
,
aux
.
Stringid
(
m
,
0
))
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
1
))
Duel
.
Hint
(
HINT_MESSAGE
,
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
e
:
GetHandler
():
SetCardData
(
CARDDATA_CODE
,
m
+
1
)
--e:GetHandler():SetCardData(CARDDATA_CODE,m+1)
end
end
end
end
...
...
@@ -69,6 +75,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
@@ -81,5 +88,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
indtg
(
e
,
c
)
return
c
:
IsFace
down
()
return
c
:
IsFace
up
()
end
\ No newline at end of file
expansions/script/c67200251.lua
View file @
0b003322
...
...
@@ -42,8 +42,8 @@ function c67200251.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c67200251
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsSetCard
,
1
,
nil
,
0x674
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0x674
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
nil
,
0x674
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0x674
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c67200251
.
thfilter
(
c
)
...
...
expansions/script/c67200254.lua
View file @
0b003322
...
...
@@ -41,8 +41,8 @@ function c67200254.spfilter1(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsReleasable
()
end
function
c67200254
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
c67200254
.
spfilter1
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
c67200254
.
spfilter1
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c67200254
.
spfilter1
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c67200254
.
spfilter1
,
1
,
1
,
nil
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c67200254
.
thfilter
(
c
)
...
...
expansions/script/c67200259.lua
View file @
0b003322
...
...
@@ -39,8 +39,8 @@ function c67200259.spfilter1(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsReleasable
()
end
function
c67200259
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
c67200259
.
spfilter1
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
c67200259
.
spfilter1
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c67200259
.
spfilter1
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c67200259
.
spfilter1
,
1
,
1
,
nil
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c67200259
.
thfilter
(
c
)
...
...
expansions/script/c67200287.lua
View file @
0b003322
...
...
@@ -51,7 +51,7 @@ function c67200287.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
eg
:
IsExists
(
c67200287
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
67200287
,
1
))
then
Duel
.
SendtoExtraP
(
c
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoExtraP
(
c
,
tp
,
REASON_EFFECT
+
REASON_REPLACE
)
return
true
else
return
false
end
end
...
...
expansions/script/c67200309.lua
View file @
0b003322
...
...
@@ -13,6 +13,7 @@ function c67200309.initial_effect(c)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
67200309
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_DECK
)
...
...
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