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
Nemo Ma
no81cards
Commits
44f9fd09
Commit
44f9fd09
authored
Jan 29, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d761e3c8
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
148 additions
and
24 deletions
+148
-24
expansions/script/c113652145.lua
expansions/script/c113652145.lua
+4
-4
expansions/script/c22348134.lua
expansions/script/c22348134.lua
+5
-5
expansions/script/c33400342.lua
expansions/script/c33400342.lua
+11
-8
expansions/script/c33400349.lua
expansions/script/c33400349.lua
+2
-2
expansions/script/c33400401.lua
expansions/script/c33400401.lua
+9
-2
expansions/script/c33401005.lua
expansions/script/c33401005.lua
+1
-0
expansions/script/c40009160.lua
expansions/script/c40009160.lua
+1
-1
expansions/script/c40009162.lua
expansions/script/c40009162.lua
+1
-1
expansions/script/c40009164.lua
expansions/script/c40009164.lua
+1
-1
expansions/script/c6100013.lua
expansions/script/c6100013.lua
+113
-0
No files found.
expansions/script/c113652145.lua
View file @
44f9fd09
...
...
@@ -124,7 +124,7 @@ function c113652145.fop(e,tp,eg,ep,ev,re,r,rp)
end
function
c113652145
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
tc
:
IsControler
(
tp
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
tc
:
IsControler
(
tp
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
t
c
:
IsFaceup
()
end
function
c113652145
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
and
c
:
GetEquipCount
()
==
0
...
...
@@ -213,10 +213,10 @@ function c113652145.rfilter(c)
end
function
c113652145
.
rcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_COST
)
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c113652145
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c113652145
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
bit
.
band
(
ev
,
0xffff
)
,
nil
)
end
function
c113652145
.
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c113652145
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
bit
.
band
(
ev
,
0xffff
),
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c113652145
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
bit
.
band
(
ev
,
0xffff
)
,
bit
.
band
(
ev
,
0xffff
),
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
\ No newline at end of file
end
expansions/script/c22348134.lua
View file @
44f9fd09
...
...
@@ -70,7 +70,7 @@ function c22348134.cgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
function
c22348134
.
spfilter
(
c
,
e
,
e
p
)
function
c22348134
.
spfilter
(
c
,
e
,
t
p
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c22348134
.
cgtarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -83,11 +83,11 @@ function c22348134.cgoperation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangeChainOperation
(
ev
,
c22348134
.
spop
)
end
function
c22348134
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
e
p
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
e
p
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
ep
,
c22348134
.
spfilter
,
ep
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
e
p
)
if
Duel
.
GetLocationCount
(
t
p
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
t
p
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c22348134
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
t
p
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
ep
,
e
p
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
t
p
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
expansions/script/c33400342.lua
View file @
44f9fd09
...
...
@@ -59,15 +59,19 @@ end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
g
=
Group
.
CreateGroup
()
local
ec
=
re
:
GetHandler
()
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
aux
.
NULL
)
Duel
.
ChangeChainOperation
(
ev
,
cm
.
cgefilter
(
tp
))
Duel
.
SendtoDeck
(
ec
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g2
,
REASON_EFFECT
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SendtoGrave
(
g2
,
REASON_EFFECT
)
end
end
function
cm
.
cgefilter
(
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
LOCATION_DECK
)
>
0
end
...
...
@@ -150,7 +154,7 @@ function cm.tgop2(e,tp,eg,ep,ev,re,r,rp)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
end
end
if
key
==
1
then
...
...
@@ -169,10 +173,9 @@ function cm.tgop2(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g4
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
1
,
nil
)
local
tc
=
g4
:
GetFirst
()
local
ck
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
3
),
aux
.
Stringid
(
m
,
4
))
if
ck
==
0
then
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
end
if
ck
==
1
then
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
end
if
ck
==
0
then
Duel
.
SendtoDeck
(
g4
,
nil
,
0
,
REASON_EFFECT
)
end
if
ck
==
1
then
Duel
.
SendtoDeck
(
g4
,
nil
,
1
,
REASON_EFFECT
)
end
end
end
if
tc
:
IsCode
(
ac
)
then
...
...
expansions/script/c33400349.lua
View file @
44f9fd09
...
...
@@ -137,7 +137,7 @@ function cm.tgop2(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
-
d
)
sc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -153,7 +153,7 @@ function cm.tgop2(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
d
)
sc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
expansions/script/c33400401.lua
View file @
44f9fd09
...
...
@@ -25,7 +25,7 @@ function c33400401.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c33400401
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x6343
)
or
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x5343
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
1
return
(
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x6343
)
or
eg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x5343
)
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
1
end
function
c33400401
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
(
c
:
IsSetCard
(
0xc342
)
or
c
:
IsSetCard
(
0x5342
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -40,9 +40,16 @@ function c33400401.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400401
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
c33400401
.
desfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c33400401
.
desfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g2
,
REASON_EFFECT
)
end
end
end
function
c33400401
.
desfilter1
(
c
)
return
c
:
IsSetCard
(
0x6343
,
0x5343
,
0x5342
)
end
function
c33400401
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c33401005.lua
View file @
44f9fd09
...
...
@@ -30,6 +30,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
rp
==
1
-
tp
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
ckfilter1
(
c
)
...
...
expansions/script/c40009160.lua
View file @
44f9fd09
...
...
@@ -54,7 +54,7 @@ function cm.cfilter(c)
return
cm
.
BLASTERBlade
(
c
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
(
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
...
...
expansions/script/c40009162.lua
View file @
44f9fd09
...
...
@@ -58,7 +58,7 @@ function cm.cfilter(c)
return
cm
.
BLASTERBlade
(
c
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
(
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
...
...
expansions/script/c40009164.lua
View file @
44f9fd09
...
...
@@ -68,7 +68,7 @@ function cm.cfilter(c)
return
cm
.
BLASTERBlade
(
c
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
(
(
e
:
GetHandler
():
IsReleasable
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
))
or
(
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
))
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
...
...
expansions/script/c6100013.lua
0 → 100644
View file @
44f9fd09
--幻峦苍舟的大副-陈洛
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--xyz summon
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedureLevelFree
(
c
,
cm
.
mfilter
,
nil
,
2
,
99
)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
thtg
)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetTarget
(
cm
.
rmtg
)
e2
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e2
)
--atk up
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
m
+
10000
)
e3
:
SetTarget
(
cm
.
imtg
)
e3
:
SetOperation
(
cm
.
imop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
mfilter
(
c
,
xyzc
)
return
c
:
IsSetCard
(
0x61a
)
and
(
c
:
IsXyzLevel
(
xyzc
,
4
)
or
c
:
IsSummonLocation
(
LOCATION_EXTRA
))
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x61a
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
imfilter
(
c
)
return
c
:
IsSetCard
(
0x61a
)
and
c
:
IsFaceup
()
end
function
cm
.
imtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
imfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
imfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
cm
.
imop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
then
--cannot target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e1
:
SetValue
(
aux
.
tgoval
)
tc
:
RegisterEffect
(
e1
)
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e2
:
SetValue
(
aux
.
indoval
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
3
))
end
end
\ No newline at end of file
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