Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
723fe978
Commit
723fe978
authored
Apr 07, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b21a32e0
Changes
94
Show whitespace changes
Inline
Side-by-side
Showing
94 changed files
with
249 additions
and
320 deletions
+249
-320
c13331639.lua
c13331639.lua
+2
-2
c14733538.lua
c14733538.lua
+2
-2
c14756848.lua
c14756848.lua
+4
-7
c14920218.lua
c14920218.lua
+1
-1
c15146890.lua
c15146890.lua
+1
-1
c15582767.lua
c15582767.lua
+6
-9
c15936370.lua
c15936370.lua
+3
-6
c15978426.lua
c15978426.lua
+2
-2
c17330916.lua
c17330916.lua
+1
-1
c17979378.lua
c17979378.lua
+1
-1
c18239909.lua
c18239909.lua
+1
-1
c20281581.lua
c20281581.lua
+1
-1
c20409757.lua
c20409757.lua
+1
-1
c20773176.lua
c20773176.lua
+1
-1
c22200403.lua
c22200403.lua
+1
-6
c22211622.lua
c22211622.lua
+2
-2
c22617205.lua
c22617205.lua
+3
-5
c22638495.lua
c22638495.lua
+1
-1
c23377694.lua
c23377694.lua
+4
-4
c2359348.lua
c2359348.lua
+2
-2
c24019092.lua
c24019092.lua
+3
-3
c24131534.lua
c24131534.lua
+3
-3
c26638543.lua
c26638543.lua
+9
-12
c27813661.lua
c27813661.lua
+2
-3
c29432356.lua
c29432356.lua
+8
-9
c31222701.lua
c31222701.lua
+3
-6
c31531170.lua
c31531170.lua
+6
-6
c33656832.lua
c33656832.lua
+2
-2
c37469904.lua
c37469904.lua
+1
-4
c37803970.lua
c37803970.lua
+1
-1
c39024589.lua
c39024589.lua
+2
-2
c41546.lua
c41546.lua
+4
-4
c42002073.lua
c42002073.lua
+1
-1
c43241495.lua
c43241495.lua
+4
-4
c45591967.lua
c45591967.lua
+3
-6
c45627618.lua
c45627618.lua
+5
-9
c45974017.lua
c45974017.lua
+2
-2
c46035545.lua
c46035545.lua
+4
-4
c46500985.lua
c46500985.lua
+2
-2
c47349116.lua
c47349116.lua
+1
-1
c47598941.lua
c47598941.lua
+4
-4
c50407691.lua
c50407691.lua
+3
-3
c51028231.lua
c51028231.lua
+1
-1
c51391183.lua
c51391183.lua
+1
-1
c51531505.lua
c51531505.lua
+1
-1
c5153769.lua
c5153769.lua
+4
-4
c5255013.lua
c5255013.lua
+4
-4
c53208660.lua
c53208660.lua
+2
-5
c53724621.lua
c53724621.lua
+3
-6
c5399521.lua
c5399521.lua
+1
-1
c54941203.lua
c54941203.lua
+2
-2
c55106249.lua
c55106249.lua
+1
-1
c56675280.lua
c56675280.lua
+1
-1
c58016954.lua
c58016954.lua
+7
-7
c58369990.lua
c58369990.lua
+3
-6
c59057953.lua
c59057953.lua
+2
-2
c59762399.lua
c59762399.lua
+3
-3
c60675348.lua
c60675348.lua
+2
-2
c61639289.lua
c61639289.lua
+3
-3
c61884774.lua
c61884774.lua
+2
-2
c62681049.lua
c62681049.lua
+2
-2
c65646587.lua
c65646587.lua
+5
-6
c67273917.lua
c67273917.lua
+3
-3
c67754901.lua
c67754901.lua
+5
-8
c69512157.lua
c69512157.lua
+1
-5
c69610326.lua
c69610326.lua
+2
-2
c69982329.lua
c69982329.lua
+3
-6
c72714461.lua
c72714461.lua
+5
-6
c73130445.lua
c73130445.lua
+1
-1
c74850403.lua
c74850403.lua
+1
-3
c75195825.lua
c75195825.lua
+3
-6
c76660409.lua
c76660409.lua
+3
-3
c78949372.lua
c78949372.lua
+2
-2
c80696379.lua
c80696379.lua
+4
-4
c80896940.lua
c80896940.lua
+2
-2
c81571633.lua
c81571633.lua
+1
-1
c83461421.lua
c83461421.lua
+3
-6
c85101097.lua
c85101097.lua
+3
-6
c86238081.lua
c86238081.lua
+4
-4
c88412339.lua
c88412339.lua
+1
-1
c88757791.lua
c88757791.lua
+4
-6
c88935103.lua
c88935103.lua
+1
-1
c90036274.lua
c90036274.lua
+2
-2
c9030160.lua
c9030160.lua
+2
-2
c91420254.lua
c91420254.lua
+1
-1
c92746535.lua
c92746535.lua
+2
-2
c93149655.lua
c93149655.lua
+4
-4
c93662626.lua
c93662626.lua
+3
-3
c95401059.lua
c95401059.lua
+4
-5
c96073342.lua
c96073342.lua
+2
-2
c96223501.lua
c96223501.lua
+3
-5
c96227613.lua
c96227613.lua
+5
-5
c96802306.lua
c96802306.lua
+3
-3
c97024987.lua
c97024987.lua
+3
-3
No files found.
c13331639.lua
View file @
723fe978
...
...
@@ -392,10 +392,10 @@ function c13331639.pencon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c13331639
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c13331639
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c14733538.lua
View file @
723fe978
...
...
@@ -15,7 +15,7 @@ function c14733538.filter(c,e,tp,b1,setcode)
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
function
c14733538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
(
b1
or
b2
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
,
0xc7
)
...
...
@@ -23,7 +23,7 @@ function c14733538.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
function
c14733538
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
b1
and
not
b2
then
return
end
local
g1
=
Duel
.
GetMatchingGroup
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
b1
,
0xc7
)
...
...
c14756848.lua
View file @
723fe978
...
...
@@ -60,14 +60,11 @@ end
function
c14756848
.
desfilter1
(
c
)
return
c
:
GetSequence
()
<
5
end
function
c14756848
.
desfilter2
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c14756848
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
sel
=
0
if
Duel
.
IsExistingMatchingCard
(
c14756848
.
desfilter1
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
then
sel
=
sel
+
1
end
if
Duel
.
IsExistingMatchingCard
(
c14756848
.
desfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
then
sel
=
sel
+
2
end
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_PZONE
)
>
0
then
sel
=
sel
+
2
end
e
:
SetLabel
(
sel
)
return
sel
~=
0
end
...
...
@@ -84,7 +81,7 @@ function c14756848.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
c14756848
.
desfilter1
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
else
local
g
=
Duel
.
Get
MatchingGroup
(
c14756848
.
desfilter2
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
0
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
...
...
@@ -106,12 +103,12 @@ function c14756848.desop(e,tp,eg,ep,ev,re,r,rp)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14756848
.
desfilter2
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_PZONE
):
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
not
tc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
and
not
tc
:
IsForbidden
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
14756848
,
4
))
then
Duel
.
BreakEffect
()
...
...
c14920218.lua
View file @
723fe978
...
...
@@ -30,7 +30,7 @@ function c14920218.initial_effect(c)
end
function
c14920218
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
function
c14920218
.
pfilter
(
c
)
...
...
c15146890.lua
View file @
723fe978
...
...
@@ -18,7 +18,7 @@ function c15146890.initial_effect(c)
end
function
c15146890
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
function
c15146890
.
cfilter
(
c
)
...
...
c15582767.lua
View file @
723fe978
...
...
@@ -22,20 +22,17 @@ function c15582767.initial_effect(c)
e2
:
SetLabel
(
1
)
c
:
RegisterEffect
(
e2
)
end
function
c15582767
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c15582767
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c15582767
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
true
end
if
Duel
.
GetFlagEffect
(
tp
,
15582767
)
==
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c15582767
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
RegisterFlagEffect
(
tp
,
15582767
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15582767
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
e
:
SetLabel
(
1
)
...
...
@@ -50,11 +47,11 @@ function c15582767.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterFlagEffect
(
tp
,
15582767
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c15582767
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c15582767
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c15582767
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15582767
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
...
...
c15936370.lua
View file @
723fe978
...
...
@@ -27,14 +27,11 @@ end
function
c15936370
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
==
0
end
function
c15936370
.
desfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c15936370
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c15936370
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c15936370
.
desfilter
,
tp
,
0
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15936370
.
desfilter
,
tp
,
0
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c15936370
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c15978426.lua
View file @
723fe978
...
...
@@ -20,13 +20,13 @@ function c15978426.filter(c,tohand)
end
function
c15978426
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
tohand
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
tohand
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
return
Duel
.
IsExistingMatchingCard
(
c15978426
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tohand
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c15978426
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tohand
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
tohand
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15978426
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tohand
)
local
tc
=
g
:
GetFirst
()
...
...
c17330916.lua
View file @
723fe978
...
...
@@ -45,7 +45,7 @@ function c17330916.initial_effect(c)
end
function
c17330916
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x9f
)
end
function
c17330916
.
reg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c17979378.lua
View file @
723fe978
...
...
@@ -58,7 +58,7 @@ function c17979378.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function
c17979378
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
or
not
tc
:
IsSetCard
(
0xaf
)
end
function
c17979378
.
filter
(
c
)
...
...
c18239909.lua
View file @
723fe978
...
...
@@ -29,7 +29,7 @@ function c18239909.tgfilter(c)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
else
return
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
return
c
:
IsLocation
(
LOCATION_PZONE
)
end
end
function
c18239909
.
desfilter
(
c
)
...
...
c20281581.lua
View file @
723fe978
...
...
@@ -41,7 +41,7 @@ function c20281581.initial_effect(c)
end
function
c20281581
.
descon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
end
function
c20281581
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20409757.lua
View file @
723fe978
...
...
@@ -70,7 +70,7 @@ function c20409757.slcon(e)
return
not
tc
or
(
not
tc
:
IsSetCard
(
0x98
)
and
not
tc
:
IsSetCard
(
0x99
))
end
function
c20409757
.
filter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_
PZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
function
c20409757
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c20773176.lua
View file @
723fe978
...
...
@@ -33,7 +33,7 @@ function c20773176.filter(c,tp)
and
(
c
:
IsSetCard
(
0xb4
)
or
c
:
IsSetCard
(
0xc4
))
and
not
c
:
IsCode
(
20773176
)
and
c
:
GetPreviousControler
()
==
tp
and
((
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
))
or
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
))
or
c
:
IsPreviousLocation
(
LOCATION_PZONE
))
end
function
c20773176
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c20773176
.
filter
,
1
,
nil
,
tp
)
...
...
c22200403.lua
View file @
723fe978
...
...
@@ -69,12 +69,7 @@ function c22200403.initial_effect(c)
c
:
RegisterEffect
(
e8
)
end
function
c22200403
.
effcon
(
e
)
local
ct
=
0
if
Duel
.
GetFieldCard
(
0
,
LOCATION_SZONE
,
6
)
then
ct
=
ct
+
1
end
if
Duel
.
GetFieldCard
(
0
,
LOCATION_SZONE
,
7
)
then
ct
=
ct
+
1
end
if
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
6
)
then
ct
=
ct
+
1
end
if
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
7
)
then
ct
=
ct
+
1
end
return
ct
>=
e
:
GetLabel
()
return
Duel
.
GetFieldGroup
(
0
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>=
e
:
GetLabel
()
end
function
c22200403
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
c22211622.lua
View file @
723fe978
...
...
@@ -138,10 +138,10 @@ function c22211622.pencon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c22211622
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c22211622
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c22617205.lua
View file @
723fe978
...
...
@@ -37,19 +37,17 @@ function c22617205.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_PENDULUM
end
function
c22617205
.
filter1
(
c
)
return
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)))
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
))
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
))
end
function
c22617205
.
filter2
(
c
)
return
c
:
IsFacedown
()
end
function
c22617205
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c22617205
.
filter1
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c22617205
.
filter1
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingTarget
(
c22617205
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c22617205
.
filter1
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g1
=
Duel
.
SelectTarget
(
tp
,
c22617205
.
filter1
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c22617205
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
...
...
c22638495.lua
View file @
723fe978
...
...
@@ -92,5 +92,5 @@ function c22638495.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c22638495
.
indtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsLocation
(
LOCATION_MZONE
)
or
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
end
c23377694.lua
View file @
723fe978
...
...
@@ -55,13 +55,13 @@ function c23377694.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c23377694
.
cfilter
,
1
,
nil
,
tp
)
end
function
c23377694
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
))
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c23377694
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
c23377694
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c23377694
.
spfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
c23377694
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c23377694
.
spfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c23377694
.
spfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c23377694
.
spfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c23377694
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c2359348.lua
View file @
723fe978
...
...
@@ -19,8 +19,8 @@ function c2359348.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c2359348
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
if
chk
==
0
then
return
tc1
and
tc2
and
tc1
:
IsCanBeEffectTarget
(
e
)
and
tc2
:
IsCanBeEffectTarget
(
e
)
end
local
g
=
Group
.
FromCards
(
tc1
,
tc2
)
...
...
c24019092.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c24019092.initial_effect(c)
end
function
c24019092
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c24019092
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c24019092.filter(c)
end
function
c24019092
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24019092
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c24019092
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c24131534.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c24131534.initial_effect(c)
end
function
c24131534
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c24131534
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c24131534.filter(c)
end
function
c24131534
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24131534
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c24131534
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c26638543.lua
View file @
723fe978
...
...
@@ -42,14 +42,14 @@ function c26638543.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c26638543
.
scfilter
(
c
,
pc
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
()
return
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
()
end
function
c26638543
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
c26638543
.
scfilter
(
chkc
,
c
)
and
chkc
~=
c
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26638543
.
scfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
c
,
c
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
c26638543
.
scfilter
(
chkc
,
c
)
and
chkc
~=
c
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26638543
.
scfilter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
c
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c26638543
.
scfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
c
,
c
)
Duel
.
SelectTarget
(
tp
,
c26638543
.
scfilter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
c
,
c
)
end
function
c26638543
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -70,28 +70,25 @@ function c26638543.scop(e,tp,eg,ep,ev,re,r,rp)
end
function
c26638543
.
con
(
e
)
local
tp
=
e
:
GetHandler
():
GetControler
()
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
if
not
tc1
or
not
tc2
then
return
false
end
return
tc1
:
GetLeftScale
()
==
tc2
:
GetRightScale
()
end
function
c26638543
.
val
(
e
,
c
)
local
tc
=
Duel
.
GetFieldCard
(
c
:
GetControler
(),
LOCATION_
SZONE
,
6
)
local
tc
=
Duel
.
GetFieldCard
(
c
:
GetControler
(),
LOCATION_
PZONE
,
0
)
return
tc
:
GetLeftScale
()
*
100
end
function
c26638543
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
function
c26638543
.
desfilter
(
c
)
return
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
end
function
c26638543
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
Get
MatchingGroup
(
c26638543
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c26638543
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
MatchingGroup
(
c26638543
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
...
...
c27813661.lua
View file @
723fe978
...
...
@@ -11,7 +11,7 @@ function c27813661.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_
S
ZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_
P
ZONE
,
0
)
e2
:
SetTarget
(
c27813661
.
tgtg
)
e2
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -28,8 +28,7 @@ function c27813661.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c27813661
.
tgtg
(
e
,
c
)
return
(
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
))
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
return
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
end
function
c27813661
.
desfilter
(
c
)
return
c
:
IsFaceup
()
...
...
c29432356.lua
View file @
723fe978
...
...
@@ -46,8 +46,7 @@ function c29432356.initial_effect(c)
end
function
c29432356
.
scfilter
(
c
,
pc
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0xc4
)
and
not
c
:
IsForbidden
()
and
((
pc
:
GetSequence
()
==
6
and
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
())
or
(
pc
:
GetSequence
()
==
7
and
c
:
GetRightScale
()
~=
pc
:
GetRightScale
()))
and
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
()
end
function
c29432356
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29432356
.
scfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
...
...
@@ -92,8 +91,8 @@ function c29432356.penop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
c29432356
.
checkop
(
e
,
tp
)
local
olpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
6
)
local
orpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
olpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
0
)
local
orpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
if
olpz
~=
nil
and
orpz
~=
nil
and
olpz
:
GetFlagEffectLabel
(
31531170
)
==
orpz
:
GetFieldID
()
and
orpz
:
GetFlagEffectLabel
(
31531170
)
==
olpz
:
GetFieldID
()
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -112,7 +111,7 @@ function c29432356.penop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c29432356
.
checkop
(
e
,
tp
)
local
lpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
lpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
if
lpz
==
nil
or
lpz
:
GetFlagEffect
(
29432356
)
>
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
29432356
,
2
))
...
...
@@ -143,7 +142,7 @@ function c29432356.pencon1(e,c,og)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
if
c
:
GetSequence
()
~=
6
then
return
false
end
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
if
rpz
==
nil
then
return
false
end
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
...
...
@@ -158,7 +157,7 @@ function c29432356.pencon1(e,c,og)
end
function
c29432356
.
penop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
Duel
.
Hint
(
HINT_CARD
,
0
,
29432356
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
...
...
@@ -199,7 +198,7 @@ end
function
c29432356
.
pencon2
(
e
,
c
,
og
)
if
c
==
nil
then
return
true
end
local
tp
=
e
:
GetOwnerPlayer
()
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
if
rpz
==
nil
or
rpz
:
GetFieldID
()
~=
c
:
GetFlagEffectLabel
(
31531170
)
then
return
false
end
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
...
...
@@ -216,7 +215,7 @@ function c29432356.penop2(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
Duel
.
Hint
(
HINT_CARD
,
0
,
31531170
)
Duel
.
Hint
(
HINT_CARD
,
0
,
29432356
)
local
tp
=
e
:
GetOwnerPlayer
()
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
...
...
c31222701.lua
View file @
723fe978
...
...
@@ -9,12 +9,9 @@ function c31222701.initial_effect(c)
e1
:
SetOperation
(
c31222701
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c31222701
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c31222701
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c31222701
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
end
local
g
=
Duel
.
Get
MatchingGroup
(
c31222701
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>
0
end
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
...
...
@@ -25,7 +22,7 @@ function c31222701.thfilter2(c)
return
c
:
IsCode
(
31222701
)
and
c
:
IsAbleToHand
()
end
function
c31222701
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
MatchingGroup
(
c31222701
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
local
ct
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
ct
>=
1
then
Duel
.
BreakEffect
()
...
...
c31531170.lua
View file @
723fe978
...
...
@@ -11,15 +11,15 @@ function c31531170.initial_effect(c)
end
function
c31531170
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
tc1
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
if
chk
==
0
then
return
tc1
and
tc2
and
tc1
:
IsCanBeEffectTarget
(
e
)
and
tc2
:
IsCanBeEffectTarget
(
e
)
end
local
g
=
Group
.
FromCards
(
tc1
,
tc2
)
Duel
.
SetTargetCard
(
g
)
end
function
c31531170
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
if
not
tc1
:
IsRelateToEffect
(
e
)
or
not
tc2
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
1163
)
...
...
@@ -39,7 +39,7 @@ end
function
c31531170
.
pendcon
(
e
,
c
,
og
)
if
c
==
nil
then
return
true
end
local
tp
=
e
:
GetOwnerPlayer
()
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
if
rpz
==
nil
or
rpz
:
GetFieldID
()
~=
c
:
GetFlagEffectLabel
(
31531170
)
then
return
false
end
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
...
...
@@ -55,7 +55,7 @@ end
function
c31531170
.
pendop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
Duel
.
Hint
(
HINT_CARD
,
0
,
31531170
)
local
tp
=
e
:
GetOwnerPlayer
()
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
SZONE
,
7
)
local
rpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_
PZONE
,
1
)
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
...
...
c33656832.lua
View file @
723fe978
...
...
@@ -52,11 +52,11 @@ function c33656832.spcon2(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c33656832
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c33656832
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
c37469904.lua
View file @
723fe978
...
...
@@ -11,11 +11,8 @@ function c37469904.initial_effect(c)
e1
:
SetOperation
(
c37469904
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c37469904
.
cfilter
(
c
)
return
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
end
function
c37469904
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c37469904
.
cfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>
0
end
function
c37469904
.
filter
(
c
)
return
c
:
IsSetCard
(
0xf2
)
and
c
:
IsType
(
TYPE_PENDULUM
+
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
c37803970.lua
View file @
723fe978
...
...
@@ -11,7 +11,7 @@ function c37803970.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c37803970
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
return
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
end
function
c37803970
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x98
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
...
...
c39024589.lua
View file @
723fe978
...
...
@@ -50,8 +50,8 @@ function c39024589.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c39024589
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x10ec
)
and
tc2
and
tc2
:
IsSetCard
(
0x10ec
)
end
function
c39024589
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c41546.lua
View file @
723fe978
...
...
@@ -41,18 +41,18 @@ function c41546.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c41546
.
desfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0xaf
)
return
c
:
IsSetCard
(
0xaf
)
end
function
c41546
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x10af
)
and
c
:
GetLevel
()
==
8
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c41546
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c41546
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c41546
.
desfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c41546
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c41546
.
desfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c41546
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41546
.
desfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41546
.
desfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
...
...
c42002073.lua
View file @
723fe978
...
...
@@ -84,7 +84,7 @@ end
function
c42002073
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
return
c
:
IsPreviousLocation
(
LOCATION_
PZONE
)
end
function
c42002073
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c43241495.lua
View file @
723fe978
...
...
@@ -33,13 +33,13 @@ function c43241495.thcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c43241495
.
cfilter
,
1
,
nil
,
tp
)
end
function
c43241495
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsAbleToHand
()
end
function
c43241495
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
c43241495
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c43241495
.
filter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
c43241495
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c43241495
.
filter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43241495
.
filter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43241495
.
filter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c43241495
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c45591967.lua
View file @
723fe978
...
...
@@ -66,14 +66,11 @@ function c45591967.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c45591967
.
desfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c45591967
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
c45591967
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c45591967
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c45591967
.
desfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
300
)
end
...
...
c45627618.lua
View file @
723fe978
...
...
@@ -45,13 +45,13 @@ function c45627618.pcfilter(c)
end
function
c45627618
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
and
Duel
.
IsExistingMatchingCard
(
c45627618
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c45627618
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c45627618
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -96,16 +96,12 @@ function c45627618.pencon(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c45627618
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
g
=
Group
.
FromCards
(
lsc
,
rsc
):
Filter
(
aux
.
TRUE
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>
0
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c45627618
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
g
=
Group
.
FromCards
(
lsc
,
rsc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
...
...
c45974017.lua
View file @
723fe978
...
...
@@ -35,7 +35,7 @@ function c45974017.pctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
b1
=
Duel
.
IsExistingTarget
(
c45974017
.
pcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c45974017
.
pcfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
if
chk
==
0
then
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
return
b1
or
b2
end
local
op
=
0
...
...
@@ -54,7 +54,7 @@ function c45974017.pctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c45974017
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
if
e
:
GetLabel
()
==
0
then
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
...
...
c46035545.lua
View file @
723fe978
...
...
@@ -71,7 +71,7 @@ function c46035545.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function
c46035545
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
return
c
:
IsPreviousLocation
(
LOCATION_
PZONE
)
end
function
c46035545
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10af
)
and
c
:
IsAbleToHand
()
...
...
@@ -82,7 +82,7 @@ end
function
c46035545
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46035545
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -93,8 +93,8 @@ function c46035545.thop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
local
ct
=
0
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
7
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
1
)
then
ct
=
ct
+
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
ct
,
nil
)
local
pc
=
g
:
GetFirst
()
...
...
c46500985.lua
View file @
723fe978
...
...
@@ -30,8 +30,8 @@ function c46500985.initial_effect(c)
end
function
c46500985
.
immcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
c1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
c2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
c1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
c2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
(
c1
and
c1
:
IsSetCard
(
0xe1
))
or
(
c2
and
c2
:
IsSetCard
(
0xe1
))
end
function
c46500985
.
etarget
(
e
,
c
)
...
...
c47349116.lua
View file @
723fe978
...
...
@@ -59,7 +59,7 @@ end
function
c47349116
.
repfilter
(
c
,
tp
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
(
c
:
IsLocation
(
LOCATION_MZONE
)
or
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
(
seq
==
6
or
seq
==
7
))
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
function
c47349116
.
tgfilter
(
c
)
...
...
c47598941.lua
View file @
723fe978
...
...
@@ -49,7 +49,7 @@ function c47598941.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c47598941
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsPreviousLocation
(
LOCATION_
PZONE
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c47598941
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c47598941
.
cfilter
,
1
,
nil
,
tp
)
...
...
@@ -58,19 +58,19 @@ function c47598941.filter(c)
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
function
c47598941
.
settg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c47598941
.
settg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c47598941
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
return
end
if
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
...
...
c50407691.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c50407691.initial_effect(c)
end
function
c50407691
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c50407691
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c50407691.filter(c)
end
function
c50407691
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50407691
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c50407691
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c51028231.lua
View file @
723fe978
...
...
@@ -81,7 +81,7 @@ function c51028231.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c51028231
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_
PZONE
)
end
function
c51028231
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
...
...
c51391183.lua
View file @
723fe978
...
...
@@ -36,7 +36,7 @@ end
function
c51391183
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
chk
==
0
then
return
tc
and
tc
:
IsSetCard
(
0x10ec
)
and
tc
:
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
tc
)
end
...
...
c51531505.lua
View file @
723fe978
...
...
@@ -18,7 +18,7 @@ function c51531505.initial_effect(c)
end
function
c51531505
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
function
c51531505
.
cfilter
(
c
)
...
...
c5153769.lua
View file @
723fe978
...
...
@@ -11,14 +11,14 @@ function c5153769.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c5153769
.
filter
(
c
,
e
,
tp
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0xd0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xd0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c5153769
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c5153769
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c5153769
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c5153769
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c5153769
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c5153769
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c5153769
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c5153769
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c5255013.lua
View file @
723fe978
...
...
@@ -36,8 +36,8 @@ function c5255013.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c5255013
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
if
not
tc1
or
not
tc2
or
not
tc1
:
IsSetCard
(
0xc4
)
or
not
tc2
:
IsSetCard
(
0xc4
)
then
return
false
end
local
scl1
=
tc1
:
GetLeftScale
()
local
scl2
=
tc2
:
GetRightScale
()
...
...
@@ -59,10 +59,10 @@ function c5255013.splimit(e,c,sump,sumtype,sumpos,targetp)
end
function
c5255013
.
tgcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
end
function
c5255013
.
desfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_
PZONE
)
end
function
c5255013
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c5255013
.
desfilter
,
1
,
nil
,
tp
)
...
...
c53208660.lua
View file @
723fe978
...
...
@@ -52,13 +52,10 @@ function c53208660.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetTargetRange
(
LOCATION_
S
ZONE
,
0
)
e1
:
SetTarget
(
c53208660
.
indtg
)
e1
:
SetTargetRange
(
LOCATION_
P
ZONE
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x98
)
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c53208660
.
indtg
(
e
,
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0x98
)
end
c53724621.lua
View file @
723fe978
...
...
@@ -35,14 +35,11 @@ function c53724621.drop(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
function
c53724621
.
filter
(
c
)
return
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
end
function
c53724621
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c53724621
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c53724621
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c53724621
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c53724621
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c53724621
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
)
end
function
c53724621
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c5399521.lua
View file @
723fe978
...
...
@@ -68,7 +68,7 @@ function c5399521.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c5399521
.
slcon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x1066
)
end
function
c5399521
.
spcon
(
e
,
c
)
...
...
c54941203.lua
View file @
723fe978
...
...
@@ -25,8 +25,8 @@ function c54941203.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c54941203
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x98
)
and
tc2
and
tc2
:
IsSetCard
(
0x98
)
end
function
c54941203
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c55106249.lua
View file @
723fe978
...
...
@@ -67,7 +67,7 @@ function c55106249.atkval(e,c)
end
function
c55106249
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_
SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
return
c
:
IsPreviousLocation
(
LOCATION_
PZONE
)
end
function
c55106249
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsAbleToHand
()
...
...
c56675280.lua
View file @
723fe978
...
...
@@ -23,7 +23,7 @@ function c56675280.initial_effect(c)
end
function
c56675280
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
tc
and
(
tc
:
IsSetCard
(
0x98
)
or
tc
:
IsSetCard
(
0x99
)
or
tc
:
IsSetCard
(
0x9f
))
and
not
tc
:
IsCode
(
56675280
)
end
function
c56675280
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c58016954.lua
View file @
723fe978
...
...
@@ -35,21 +35,21 @@ function c58016954.condition1(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_PENDULUM
end
function
c58016954
.
cfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0xc4
)
return
c
:
IsSetCard
(
0xc4
)
end
function
c58016954
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsAbleToHand
()
end
function
c58016954
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
c58016954
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58016954
.
cfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c58016954
.
filter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
c58016954
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58016954
.
cfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c58016954
.
filter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c58016954
.
filter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c58016954
.
filter
,
tp
,
LOCATION_
PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c58016954
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
c58016954
.
cfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
)
then
return
end
if
not
Duel
.
IsExistingMatchingCard
(
c58016954
.
cfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c58369990.lua
View file @
723fe978
...
...
@@ -17,15 +17,12 @@ function c58369990.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c58369990
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c58369990
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
c58369990
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c58369990
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c58369990
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
...
...
c59057953.lua
View file @
723fe978
...
...
@@ -11,8 +11,8 @@ function c59057953.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c59057953
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0x10ec
)
and
tc2
and
tc2
:
IsSetCard
(
0x10ec
)
end
function
c59057953
.
filter
(
c
)
...
...
c59762399.lua
View file @
723fe978
...
...
@@ -31,12 +31,12 @@ end
function
c59762399
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
local
seq
=
e
:
GetHandler
():
GetSequence
()
return
at
:
GetControler
()
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
return
at
:
GetControler
()
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
end
function
c59762399
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
seq
=
c
:
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
...
@@ -45,7 +45,7 @@ function c59762399.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
c
:
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
tc
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
c60675348.lua
View file @
723fe978
...
...
@@ -30,8 +30,8 @@ function c60675348.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c60675348
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
ct
=
0
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
7
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
1
)
then
ct
=
ct
+
1
end
if
ct
>
0
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60675348
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
sg
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
...
...
c61639289.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c61639289.initial_effect(c)
end
function
c61639289
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c61639289
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c61639289.filter(c)
end
function
c61639289
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61639289
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c61639289
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c61884774.lua
View file @
723fe978
...
...
@@ -22,7 +22,7 @@ function c61884774.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c61884774
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b2
=
(
Duel
.
IsExistingMatchingCard
(
c61884774
.
pzfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
65025250
)
and
Duel
.
IsExistingMatchingCard
(
c61884774
.
pzfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
91420254
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
if
b1
and
b2
then
...
...
@@ -61,7 +61,7 @@ function c61884774.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
else
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
local
tc1
=
Duel
.
GetFirstMatchingCard
(
c61884774
.
pzfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
65025250
)
local
tc2
=
Duel
.
GetFirstMatchingCard
(
c61884774
.
pzfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
91420254
)
if
not
(
tc1
and
tc2
)
then
return
end
...
...
c62681049.lua
View file @
723fe978
...
...
@@ -29,7 +29,7 @@ function c62681049.tdtg(e,c)
end
function
c62681049
.
tdcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0xb3
))
or
(
tc2
and
tc2
:
IsSetCard
(
0xb3
))
end
c65646587.lua
View file @
723fe978
...
...
@@ -11,8 +11,7 @@ function c65646587.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c65646587
.
filter0
(
c
,
e
)
local
seq
=
c
:
GetSequence
()
return
(
seq
==
6
or
seq
==
7
)
and
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c65646587
.
filter1
(
c
,
e
)
return
c
:
IsOnField
()
and
not
c
:
IsImmuneToEffect
(
e
)
...
...
@@ -25,8 +24,8 @@ function c65646587.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsOnField
,
nil
)
if
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_
S
ZONE
,
0
,
nil
,
e
))
if
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_
P
ZONE
,
0
,
nil
,
e
))
end
local
res
=
Duel
.
IsExistingMatchingCard
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
not
res
then
...
...
@@ -45,8 +44,8 @@ end
function
c65646587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c65646587
.
filter1
,
nil
,
e
)
if
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_
S
ZONE
,
0
,
nil
,
e
))
if
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
then
mg1
:
Merge
(
Duel
.
GetMatchingGroup
(
c65646587
.
filter0
,
tp
,
LOCATION_
P
ZONE
,
0
,
nil
,
e
))
end
local
sg1
=
Duel
.
GetMatchingGroup
(
c65646587
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg2
=
nil
...
...
c67273917.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c67273917.initial_effect(c)
end
function
c67273917
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c67273917
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c67273917.filter(c)
end
function
c67273917
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67273917
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c67273917
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c67754901.lua
View file @
723fe978
...
...
@@ -31,8 +31,8 @@ function c67754901.indfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x99
)
end
function
c67754901
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0x99
))
or
(
tc2
and
tc2
:
IsSetCard
(
0x99
))
end
function
c67754901
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -61,9 +61,6 @@ function c67754901.cfilter(c,tp)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x99
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c67754901
.
desfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c67754901
.
penfilter
(
c
)
return
c
:
IsSetCard
(
0x99
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
and
not
c
:
IsCode
(
67754901
)
and
not
c
:
IsForbidden
()
end
...
...
@@ -71,15 +68,15 @@ function c67754901.pencon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c67754901
.
cfilter
,
1
,
nil
,
tp
)
end
function
c67754901
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c67754901
.
desfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c67754901
.
penfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c67754901
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67754901
.
desfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
):
Select
(
tp
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
...
...
c69512157.lua
View file @
723fe978
...
...
@@ -7,8 +7,7 @@ function c69512157.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_SZONE
)
e2
:
SetTarget
(
c69512157
.
distg
)
e2
:
SetTargetRange
(
0
,
LOCATION_PZONE
)
c
:
RegisterEffect
(
e2
)
--disable effect
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -18,9 +17,6 @@ function c69512157.initial_effect(c)
e3
:
SetOperation
(
c69512157
.
disop
)
c
:
RegisterEffect
(
e3
)
end
function
c69512157
.
distg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c69512157
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CONTROLER
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
p
~=
tp
and
loc
==
LOCATION_SZONE
and
(
seq
==
6
or
seq
==
7
)
then
...
...
c69610326.lua
View file @
723fe978
...
...
@@ -45,7 +45,7 @@ function c69610326.pcfilter(c)
end
function
c69610326
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
and
Duel
.
IsExistingMatchingCard
(
c69610326
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c69610326
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -60,7 +60,7 @@ function c69610326.pcop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
seq
=
c
:
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69610326
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
c69982329.lua
View file @
723fe978
...
...
@@ -9,14 +9,11 @@ function c69982329.initial_effect(c)
e1
:
SetOperation
(
c69982329
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c69982329
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c69982329
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
c69982329
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c69982329
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c69982329
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
t
=
{}
local
p
=
1
...
...
c72714461.lua
View file @
723fe978
...
...
@@ -24,7 +24,7 @@ function c72714461.initial_effect(c)
end
function
c72714461
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
sc
and
(
sc
:
IsSetCard
(
0x98
)
or
sc
:
IsSetCard
(
0x9f
))
end
function
c72714461
.
penfilter
(
c
)
...
...
@@ -51,14 +51,13 @@ function c72714461.sccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_DISCARD
+
REASON_COST
)
end
function
c72714461
.
scfilter
(
c
)
return
(
c
:
GetSequence
()
==
6
and
c
:
GetLeftScale
()
~=
c
:
GetOriginalLeftScale
())
or
(
c
:
GetSequence
()
==
7
and
c
:
GetRightScale
()
~=
c
:
GetOriginalRightScale
())
return
c
:
GetLeftScale
()
~=
c
:
GetOriginalLeftScale
()
end
function
c72714461
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72714461
.
scfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c72714461
.
scfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72714461
.
scfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c72714461
.
scfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c72714461
.
scfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c72714461
.
scfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
)
end
function
c72714461
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c73130445.lua
View file @
723fe978
...
...
@@ -26,7 +26,7 @@ function c73130445.initial_effect(c)
end
function
c73130445
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
tc
and
tc
:
IsSetCard
(
0x9f
)
and
not
tc
:
IsCode
(
73130445
)
and
e
:
GetHandler
():
IsDestructable
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c74850403.lua
View file @
723fe978
...
...
@@ -31,11 +31,9 @@ function c74850403.evalue(e,re,rp)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
rp
~=
e
:
GetHandlerPlayer
()
end
function
c74850403
.
thcfilter
(
c
,
tp
)
local
pl
=
c
:
GetPreviousLocation
()
local
ps
=
c
:
GetPreviousSequence
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsPreviousSetCard
(
0x98
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
(
pl
==
LOCATION_MZONE
or
(
pl
==
LOCATION_SZONE
and
(
ps
==
6
or
ps
==
7
))
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
end
function
c74850403
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c74850403
.
thcfilter
,
1
,
nil
,
tp
)
...
...
c75195825.lua
View file @
723fe978
...
...
@@ -14,14 +14,11 @@ function c75195825.initial_effect(c)
e2
:
SetOperation
(
c75195825
.
scop
)
c
:
RegisterEffect
(
e2
)
end
function
c75195825
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c75195825
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
c75195825
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c75195825
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c75195825
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_PZONE
,
LOCATION_P
ZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c75195825
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c76660409.lua
View file @
723fe978
...
...
@@ -12,15 +12,15 @@ function c76660409.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c76660409
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
end
function
c76660409
.
filter
(
c
,
lsc
,
rsc
)
local
lv
=
c
:
GetLevel
()
return
lv
>
lsc
and
lv
<
rsc
and
c
:
IsAbleToHand
()
end
function
c76660409
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
):
GetLeftScale
()
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
):
GetRightScale
()
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
):
GetLeftScale
()
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
):
GetRightScale
()
if
lsc
>
rsc
then
lsc
,
rsc
=
rsc
,
lsc
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c76660409
.
filter
(
chkc
,
lsc
,
rsc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c76660409
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
,
lsc
,
rsc
)
end
...
...
c78949372.lua
View file @
723fe978
...
...
@@ -79,8 +79,8 @@ function c78949372.drop(e,tp,eg,ep,ev,re,r,rp)
end
function
c78949372
.
tgcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
(
tc1
and
tc1
:
IsSetCard
(
0xd0
))
or
(
tc2
and
tc2
:
IsSetCard
(
0xd0
))
end
function
c78949372
.
effectfilter
(
e
,
ct
)
...
...
c80696379.lua
View file @
723fe978
...
...
@@ -26,14 +26,14 @@ function c80696379.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c80696379
.
filter
(
c
,
e
,
tp
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c80696379
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c80696379
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c80696379
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c80696379
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c80696379
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c80696379
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c80696379
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c80696379
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c80896940.lua
View file @
723fe978
...
...
@@ -244,10 +244,10 @@ function c80896940.pencon(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c80896940
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c80896940
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c81571633.lua
View file @
723fe978
...
...
@@ -62,7 +62,7 @@ function c81571633.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function
c81571633
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
or
not
tc
:
IsSetCard
(
0xaf
)
end
function
c81571633
.
filter
(
c
,
e
,
tp
)
...
...
c83461421.lua
View file @
723fe978
...
...
@@ -9,19 +9,16 @@ function c83461421.initial_effect(c)
e1
:
SetOperation
(
c83461421
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c83461421
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c83461421
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c83461421
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c83461421
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
end
local
g
=
Duel
.
Get
MatchingGroup
(
c83461421
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
>
0
end
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c83461421
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
MatchingGroup
(
c83461421
.
filter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_PZONE
,
LOCATION_PZONE
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
local
dg
=
Duel
.
GetMatchingGroup
(
c83461421
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
dg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
83461421
,
0
))
then
...
...
c85101097.lua
View file @
723fe978
...
...
@@ -52,15 +52,12 @@ end
function
c85101097
.
ctlcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c85101097
.
filter
(
c
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
function
c85101097
.
ctltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c85101097
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsControlerCanBeChanged
()
and
Duel
.
IsExistingTarget
(
c85101097
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c85101097
.
filter
,
tp
,
LOCATION_S
ZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_P
ZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c86238081.lua
View file @
723fe978
...
...
@@ -64,13 +64,13 @@ function c86238081.pcfilter(c)
end
function
c86238081
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
and
Duel
.
IsExistingMatchingCard
(
c86238081
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c86238081
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86238081
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -123,10 +123,10 @@ function c86238081.pencon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c86238081
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c86238081
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c88412339.lua
View file @
723fe978
...
...
@@ -46,7 +46,7 @@ function c88412339.penfilter(c)
end
function
c88412339
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88412339
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
end
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
end
end
function
c88412339
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
...
...
c88757791.lua
View file @
723fe978
...
...
@@ -31,15 +31,13 @@ function c88757791.initial_effect(c)
end
function
c88757791
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsPublic
()
and
Duel
.
IsExistingTarget
(
c88757791
.
scfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
,
c
)
and
Duel
.
IsExistingTarget
(
c88757791
.
scfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
,
c
)
end
function
c88757791
.
scfilter
(
c
,
pc
)
return
c
:
IsSetCard
(
0x98
)
and
((
c
:
GetSequence
()
==
6
and
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
())
or
(
c
:
GetSequence
()
==
7
and
c
:
GetRightScale
()
~=
pc
:
GetRightScale
()))
return
c
:
IsSetCard
(
0x98
)
and
c
:
GetLeftScale
()
~=
pc
:
GetLeftScale
()
end
function
c88757791
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
c88757791
.
scfilter
(
chkc
,
e
:
GetLabelObject
())
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
c88757791
.
scfilter
(
chkc
,
e
:
GetLabelObject
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88757791
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c88757791
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
...
...
@@ -47,7 +45,7 @@ function c88757791.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
ShuffleHand
(
tp
)
e
:
SetLabelObject
(
cg
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c88757791
.
scfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
,
cg
:
GetFirst
())
Duel
.
SelectTarget
(
tp
,
c88757791
.
scfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
,
cg
:
GetFirst
())
end
function
c88757791
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
c88935103.lua
View file @
723fe978
...
...
@@ -46,7 +46,7 @@ function c88935103.initial_effect(c)
end
function
c88935103
.
descon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x98
)
end
function
c88935103
.
synlimit
(
e
,
c
)
...
...
c90036274.lua
View file @
723fe978
...
...
@@ -115,10 +115,10 @@ function c90036274.pencon(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c90036274
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c90036274
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c9030160.lua
View file @
723fe978
...
...
@@ -49,8 +49,8 @@ function c9030160.initial_effect(c)
end
function
c9030160
.
condition
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
pc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
pc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
pc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
pc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
pc1
and
pc2
and
pc1
:
IsSetCard
(
0xaf
)
and
pc2
:
IsSetCard
(
0xaf
)
end
function
c9030160
.
sumlimit
(
e
,
c
)
...
...
c91420254.lua
View file @
723fe978
...
...
@@ -31,7 +31,7 @@ function c91420254.initial_effect(c)
end
function
c91420254
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
tc
and
tc
:
IsSetCard
(
0xb3
)
end
function
c91420254
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c92746535.lua
View file @
723fe978
...
...
@@ -28,14 +28,14 @@ function c92746535.initial_effect(c)
end
function
c92746535
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
end
function
c92746535
.
thfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
end
function
c92746535
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c92746535
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
sc
:
GetOriginalCode
())
end
Duel
.
SetTargetCard
(
sc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
...
...
c93149655.lua
View file @
723fe978
...
...
@@ -28,7 +28,7 @@ function c93149655.initial_effect(c)
end
function
c93149655
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
if
not
tc
or
not
tc
:
IsSetCard
(
0x99
)
then
return
end
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
...
...
@@ -61,15 +61,15 @@ function c93149655.damcon(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c93149655
.
damfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0x99
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x99
)
end
function
c93149655
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
nil
)
if
chk
==
0
then
return
ct
>
0
end
Duel
.
SetTargetParam
(
ct
*
1200
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
1200
)
end
function
c93149655
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_
S
ZONE
,
0
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_
P
ZONE
,
0
,
nil
)
Duel
.
Damage
(
1
-
tp
,
ct
*
1200
,
REASON_EFFECT
)
end
c93662626.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c93662626.initial_effect(c)
end
function
c93662626
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c93662626
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c93662626.filter(c)
end
function
c93662626
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93662626
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c93662626
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c95401059.lua
View file @
723fe978
...
...
@@ -35,15 +35,14 @@ function c95401059.condition1(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_PENDULUM
end
function
c95401059
.
filter
(
c
,
e
,
tp
)
return
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0xc4
)
and
not
c
:
IsCode
(
95401059
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xc4
)
and
not
c
:
IsCode
(
95401059
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c95401059
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
S
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c95401059
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
P
ZONE
)
and
chkc
:
IsControler
(
tp
)
and
c95401059
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c95401059
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c95401059
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95401059
.
filter
,
tp
,
LOCATION_
S
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95401059
.
filter
,
tp
,
LOCATION_
P
ZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c95401059
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c96073342.lua
View file @
723fe978
...
...
@@ -41,7 +41,7 @@ function c96073342.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c96073342
.
handcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
6
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
7
)
local
tc1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,
1
)
return
tc1
and
tc1
:
IsSetCard
(
0xc4
)
and
tc2
and
tc2
:
IsSetCard
(
0xc4
)
end
c96223501.lua
View file @
723fe978
...
...
@@ -37,19 +37,17 @@ function c96223501.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_PENDULUM
end
function
c96223501
.
filter1
(
c
)
return
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)))
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
))
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
))
end
function
c96223501
.
filter2
(
c
)
return
c
:
IsFaceup
()
end
function
c96223501
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c96223501
.
filter1
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c96223501
.
filter1
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingTarget
(
c96223501
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c96223501
.
filter1
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g1
=
Duel
.
SelectTarget
(
tp
,
c96223501
.
filter1
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c96223501
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
...
...
c96227613.lua
View file @
723fe978
...
...
@@ -55,7 +55,7 @@ function c96227613.ndcon(e)
end
function
c96227613
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsCode
(
22211622
)
end
function
c96227613
.
thfilter
(
c
)
...
...
@@ -64,7 +64,7 @@ end
function
c96227613
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96227613
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
@@ -72,7 +72,7 @@ end
function
c96227613
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
2
then
...
...
@@ -149,10 +149,10 @@ function c96227613.pencon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
function
c96227613
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c96227613
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
SZONE
,
6
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_
PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c96802306.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c96802306.initial_effect(c)
end
function
c96802306
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c96802306
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c96802306.filter(c)
end
function
c96802306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96802306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c96802306
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
...
...
c97024987.lua
View file @
723fe978
...
...
@@ -14,7 +14,7 @@ function c97024987.initial_effect(c)
end
function
c97024987
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
seq
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
]
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
function
c97024987
.
filter
(
c
)
...
...
@@ -22,7 +22,7 @@ function c97024987.filter(c)
end
function
c97024987
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97024987
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
...
...
@@ -31,7 +31,7 @@ end
function
c97024987
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
13
-
c
:
GetSequence
()
)
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
]
)
if
not
pc
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
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