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
3
Merge Requests
3
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
e232a4a6
Commit
e232a4a6
authored
Oct 18, 2022
by
salix5
Committed by
GitHub
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 鎖龍蛇-スカルデット etc. (#1955)
parent
0f9c1f25
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
66 additions
and
158 deletions
+66
-158
c10851853.lua
c10851853.lua
+1
-16
c11434258.lua
c11434258.lua
+3
-7
c14386013.lua
c14386013.lua
+1
-8
c16598965.lua
c16598965.lua
+4
-8
c32619583.lua
c32619583.lua
+1
-1
c37961969.lua
c37961969.lua
+1
-16
c51335426.lua
c51335426.lua
+4
-7
c55521751.lua
c55521751.lua
+1
-8
c572850.lua
c572850.lua
+1
-16
c74078255.lua
c74078255.lua
+1
-16
c74997493.lua
c74997493.lua
+3
-7
c75047173.lua
c75047173.lua
+1
-17
c77683371.lua
c77683371.lua
+2
-2
c82016179.lua
c82016179.lua
+2
-4
c89328238.lua
c89328238.lua
+1
-9
c90488465.lua
c90488465.lua
+1
-16
utility.lua
utility.lua
+38
-0
No files found.
c10851853.lua
View file @
e232a4a6
...
@@ -61,24 +61,9 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -61,24 +61,9 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
s
.
dfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
end
function
s
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
#
tg
>
0
and
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
>
0
then
if
#
tg
>
0
and
aux
.
PlaceCardsOnDeckBottom
(
tp
,
tg
)
>
0
then
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
tg
:
Filter
(
s
.
dfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
p
=
1
-
tp
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
...
...
c11434258.lua
View file @
e232a4a6
...
@@ -28,16 +28,12 @@ end
...
@@ -28,16 +28,12 @@ end
function
c11434258
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11434258
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_HAND
,
0
)
>
1
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_HAND
,
0
)
>
1
then
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ShuffleHand
(
p
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
p
,
2
,
2
,
nil
)
local
sg
=
g
:
Select
(
p
,
2
,
2
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
p
,
sg
)
Duel
.
SortDecktop
(
p
,
p
,
2
)
for
i
=
1
,
2
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
end
end
end
c14386013.lua
View file @
e232a4a6
...
@@ -62,15 +62,8 @@ function c14386013.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,15 +62,8 @@ function c14386013.drop(e,tp,eg,ep,ev,re,r,rp)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
sg
then
if
sg
then
Duel
.
ConfirmCards
(
1
-
p
,
sg
)
Duel
.
ConfirmCards
(
1
-
p
,
sg
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
local
ct
=
aux
.
PlaceCardsOnDeckBottom
(
p
,
sg
)
local
og
=
Duel
.
GetOperatedGroup
()
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
Duel
.
SortDecktop
(
p
,
p
,
ct
)
for
i
=
1
,
ct
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
end
end
...
...
c16598965.lua
View file @
e232a4a6
...
@@ -26,16 +26,12 @@ function c16598965.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,16 +26,12 @@ function c16598965.activate(e,tp,eg,ep,ev,re,r,rp)
if
f1
and
(
not
f2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16598965
,
1
)))
and
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
==
3
then
if
f1
and
(
not
f2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16598965
,
1
)))
and
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
==
3
then
res
=
true
res
=
true
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
#
g
<
2
then
return
end
if
g
:
GetCount
()
<
2
then
return
end
Duel
.
ShuffleHand
(
tp
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
t
p
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
local
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
sg
)
Duel
.
SortDecktop
(
tp
,
tp
,
2
)
for
i
=
1
,
2
do
local
mg
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
end
if
f2
and
(
not
res
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16598965
,
2
)))
and
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
==
1
then
if
f2
and
(
not
res
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16598965
,
2
)))
and
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
==
1
then
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
...
...
c32619583.lua
View file @
e232a4a6
...
@@ -25,6 +25,6 @@ function c32619583.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,6 +25,6 @@ function c32619583.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_HAND
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_HAND
,
2
,
2
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
1
-
tp
,
g
)
end
end
end
end
c37961969.lua
View file @
e232a4a6
...
@@ -99,19 +99,7 @@ function c37961969.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,19 +99,7 @@ function c37961969.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c37961969
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c37961969
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
mat1
:
Filter
(
c37961969
.
seqfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
p
=
1
-
tp
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
...
@@ -125,6 +113,3 @@ end
...
@@ -125,6 +113,3 @@ end
function
c37961969
.
fdfilter
(
c
)
function
c37961969
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c37961969
.
seqfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
end
c51335426.lua
View file @
e232a4a6
...
@@ -32,15 +32,12 @@ function c51335426.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,15 +32,12 @@ function c51335426.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
then
if
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
if
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
<
ct
then
return
end
Duel
.
ShuffleHand
(
p
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
p
,
ct
,
ct
,
nil
)
local
sg
=
g
:
Select
(
p
,
ct
,
ct
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
p
,
sg
)
Duel
.
SortDecktop
(
p
,
p
,
ct
)
for
i
=
1
,
ct
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
end
end
end
end
end
c55521751.lua
View file @
e232a4a6
...
@@ -72,15 +72,8 @@ function c55521751.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,15 +72,8 @@ function c55521751.drop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
c55521751
.
drfilter
,
p
,
LOCATION_HAND
,
0
,
1
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
c55521751
.
drfilter
,
p
,
LOCATION_HAND
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
p
,
g
)
Duel
.
ConfirmCards
(
1
-
p
,
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
local
ct
=
aux
.
PlaceCardsOnDeckBottom
(
p
,
g
)
local
og
=
Duel
.
GetOperatedGroup
()
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
Duel
.
SortDecktop
(
p
,
p
,
ct
)
for
i
=
1
,
ct
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
end
end
...
...
c572850.lua
View file @
e232a4a6
...
@@ -106,19 +106,7 @@ function c572850.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -106,19 +106,7 @@ function c572850.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c572850
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c572850
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
mat1
:
Filter
(
c572850
.
seqfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
p
=
1
-
tp
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
...
@@ -132,6 +120,3 @@ end
...
@@ -132,6 +120,3 @@ end
function
c572850
.
fdfilter
(
c
)
function
c572850
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c572850
.
seqfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
end
c74078255.lua
View file @
e232a4a6
...
@@ -93,19 +93,7 @@ function c74078255.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,19 +93,7 @@ function c74078255.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c74078255
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c74078255
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
mat1
:
Filter
(
c74078255
.
seqfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
p
=
1
-
tp
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
...
@@ -119,6 +107,3 @@ end
...
@@ -119,6 +107,3 @@ end
function
c74078255
.
fdfilter
(
c
)
function
c74078255
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c74078255
.
seqfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
end
c74997493.lua
View file @
e232a4a6
...
@@ -117,15 +117,11 @@ function c74997493.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -117,15 +117,11 @@ function c74997493.drop(e,tp,eg,ep,ev,re,r,rp)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
4
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
4
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
<
3
then
return
end
Duel
.
ShuffleHand
(
p
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
p
,
3
,
3
,
nil
)
local
sg
=
g
:
Select
(
p
,
3
,
3
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
p
,
sg
)
Duel
.
SortDecktop
(
p
,
p
,
3
)
for
i
=
1
,
3
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
end
end
end
c75047173.lua
View file @
e232a4a6
...
@@ -39,9 +39,6 @@ function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,9 +39,6 @@ function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
s
.
dfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
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
|
0x200
local
chkf
=
tp
|
0x200
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
fsfilter1
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
)
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
fsfilter1
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
)
...
@@ -58,20 +55,7 @@ function s.fsop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,20 +55,7 @@ function s.fsop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
cf
)
Duel
.
ConfirmCards
(
1
-
tp
,
cf
)
end
end
local
ng
=
mat
:
Filter
(
Card
.
IsCode
,
nil
,
89943723
)
local
ng
=
mat
:
Filter
(
Card
.
IsCode
,
nil
,
89943723
)
if
#
mat
>
0
and
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
>
0
then
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat
)
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
mat
:
Filter
(
s
.
dfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
1
)
end
p
=
1
-
tp
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
if
ng
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
if
ng
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
...
...
c77683371.lua
View file @
e232a4a6
...
@@ -62,10 +62,10 @@ function c77683371.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,10 +62,10 @@ function c77683371.drop(e,tp,eg,ep,ev,re,r,rp)
if
ct
>
0
and
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
if
ct
>
0
and
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
nil
)
if
tg
:
GetCount
()
==
0
then
return
end
if
tg
:
GetCount
()
==
0
then
return
end
Duel
.
ShuffleHand
(
p
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sg
=
tg
:
Select
(
p
,
ct
,
ct
,
nil
)
local
sg
=
tg
:
Select
(
p
,
ct
,
ct
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckTop
(
p
,
sg
)
Duel
.
SortDecktop
(
p
,
p
,
ct
)
end
end
end
end
c82016179.lua
View file @
e232a4a6
...
@@ -31,13 +31,11 @@ function c82016179.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,13 +31,11 @@ function c82016179.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg2
=
g
:
Select
(
p
,
1
,
1
,
sg1
:
GetFirst
())
local
sg2
=
g
:
Select
(
p
,
1
,
1
,
sg1
:
GetFirst
())
sg1
:
Merge
(
sg2
)
sg1
:
Merge
(
sg2
)
Duel
.
ConfirmCards
(
1
-
p
,
sg1
)
Duel
.
ConfirmCards
(
1
-
p
,
sg1
)
Duel
.
SendtoDeck
(
sg1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckTop
(
p
,
sg1
)
Duel
.
SortDecktop
(
p
,
p
,
2
)
else
else
local
hg
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
)
local
hg
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
)
Duel
.
ConfirmCards
(
1
-
p
,
hg
)
Duel
.
ConfirmCards
(
1
-
p
,
hg
)
local
ct
=
Duel
.
SendtoDeck
(
hg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckTop
(
p
,
hg
)
Duel
.
SortDecktop
(
p
,
p
,
ct
)
end
end
end
end
end
end
c89328238.lua
View file @
e232a4a6
...
@@ -39,15 +39,7 @@ function s.act(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,15 +39,7 @@ function s.act(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
):
Select
(
p
,
d
,
d
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
):
Select
(
p
,
d
,
d
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
g
)
local
ct
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
if
ct
>
0
then
Duel
.
SortDecktop
(
p
,
p
,
ct
)
for
i
=
1
,
ct
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
...
...
c90488465.lua
View file @
e232a4a6
...
@@ -62,9 +62,6 @@ end
...
@@ -62,9 +62,6 @@ end
function
c90488465
.
spfilter
(
c
,
e
,
tp
)
function
c90488465
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c90488465
.
dfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsControler
(
tp
)
end
function
c90488465
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90488465
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
tg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
...
@@ -73,19 +70,7 @@ function c90488465.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,19 +70,7 @@ function c90488465.tdop(e,tp,eg,ep,ev,re,r,rp)
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tg
:
Sub
(
sg
)
tg
:
Sub
(
sg
)
end
aux
.
PlaceCardsOnDeckBottom
(
tp
,
tg
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
local
p
=
tp
for
i
=
1
,
2
do
local
dg
=
tg
:
Filter
(
c90488465
.
dfilter
,
nil
,
p
)
if
#
dg
>
1
then
Duel
.
SortDecktop
(
tp
,
p
,
#
dg
)
end
for
i
=
1
,
#
dg
do
local
mg
=
Duel
.
GetDecktopGroup
(
p
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
p
=
1
-
tp
end
end
end
end
end
end
utility.lua
View file @
e232a4a6
...
@@ -2984,3 +2984,41 @@ function Auxiliary.ThisCardInGraveAlreadyReset2(e)
...
@@ -2984,3 +2984,41 @@ function Auxiliary.ThisCardInGraveAlreadyReset2(e)
e1
:
Reset
()
e1
:
Reset
()
e
:
Reset
()
e
:
Reset
()
end
end
--Player p place g on the top of Deck in any order
function
Auxiliary
.
PlaceCardsOnDeckTop
(
p
,
g
,
reason
)
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
if
ct1
>
0
then
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
end
if
ct2
>
0
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
end
return
#
og
end
--Player p place g on the bottom of Deck in any order
function
Auxiliary
.
PlaceCardsOnDeckBottom
(
p
,
g
,
reason
)
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
if
ct1
>
0
then
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
for
i
=
1
,
ct1
do
local
tc
=
Duel
.
GetDecktopGroup
(
p
,
1
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
if
ct2
>
0
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
for
i
=
1
,
ct2
do
local
tc
=
Duel
.
GetDecktopGroup
(
1
-
p
,
1
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
return
#
og
end
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