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
2b81782a
Commit
2b81782a
authored
Sep 24, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
53cdc751
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
158 additions
and
159 deletions
+158
-159
expansions/script/c40009671.lua
expansions/script/c40009671.lua
+37
-41
expansions/script/c40009673.lua
expansions/script/c40009673.lua
+26
-27
expansions/script/c40009675.lua
expansions/script/c40009675.lua
+24
-25
expansions/script/c40009677.lua
expansions/script/c40009677.lua
+21
-22
expansions/script/c40009679.lua
expansions/script/c40009679.lua
+24
-25
expansions/script/c40011475.lua
expansions/script/c40011475.lua
+25
-18
expansions/script/c67201128.lua
expansions/script/c67201128.lua
+1
-1
No files found.
expansions/script/c40009671.lua
View file @
2b81782a
...
...
@@ -24,40 +24,38 @@ function cm.MagicCombineDemon(c)
return
m
and
m
.
named_with_MagicCombineDemon
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
return
(
c
:
GetType
()
==
TYPE_SPELL
or
c
:
IsType
(
TYPE_QUICKPLAY
))
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
)
...
...
@@ -71,32 +69,30 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
3
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
BreakEffect
()
if
e
:
GetLabel
()
==
1
then
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
sg
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
=
sg
:
GetNext
()
if
#
g
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
and
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
BreakEffect
()
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
#
sg
then
return
end
for
tc
in
aux
.
Next
(
sg
)
do
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
end
end
\ No newline at end of file
expansions/script/c40009673.lua
View file @
2b81782a
...
...
@@ -24,53 +24,51 @@ function cm.MagicCombineMagic(c)
return
m
and
m
.
named_with_MagicCombineMagic
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
return
(
c
:
GetType
()
==
TYPE_SPELL
or
c
:
IsType
(
TYPE_QUICKPLAY
))
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
)
return
cm
.
MagicCombineMagic
(
c
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
rpfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
end
function
cm
.
rfilter
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsFaceup
()
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsFaceup
()
and
c
:
IsAbleToGrave
()
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -80,14 +78,15 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
if
e
:
GetLabel
()
==
1
then
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
sg
>
0
then
...
...
expansions/script/c40009675.lua
View file @
2b81782a
...
...
@@ -24,40 +24,38 @@ function cm.MagicCombineDemon(c)
return
m
and
m
.
named_with_MagicCombineDemon
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
return
(
c
:
GetType
()
==
TYPE_SPELL
or
c
:
IsType
(
TYPE_QUICKPLAY
))
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
...
...
@@ -87,14 +85,15 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
Duel
.
BreakEffect
()
if
e
:
GetLabel
()
==
1
then
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c40009677.lua
View file @
2b81782a
...
...
@@ -25,40 +25,38 @@ function cm.MagicCombineDemon(c)
return
m
and
m
.
named_with_MagicCombineDemon
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
return
(
c
:
GetType
()
==
TYPE_SPELL
or
c
:
IsType
(
TYPE_QUICKPLAY
))
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
)
...
...
@@ -99,14 +97,15 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
Duel
.
BreakEffect
()
if
e
:
GetLabel
()
==
1
then
local
te
=
e
:
GetLabelObject
()
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
end
end
end
function
cm
.
tgoval
(
e
,
re
,
rp
)
...
...
expansions/script/c40009679.lua
View file @
2b81782a
...
...
@@ -35,40 +35,38 @@ function cm.recon1(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter6
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
return
(
c
:
GetType
()
==
TYPE_SPELL
or
c
:
IsType
(
TYPE_QUICKPLAY
))
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
)
...
...
@@ -90,14 +88,15 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
if
e
:
GetLabel
()
==
1
then
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g2
>
0
then
...
...
expansions/script/c40011475.lua
View file @
2b81782a
...
...
@@ -20,40 +20,37 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
cfilter1
(
c
)
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
fals
e
,
true
,
false
)
~=
nil
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
tru
e
,
true
,
false
)
~=
nil
end
function
cm
.
cfilterz
(
c
)
return
c
:
IsFaceup
()
and
cm
.
Spiritualist
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
4
,
0
,
1
,
nil
)
then
return
end
cm_copy
=
false
local
g
=
{}
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
g1
:
Merge
(
g2
)
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
else
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cfilterz
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
40011471
)
then
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
else
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
#
g
<=
0
then
return
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
3
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
CheckActivateEffect
(
false
,
true
,
true
)
cm_copy
=
true
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
sg
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
true
)
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
filter
(
c
)
...
...
@@ -82,6 +79,16 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
Duel
.
BreakEffect
()
if
cm_copy
then
cm_copy
=
false
local
te
=
e
:
GetLabelObject
()
if
te
then
e
:
SetLabelObject
(
te
:
GetLabelObject
())
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
end
end
end
\ No newline at end of file
expansions/script/c67201128.lua
View file @
2b81782a
...
...
@@ -64,7 +64,7 @@ function c67201128.spop(e,tp,eg,ep,ev,re,r,rp)
end
--
function
c67201128
.
opcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
1
-
tp
or
ev
==
tp
or
ev
==
PLAYER_ALL
return
ev
==
tp
or
ev
==
PLAYER_ALL
end
function
c67201128
.
filter
(
c
)
return
c
:
IsSetCard
(
0x3670
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
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