Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
2f8e8552
Commit
2f8e8552
authored
Aug 15, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3fe484f6
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
33 additions
and
39 deletions
+33
-39
c10312660.lua
c10312660.lua
+1
-1
c11481610.lua
c11481610.lua
+1
-1
c16209941.lua
c16209941.lua
+1
-1
c18458255.lua
c18458255.lua
+0
-3
c20246864.lua
c20246864.lua
+1
-1
c20590515.lua
c20590515.lua
+1
-1
c26302107.lua
c26302107.lua
+1
-1
c30680659.lua
c30680659.lua
+1
-1
c31588572.lua
c31588572.lua
+1
-1
c32453837.lua
c32453837.lua
+1
-1
c3289027.lua
c3289027.lua
+1
-1
c33099732.lua
c33099732.lua
+2
-2
c35960413.lua
c35960413.lua
+1
-1
c36239585.lua
c36239585.lua
+1
-1
c43316238.lua
c43316238.lua
+1
-1
c43694650.lua
c43694650.lua
+1
-1
c51412776.lua
c51412776.lua
+1
-1
c52350806.lua
c52350806.lua
+1
-1
c60514625.lua
c60514625.lua
+1
-1
c6075533.lua
c6075533.lua
+1
-1
c61976639.lua
c61976639.lua
+2
-2
c65892585.lua
c65892585.lua
+1
-1
c70711847.lua
c70711847.lua
+1
-1
c75952542.lua
c75952542.lua
+0
-3
c78663366.lua
c78663366.lua
+1
-1
c7987191.lua
c7987191.lua
+2
-2
c83518674.lua
c83518674.lua
+1
-1
c90807199.lua
c90807199.lua
+1
-1
c94821366.lua
c94821366.lua
+1
-1
c99745551.lua
c99745551.lua
+1
-1
utility.lua
utility.lua
+2
-2
No files found.
c10312660.lua
View file @
2f8e8552
...
@@ -26,7 +26,7 @@ function c10312660.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c10312660.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
g
:
GetClassCount
(
Card
.
GetCode
)
<
3
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
g
:
GetClassCount
(
Card
.
GetCode
)
<
3
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
if
#
sg
>
0
then
if
sg
then
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
local
tc
=
sg
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
local
tc
=
sg
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ConfirmCards
(
tp
,
tc
)
...
...
c11481610.lua
View file @
2f8e8552
...
@@ -51,7 +51,7 @@ function c11481610.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c11481610.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
local
g
=
Duel
.
GetMatchingGroup
(
c11481610
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
,
lsc
,
rsc
)
local
g
=
Duel
.
GetMatchingGroup
(
c11481610
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
,
lsc
,
rsc
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
ct
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
ct
)
res
=
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
res
=
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
end
end
end
end
if
not
res
then
if
not
res
then
...
...
c16209941.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c16209941.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c16209941.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c16209941
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c16209941
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c18458255.lua
View file @
2f8e8552
...
@@ -69,9 +69,6 @@ function c18458255.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,9 +69,6 @@ function c18458255.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
c18458255
.
splimit
(
e
,
c
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_PENDULUM
)
end
function
c18458255
.
reprmfilter
(
c
,
tp
)
function
c18458255
.
reprmfilter
(
c
,
tp
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
,
REASON_EFFECT
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
...
...
c20246864.lua
View file @
2f8e8552
...
@@ -34,7 +34,7 @@ function c20246864.cfilter(c)
...
@@ -34,7 +34,7 @@ function c20246864.cfilter(c)
end
end
function
c20246864
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20246864
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
return
#
g
>
0
and
#
g
==
Duel
.
GetMatchingGroupCount
(
c20246864
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
#
g
>
0
and
#
g
==
Duel
.
GetMatchingGroupCount
(
c20246864
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
end
end
function
c20246864
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20246864
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c20590515.lua
View file @
2f8e8552
...
@@ -44,7 +44,7 @@ function c20590515.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c20590515.activate(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
20590515
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
20590515
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
...
...
c26302107.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c26302107.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c26302107.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c26302107
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c26302107
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c30680659.lua
View file @
2f8e8552
...
@@ -74,7 +74,7 @@ function c30680659.stfilter(c,tp)
...
@@ -74,7 +74,7 @@ function c30680659.stfilter(c,tp)
return
aux
.
IsCodeListed
(
c
,
3285552
)
and
c
:
IsType
(
TYPE_FIELD
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
)
return
aux
.
IsCodeListed
(
c
,
3285552
)
and
c
:
IsType
(
TYPE_FIELD
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
)
end
end
function
c30680659
.
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30680659
.
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c30680659
.
stfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c30680659
.
stfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
end
end
end
function
c30680659
.
sop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30680659
.
sop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
...
...
c31588572.lua
View file @
2f8e8552
...
@@ -48,7 +48,7 @@ end
...
@@ -48,7 +48,7 @@ end
function
c31588572
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31588572
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
res
=
false
local
res
=
0
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
:
IsType
(
TYPE_MONSTER
)
then
res
=
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
res
=
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
if
res
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
if
res
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
...
...
c32453837.lua
View file @
2f8e8552
...
@@ -58,7 +58,7 @@ function c32453837.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -58,7 +58,7 @@ function c32453837.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
)
elseif
sel
==
1
then
elseif
sel
==
1
then
e
:
SetCategory
(
CATEGORY_DAMAGE
)
e
:
SetCategory
(
CATEGORY_DAMAGE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
end
end
end
function
c32453837
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32453837
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c3289027.lua
View file @
2f8e8552
...
@@ -45,7 +45,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
local
res
=
false
local
res
=
0
if
b1
and
b2
then
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
2
),
aux
.
Stringid
(
id
,
3
))
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
2
),
aux
.
Stringid
(
id
,
3
))
elseif
b1
then
elseif
b1
then
...
...
c33099732.lua
View file @
2f8e8552
...
@@ -75,7 +75,7 @@ end
...
@@ -75,7 +75,7 @@ end
function
s
.
fstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
fstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chkf
=
tp
local
chkf
=
tp
local
mg1
=
Duel
.
GetMatchingGroup
(
s
.
mfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
mg1
=
Duel
.
GetMatchingGroup
(
s
.
mfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
not
res
then
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
@@ -94,7 +94,7 @@ function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -94,7 +94,7 @@ function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
fsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
fsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
tp
local
chkf
=
tp
local
mg1
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
mg1
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
ffilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg2
=
nil
local
mg2
=
nil
local
sg2
=
nil
local
sg2
=
nil
...
...
c35960413.lua
View file @
2f8e8552
...
@@ -29,7 +29,7 @@ function c35960413.filter(c)
...
@@ -29,7 +29,7 @@ function c35960413.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsDefense
(
600
)
return
c
:
IsFaceup
()
and
c
:
IsDefense
(
600
)
end
end
function
c35960413
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35960413
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c35960413
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c35960413
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ct
>
0
and
ct
==
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
return
ct
>
0
and
ct
==
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
end
end
function
c35960413
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35960413
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c36239585.lua
View file @
2f8e8552
...
@@ -68,7 +68,7 @@ end
...
@@ -68,7 +68,7 @@ end
function
c36239585
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36239585
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
res
=
false
local
res
=
0
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
:
IsType
(
TYPE_MONSTER
)
then
res
=
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
res
=
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
if
res
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
if
res
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
...
...
c43316238.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c43316238.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c43316238.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c43316238
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c43316238
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c43694650.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c43694650.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c43694650.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c43694650
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c43694650
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c51412776.lua
View file @
2f8e8552
...
@@ -54,7 +54,7 @@ function c51412776.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c51412776.checkop(e,tp,eg,ep,ev,re,r,rp)
if
eg
:
IsExists
(
c51412776
.
checkfilter
,
1
,
nil
,
1
)
then
v
=
v
+
2
end
if
eg
:
IsExists
(
c51412776
.
checkfilter
,
1
,
nil
,
1
)
then
v
=
v
+
2
end
if
v
>
0
then
if
v
>
0
then
local
evp
=
({
0
,
1
,
PLAYER_ALL
})[
v
]
local
evp
=
({
0
,
1
,
PLAYER_ALL
})[
v
]
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
51412776
,
nil
,
0
,
rp
,
ep
,
evp
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
51412776
,
e
,
0
,
rp
,
ep
,
evp
)
end
end
end
end
function
c51412776
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51412776
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c52350806.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c52350806.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c52350806.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c52350806
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c52350806
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c60514625.lua
View file @
2f8e8552
...
@@ -75,6 +75,6 @@ function c60514625.tkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,6 +75,6 @@ function c60514625.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c60514625
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60514625
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsFacedown
()
then
return
end
if
e
:
GetHandler
():
IsFacedown
()
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
0
,
nil
,
60514626
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
60514626
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
c6075533.lua
View file @
2f8e8552
...
@@ -25,7 +25,7 @@ function c6075533.cfilter(c)
...
@@ -25,7 +25,7 @@ function c6075533.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2f
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2f
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
function
c6075533
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6075533
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c6075533
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c6075533
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
if
chk
==
0
then
return
ct
>=
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
if
chk
==
0
then
return
ct
>=
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
or
ct
>=
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
or
ct
>=
2
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
...
...
c61976639.lua
View file @
2f8e8552
...
@@ -30,10 +30,10 @@ function c61976639.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,10 +30,10 @@ function c61976639.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c61976639
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61976639
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c61976639
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c61976639
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
c61976639
.
scchk
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x152
)
if
Duel
.
IsExistingMatchingCard
(
c61976639
.
scchk
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x152
)
and
Duel
.
IsExistingMatchingCard
(
c61976639
.
scchk
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x153
)
then
and
Duel
.
IsExistingMatchingCard
(
c61976639
.
scchk
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x153
)
then
local
eg
=
Duel
.
GetMatchingGroup
(
c61976639
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
eg
=
Duel
.
GetMatchingGroup
(
c61976639
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
g
:
Merge
(
eg
)
g
:
Merge
(
eg
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c65892585.lua
View file @
2f8e8552
...
@@ -51,7 +51,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
<
1
then
return
end
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
<
1
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
gfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
gfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
g
>
0
if
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c70711847.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c70711847.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c70711847.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c70711847
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c70711847
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c75952542.lua
View file @
2f8e8552
...
@@ -53,9 +53,6 @@ function c75952542.sttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -53,9 +53,6 @@ function c75952542.sttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
75952542
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
75952542
,
0
))
Duel
.
SelectTarget
(
tp
,
c75952542
.
stfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
Duel
.
SelectTarget
(
tp
,
c75952542
.
stfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
end
end
function
c75952542
.
seqfilter
(
c
,
seq
)
return
c
:
GetSequence
()
==
seq
end
function
c75952542
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75952542
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
))
then
return
end
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
))
then
return
end
...
...
c78663366.lua
View file @
2f8e8552
...
@@ -18,7 +18,7 @@ function c78663366.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c78663366.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c78663366
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78663366
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsControler
(
tp
)
and
Duel
.
Remove
(
c
,
nil
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsControler
(
tp
)
and
Duel
.
Remove
(
c
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
...
...
c7987191.lua
View file @
2f8e8552
...
@@ -35,7 +35,7 @@ function c7987191.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,7 +35,7 @@ function c7987191.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
c7987191
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c7987191
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
g
:
AddCard
(
c
)
g
:
AddCard
(
c
)
g
:
Merge
(
eg
)
g
:
Merge
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
eg
:
GetCount
()
+
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
eg
:
GetCount
()
+
1
,
0
,
0
)
...
@@ -44,7 +44,7 @@ function c7987191.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c7987191.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
NegateSummon
(
eg
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
local
g
=
Duel
.
GetMatchingGroup
(
c7987191
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c7987191
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
if
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c83518674.lua
View file @
2f8e8552
...
@@ -38,7 +38,7 @@ function c83518674.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c83518674.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c83518674
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c83518674
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c90807199.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c90807199.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c90807199.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c90807199
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c90807199
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c94821366.lua
View file @
2f8e8552
...
@@ -99,7 +99,7 @@ function c94821366.costfilter(c)
...
@@ -99,7 +99,7 @@ function c94821366.costfilter(c)
end
end
function
c94821366
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94821366
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94821366
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94821366
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
rt
=
Duel
.
GetTargetCount
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
rt
=
Duel
.
GetTargetCount
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94821366
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
rt
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94821366
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
rt
,
nil
)
local
cg
=
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
local
cg
=
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
...
...
c99745551.lua
View file @
2f8e8552
...
@@ -40,7 +40,7 @@ function c99745551.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c99745551.spop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
spg
=
Duel
.
GetMatchingGroup
(
c99745551
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
spg
=
Duel
.
GetMatchingGroup
(
c99745551
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
spg
:
GetCount
()
<=
0
then
return
end
if
spg
:
GetCount
()
<=
0
then
return
end
local
sg
=
spg
:
GetFirst
()
local
sg
=
spg
if
spg
:
GetCount
()
~=
1
then
if
spg
:
GetCount
()
~=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
utility.lua
View file @
2f8e8552
...
@@ -1209,7 +1209,7 @@ function Auxiliary.FConditionMix(insf,sub,...)
...
@@ -1209,7 +1209,7 @@ function Auxiliary.FConditionMix(insf,sub,...)
local
mg
=
g
:
Filter
(
Auxiliary
.
FConditionFilterMix
,
c
,
c
,
sub
,
concat_fusion
,
table.unpack
(
funs
))
local
mg
=
g
:
Filter
(
Auxiliary
.
FConditionFilterMix
,
c
,
c
,
sub
,
concat_fusion
,
table.unpack
(
funs
))
if
gc
then
if
gc
then
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
Duel
.
SetSelectedCard
(
Group
.
FromCards
(
gc
)
)
Duel
.
SetSelectedCard
(
gc
)
end
end
return
mg
:
CheckSubGroup
(
Auxiliary
.
FCheckMixGoal
,
#
funs
,
#
funs
,
tp
,
c
,
sub
,
chkfnf
,
table.unpack
(
funs
))
return
mg
:
CheckSubGroup
(
Auxiliary
.
FCheckMixGoal
,
#
funs
,
#
funs
,
tp
,
c
,
sub
,
chkfnf
,
table.unpack
(
funs
))
end
end
...
@@ -1223,7 +1223,7 @@ function Auxiliary.FOperationMix(insf,sub,...)
...
@@ -1223,7 +1223,7 @@ function Auxiliary.FOperationMix(insf,sub,...)
local
concat_fusion
=
chkfnf
&
0x200
>
0
local
concat_fusion
=
chkfnf
&
0x200
>
0
local
sub
=
(
sub
or
notfusion
)
and
not
concat_fusion
local
sub
=
(
sub
or
notfusion
)
and
not
concat_fusion
local
mg
=
eg
:
Filter
(
Auxiliary
.
FConditionFilterMix
,
c
,
c
,
sub
,
concat_fusion
,
table.unpack
(
funs
))
local
mg
=
eg
:
Filter
(
Auxiliary
.
FConditionFilterMix
,
c
,
c
,
sub
,
concat_fusion
,
table.unpack
(
funs
))
if
gc
then
Duel
.
SetSelectedCard
(
Group
.
FromCards
(
gc
)
)
end
if
gc
then
Duel
.
SetSelectedCard
(
gc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
sg
=
mg
:
SelectSubGroup
(
tp
,
Auxiliary
.
FCheckMixGoal
,
false
,
#
funs
,
#
funs
,
tp
,
c
,
sub
,
chkfnf
,
table.unpack
(
funs
))
local
sg
=
mg
:
SelectSubGroup
(
tp
,
Auxiliary
.
FCheckMixGoal
,
false
,
#
funs
,
#
funs
,
tp
,
c
,
sub
,
chkfnf
,
table.unpack
(
funs
))
Duel
.
SetFusionMaterial
(
sg
)
Duel
.
SetFusionMaterial
(
sg
)
...
...
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