Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Huangnan
no81cards
Commits
7b64dae0
Commit
7b64dae0
authored
Mar 24, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fca6c85d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
346 additions
and
240 deletions
+346
-240
expansions/script/c10700447.lua
expansions/script/c10700447.lua
+36
-50
expansions/script/c115399521.lua
expansions/script/c115399521.lua
+307
-187
expansions/script/c30553307.lua
expansions/script/c30553307.lua
+1
-1
expansions/script/c67200800.lua
expansions/script/c67200800.lua
+1
-1
expansions/script/c67200801.lua
expansions/script/c67200801.lua
+1
-1
No files found.
expansions/script/c10700447.lua
View file @
7b64dae0
...
...
@@ -8,7 +8,7 @@ function c10700447.initial_effect(c)
--SpecialSummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
10700447
,
0
))
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_ATKCHANGE
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCountLimit
(
1
,
10700447
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -27,33 +27,34 @@ function c10700447.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c10700447
.
filter
(
c
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
function
c10700447
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
c10700447
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c10700447
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c10700447
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
if
not
tc
:
IsType
(
0x4800000
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x01
)
end
end
function
c10700447
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c10700447
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c10700447
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c10700447
.
spfilter3
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsLevel
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
function
c10700447
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevel
(
lv
)
end
function
c10700447
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
cs
=
Duel
.
GetFirstTarget
()
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
local
lv
=
tc
:
GetLevel
()
if
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
@@ -62,27 +63,12 @@ function c10700447.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
500
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10700447
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10700447
,
1
))
then
if
cs
:
GetLevel
()
==
3
then
Duel
.
BreakEffect
()
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c10700447
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc1
=
g1
:
GetFirst
()
if
sc1
then
Duel
.
SpecialSummon
(
sc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
elseif
cs
:
GetLevel
()
==
4
then
Duel
.
BreakEffect
()
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c10700447
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc2
=
g2
:
GetFirst
()
if
sc2
then
Duel
.
SpecialSummon
(
sc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
(
not
tc
:
IsType
(
0x4800000
))
and
Duel
.
GetLocationCount
(
tp
,
0x04
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10700447
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
10700447
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10700447
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lv
)
if
#
g
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
elseif
cs
:
GetLevel
()
==
5
then
Duel
.
BreakEffect
()
local
g3
=
Duel
.
SelectMatchingCard
(
tp
,
c10700447
.
spfilter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc3
=
g3
:
GetFirst
()
if
sc3
then
Duel
.
SpecialSummon
(
sc3
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
...
...
expansions/script/c115399521.lua
View file @
7b64dae0
--音響戦士アーティストス
function
c115399521
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
,
false
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
115399521
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c115399521
.
pctg
)
e1
:
SetOperation
(
c115399521
.
pcop
)
c
:
RegisterEffect
(
e1
)
--monste effect
--special summon rule
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
c115399521
.
chcon
)
e0
:
SetOperation
(
c115399521
.
chop
)
c
:
RegisterEffect
(
e0
)
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
115399521
,
1
))
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_LEAVE_GRAVE
+
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c115399521
.
sptg
)
e2
:
SetOperation
(
c115399521
.
spop
)
e2
:
SetCost
(
c115399521
.
cost
)
e2
:
SetTarget
(
c115399521
.
eqtg
)
e2
:
SetOperation
(
c115399521
.
eqop
)
c
:
RegisterEffect
(
e2
)
--special summon equip
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BECOME_TARGET
)
e3
:
SetRange
(
LOCATION_EXTRA
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetCondition
(
c115399521
.
syncon1
)
e3
:
SetOperation
(
c115399521
.
synop1
)
e3
:
SetDescription
(
aux
.
Stringid
(
115399521
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c115399521
.
cost
)
e3
:
SetTarget
(
c115399521
.
sptg
)
e3
:
SetOperation
(
c115399521
.
spop
)
c
:
RegisterEffect
(
e3
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
115399521
,
3
))
e4
:
SetCategory
(
CATEGORY_LEAVE_GRAVE
+
CATEGORY_EQUIP
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
c115399521
.
eqtg
)
e4
:
SetOperation
(
c115399521
.
eqop
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
c115399521
.
desop
)
c
:
RegisterEffect
(
e4
)
--pendulum set
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
115399521
,
4
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCountLimit
(
1
)
e5
:
SetTarget
(
c115399521
.
sptg2
)
e5
:
SetOperation
(
c115399521
.
spop2
)
e5
:
SetCategory
(
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_DESTROYED
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCondition
(
c115399521
.
pencon
)
e5
:
SetTarget
(
c115399521
.
pentg
)
e5
:
SetOperation
(
c115399521
.
penop
)
c
:
RegisterEffect
(
e5
)
--control
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
115399521
,
5
))
e6
:
SetDescription
(
aux
.
Stringid
(
115399521
,
4
))
e6
:
SetCategory
(
CATEGORY_CONTROL
+
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e6
:
SetCode
(
EVENT_FREE_CHAIN
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCategory
(
CATEGORY_CONTROL
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e6
:
SetTarget
(
c115399521
.
cttar
)
e6
:
SetOperation
(
c115399521
.
ctop
)
e6
:
SetCost
(
c115399521
.
cost
)
e6
:
SetTarget
(
c115399521
.
rltg
)
e6
:
SetOperation
(
c115399521
.
rlop
)
c
:
RegisterEffect
(
e6
)
--spsummon condition
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e7
:
SetCode
(
EVENT_DESTROYED
)
e7
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e7
:
SetCondition
(
c115399521
.
pencon
)
e7
:
SetTarget
(
c115399521
.
pentg
)
e7
:
SetOperation
(
c115399521
.
penop
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e7
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e7
:
SetValue
(
c115399521
.
splimit
)
c
:
RegisterEffect
(
e7
)
--pendulum effect
--pendulum set
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetDescription
(
aux
.
Stringid
(
115399521
,
7
))
e8
:
SetType
(
EFFECT_TYPE_IGNITION
)
e8
:
SetRange
(
LOCATION_PZONE
)
e8
:
SetCountLimit
(
1
)
e8
:
SetCost
(
c115399521
.
cost
)
e8
:
SetTarget
(
c115399521
.
pctg
)
e8
:
SetOperation
(
c115399521
.
pcop
)
c
:
RegisterEffect
(
e8
)
--spsummon from deck
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetDescription
(
aux
.
Stringid
(
115399521
,
8
))
e9
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e9
:
SetType
(
EFFECT_TYPE_IGNITION
)
e9
:
SetRange
(
LOCATION_PZONE
)
e9
:
SetCountLimit
(
1
)
e9
:
SetCost
(
c115399521
.
cost
)
e9
:
SetTarget
(
c115399521
.
decktg
)
e9
:
SetOperation
(
c115399521
.
deckop
)
c
:
RegisterEffect
(
e9
)
--act limit
local
e10
=
Effect
.
CreateEffect
(
c
)
e10
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e10
:
SetCode
(
EVENT_SPSUMMON
)
e10
:
SetOperation
(
c115399521
.
limop
)
c
:
RegisterEffect
(
e10
)
end
function
c115399521
.
pcfilter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1066
)
and
not
c
:
IsForbidden
()
function
c115399521
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
(
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
and
se
:
GetHandler
():
IsCode
(
115399521
))
end
function
c115399521
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
pcfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
function
c115399521
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c115399521
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
pcfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
function
c115399521
.
cfilter
(
c
,
e
,
tp
,
sync
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsDestructable
()
and
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
sync
)
end
function
c115399521
.
sptgfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
)
function
c115399521
.
tnfilter
(
c
,
e
,
tp
,
sync
)
return
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsSetCard
(
0x1066
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDestructable
()
and
c
:
IsCanBeSynchroMaterial
(
sync
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c115399521
.
spfilter
(
c
,
e
,
tp
,
t
c
)
return
c
:
Is
Attribute
(
tc
:
GetAttribute
())
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
GetLevel
()
==
tc
:
GetLevel
()
+
1
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
function
c115399521
.
atfilter
(
c
)
return
c
:
Is
Faceup
()
and
c
:
IsCode
(
115399521
)
end
function
c115399521
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c115399521
.
sptgfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c115399521
.
sptgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c115399521
.
sptgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
tp
,
LOCATION_REMOVED
)
end
function
c115399521
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
function
c115399521
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
if
g
:
GetCount
()
>
0
then
local
sc
=
g
:
GetFirst
()
if
Duel
.
SpecialSummonStep
(
sc
,
nil
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
sc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
sc
:
RegisterEffect
(
e2
,
true
)
sc
:
RegisterFlagEffect
(
115399521
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetLabelObject
(
sc
)
e3
:
SetCondition
(
c115399521
.
descon
)
e3
:
SetOperation
(
c115399521
.
desop
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
function
c115399521
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
115399521
)
~=
0
then
return
true
else
e
:
Reset
()
return
false
end
end
function
c115399521
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
function
c115399521
.
mfilter1
(
c
,
tp
,
tc
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsOnField
()
and
c
:
IsType
(
TYPE_TUNER
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
tc
)
>
0
and
c
:
IsDestructable
()
end
function
c115399521
.
mfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1066
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
nil
,
tp
,
false
,
false
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
c115399521
.
cfilter
,
1
,
nil
,
e
,
tp
,
c
)
and
re
:
GetHandler
():
IsSetCard
(
0x1066
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
end
function
c115399521
.
syncon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115399521
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
c
:
IsFacedown
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
true
,
false
)
and
eg
:
IsExists
(
c115399521
.
mfilter1
,
1
,
nil
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
mfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
+
LOCATION_SZONE
,
0
,
1
,
nil
,
115399521
)
and
re
:
GetHandler
():
IsSetCard
(
0x1066
)
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
end
function
c115399521
.
synop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetFlagEffect
(
tp
,
115399521
)
==
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115399521
,
2
))
then
local
rc
=
re
:
GetHandler
()
local
b1
=
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c115399521
.
tnfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
c115399521
.
atfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
b4
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
(
b1
or
b2
or
not
b3
or
b4
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
Filter
(
c115399521
.
cfilter
,
nil
,
e
,
tp
,
c
)
if
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
c
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
115399521
)
==
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115399521
,
0
))
then
Duel
.
RegisterFlagEffect
(
tp
,
115399521
,
RESET_CHAIN
,
0
,
1
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
mfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
nil
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
lv
=
g
:
GetFirst
():
GetLevel
()
+
eg
:
GetFirst
():
GetLevel
()
g
:
Merge
(
eg
)
if
Duel
.
Destroy
(
g
,
REASON_COST
)
<=
0
then
return
end
Duel
.
SpecialSummon
(
c
,
nil
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
tnfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
c
):
GetFirst
(
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
tc
=
g
:
GetFirst
()
local
lv
=
tc
:
GetLevel
()
+
sg
:
GetLevel
(
)
if
Duel
.
Destroy
(
Group
.
FromCards
(
tc
,
sg
)
,
REASON_COST
)
<=
0
then
return
end
Duel
.
SpecialSummon
(
c
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
@@ -173,12 +156,18 @@ function c115399521.synop1(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
Duel
.
BreakEffect
()
Duel
.
ChangeTargetCard
(
ev
,
Group
.
FromCards
(
c
))
local
tf
=
re
:
GetTarget
()
local
res
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
Duel
.
CheckEvent
(
re
:
GetCode
(),
true
)
if
tf
(
re
,
rp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
0
,
c
)
then
local
g
=
Group
.
CreateGroup
()
g
:
AddCard
(
c
)
Duel
.
ChangeTargetCard
(
ev
,
g
)
end
end
end
function
c115399521
.
eqfilter
(
c
)
return
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1066
)
and
not
c
:
IsForbidden
()
return
c
:
Is
SetCard
(
0x1066
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
end
function
c115399521
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c115399521
.
eqfilter
(
chkc
)
end
...
...
@@ -195,80 +184,211 @@ function c115399521.eqop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
local
atk
=
tc
:
GetTextAttack
()
tc
:
RegisterFlagEffect
(
115399521
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
--Add Equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetProperty
(
EFFECT_FLAG_
COPY_INHERIT
+
EFFECT_FLAG_
OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c115399521
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
if
atk
>
0
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_OWNER_RELATE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetValue
(
tc
:
GetTextAttack
()
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
end
end
function
c115399521
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
end
function
c115399521
.
spfilter2
(
c
,
e
,
tp
,
ec
)
return
c
:
IsSetCard
(
0x1066
)
and
c
:
GetEquipTarget
()
==
ec
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
function
c115399521
.
desfilter
(
c
,
rc
)
return
rc
:
GetCardTarget
():
IsContains
(
c
)
end
function
c115399521
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetCardTargetCount
()
>
0
then
local
dg
=
Duel
.
GetMatchingGroup
(
c115399521
.
desfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
function
c115399521
.
spfilter
(
c
,
e
,
tp
,
ec
)
return
c
:
GetFlagEffect
(
115399521
)
~=
0
and
c
:
GetEquipTarget
()
==
ec
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c115399521
.
sptg
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c115399521
.
spfilter
2
(
chkc
,
e
,
tp
,
e
:
GetHandler
())
end
function
c115399521
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c115399521
.
spfilter
(
chkc
,
e
,
tp
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c115399521
.
spfilter
2
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
,
e
:
GetHandler
())
end
and
Duel
.
IsExistingTarget
(
c115399521
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c115399521
.
spfilter
2
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
c115399521
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c115399521
.
spop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115399521
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c115399521
.
ctffilter
(
c
,
att
,
rc
,
lv
)
return
c
:
IsControlerCanBeChanged
()
and
c
:
IsFaceup
()
and
c
:
IsAttribute
(
att
)
and
c
:
IsRace
(
rc
)
and
(
c
:
GetLevel
()
==
lv
or
c
:
GetRank
()
==
lv
)
function
c115399521
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c115399521
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c115399521
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
function
c115399521
.
rlfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1066
)
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
confilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
,
c
)
end
function
c115399521
.
ctfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1066
)
and
c
:
IsReleasable
()
and
Duel
.
IsExistingTarget
(
c115399521
.
ctffilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetAttribute
(),
c
:
GetRace
(),
c
:
GetLevel
())
function
c115399521
.
confilter
(
c
,
e
,
tp
,
tc
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
(
c
:
GetLevel
()
==
tc
:
GetLevel
()
or
c
:
GetRank
()
==
tc
:
GetLevel
())
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
and
((
c
:
IsAbleToHand
()
or
c
:
IsAbleToExtra
())
or
c
:
IsControlerCanBeChanged
())
end
function
c115399521
.
cttar
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c115399521
.
rltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115399521
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
sc
=
sg
:
GetFirst
()
local
att
=
sc
:
GetAttribute
()
local
rc
=
sc
:
GetRace
()
local
lv
=
sc
:
GetLevel
()
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c115399521
.
rlfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c115399521
.
rlfilter
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
confilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
,
sg
:
GetFirst
())
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c115399521
.
ctffilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
att
,
rc
,
lv
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c115399521
.
ct
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115399521
.
rl
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
b1
=
tc
:
IsControlerCanBeChanged
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
tc
:
IsAbleToHand
()
or
tc
:
IsAbleToExtra
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
op
=
2
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
115399521
,
5
),
aux
.
Stringid
(
115399521
,
6
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
115399521
,
5
))
elseif
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
115399521
,
6
))
+
1
else
return
end
if
op
==
0
then
Duel
.
GetControl
(
tc
,
tp
)
else
if
tc
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
then
Duel
.
SendtoDeck
(
tc
,
tp
,
1
,
REASON_EFFECT
)
else
Duel
.
SendtoHand
(
tc
,
tp
,
REASON_EFFECT
)
end
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
function
c115399521
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
(
)
return
c
:
Is
PreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
function
c115399521
.
pcfilter
(
c
)
return
c
:
Is
Type
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x1066
)
and
c
:
IsFaceup
()
and
not
c
:
IsForbidden
()
end
function
c115399521
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
function
c115399521
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
pcfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
end
function
c115399521
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
function
c115399521
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
pcfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
function
c115399521
.
tgfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c115399521
.
deckfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
function
c115399521
.
deckfilter
(
c
,
e
,
tp
,
tc
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
GetLevel
()
==
tc
:
GetLevel
()
+
1
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
end
function
c115399521
.
decktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115399521
.
tgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
tgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_RETURN
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c115399521
.
deckop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115399521
.
deckfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetLabelObject
())
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterFlagEffect
(
115399522
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
Duel
.
SpecialSummonComplete
()
g
:
KeepAlive
()
local
de
=
Effect
.
CreateEffect
(
c
)
de
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
de
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
de
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
de
:
SetCountLimit
(
1
)
de
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
de
:
SetLabel
(
fid
)
de
:
SetLabelObject
(
g
)
de
:
SetCondition
(
c115399521
.
mncon
)
de
:
SetOperation
(
c115399521
.
mnop
)
Duel
.
RegisterEffect
(
de
,
tp
)
end
end
function
c115399521
.
mnfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
115399522
)
==
fid
end
function
c115399521
.
mncon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
if
not
g
:
IsExists
(
c115399521
.
mnfilter
,
1
,
nil
,
e
:
GetLabel
())
then
g
:
DeleteGroup
()
e
:
Reset
()
return
false
else
return
true
end
end
function
c115399521
.
mnop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
dg
=
g
:
Filter
(
c115399521
.
mnfilter
,
nil
,
e
:
GetLabel
())
g
:
DeleteGroup
()
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
function
c115399521
.
limop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetCurrentChain
()
==
0
then
return
end
Duel
.
SetChainLimitTillChainEnd
(
c115399521
.
chlimit
)
end
function
c115399521
.
chlimit
(
e
,
rp
,
tp
)
return
e
:
IsActiveType
(
TYPE_TRAP
)
and
e
:
GetHandler
():
IsType
(
TYPE_COUNTER
)
end
expansions/script/c30553307.lua
View file @
7b64dae0
...
...
@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end
--xyz
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsLevelAbove
(
12
)
or
(
c
:
GetType
()
&
TYPE_XYZ
==
TYPE_XYZ
and
c
:
IsRankAbove
(
12
)))
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x308
)
and
(
c
:
IsLevelAbove
(
12
)
or
(
c
:
GetType
()
&
TYPE_XYZ
==
TYPE_XYZ
and
c
:
IsRankAbove
(
12
)))
end
--e1
function
cm
.
cos1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c67200800.lua
View file @
7b64dae0
...
...
@@ -69,7 +69,7 @@ function c67200800.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_
SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_
TRAP
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c67200801.lua
View file @
7b64dae0
...
...
@@ -69,7 +69,7 @@ function c67200801.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_
SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_
TRAP
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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