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
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
八宫一月
ygopro-scripts
Commits
7e979fc8
Commit
7e979fc8
authored
Apr 08, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
723fe978
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
94 additions
and
173 deletions
+94
-173
c14920218.lua
c14920218.lua
+1
-2
c15146890.lua
c15146890.lua
+1
-2
c17330916.lua
c17330916.lua
+1
-2
c17979378.lua
c17979378.lua
+1
-2
c18239909.lua
c18239909.lua
+4
-11
c20281581.lua
c20281581.lua
+1
-2
c20409757.lua
c20409757.lua
+1
-2
c22638495.lua
c22638495.lua
+3
-3
c24019092.lua
c24019092.lua
+4
-8
c24131534.lua
c24131534.lua
+4
-8
c36521459.lua
c36521459.lua
+1
-5
c38737148.lua
c38737148.lua
+3
-4
c45627618.lua
c45627618.lua
+2
-4
c47349116.lua
c47349116.lua
+1
-3
c50407691.lua
c50407691.lua
+4
-8
c51391183.lua
c51391183.lua
+1
-2
c51531505.lua
c51531505.lua
+1
-2
c53208660.lua
c53208660.lua
+3
-3
c53724621.lua
c53724621.lua
+2
-2
c5399521.lua
c5399521.lua
+1
-2
c56675280.lua
c56675280.lua
+1
-2
c59762399.lua
c59762399.lua
+4
-6
c60398723.lua
c60398723.lua
+2
-2
c60434189.lua
c60434189.lua
+2
-6
c61639289.lua
c61639289.lua
+4
-8
c67273917.lua
c67273917.lua
+4
-8
c69512157.lua
c69512157.lua
+2
-2
c72648810.lua
c72648810.lua
+4
-3
c72714461.lua
c72714461.lua
+1
-2
c73130445.lua
c73130445.lua
+1
-2
c73468603.lua
c73468603.lua
+2
-2
c81571633.lua
c81571633.lua
+1
-2
c86238081.lua
c86238081.lua
+2
-4
c88412339.lua
c88412339.lua
+2
-3
c88935103.lua
c88935103.lua
+1
-2
c91420254.lua
c91420254.lua
+1
-2
c92746535.lua
c92746535.lua
+2
-4
c93149655.lua
c93149655.lua
+1
-2
c93662626.lua
c93662626.lua
+4
-8
c94415058.lua
c94415058.lua
+1
-2
c96227613.lua
c96227613.lua
+4
-8
c96802306.lua
c96802306.lua
+4
-8
c97024987.lua
c97024987.lua
+4
-8
No files found.
c14920218.lua
View file @
7e979fc8
...
@@ -29,8 +29,7 @@ function c14920218.initial_effect(c)
...
@@ -29,8 +29,7 @@ function c14920218.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c14920218
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14920218
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
tc
and
tc
:
IsSetCard
(
0x98
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
end
function
c14920218
.
pfilter
(
c
)
function
c14920218
.
pfilter
(
c
)
...
...
c15146890.lua
View file @
7e979fc8
...
@@ -17,8 +17,7 @@ function c15146890.initial_effect(c)
...
@@ -17,8 +17,7 @@ function c15146890.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c15146890
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15146890
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
tc
and
tc
:
IsSetCard
(
0x98
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
end
function
c15146890
.
cfilter
(
c
)
function
c15146890
.
cfilter
(
c
)
...
...
c17330916.lua
View file @
7e979fc8
...
@@ -44,8 +44,7 @@ function c17330916.initial_effect(c)
...
@@ -44,8 +44,7 @@ function c17330916.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c17330916
.
sccon
(
e
)
function
c17330916
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x9f
)
end
end
function
c17330916
.
reg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17330916
.
reg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c17979378.lua
View file @
7e979fc8
...
@@ -57,8 +57,7 @@ function c17979378.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,8 +57,7 @@ function c17979378.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c17979378
.
sccon
(
e
)
function
c17979378
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
not
tc
or
not
tc
:
IsSetCard
(
0xaf
)
end
end
function
c17979378
.
filter
(
c
)
function
c17979378
.
filter
(
c
)
...
...
c18239909.lua
View file @
7e979fc8
...
@@ -25,23 +25,16 @@ function c18239909.initial_effect(c)
...
@@ -25,23 +25,16 @@ function c18239909.initial_effect(c)
e2
:
SetOperation
(
c18239909
.
spop
)
e2
:
SetOperation
(
c18239909
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c18239909
.
tgfilter
(
c
)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
else
return
c
:
IsLocation
(
LOCATION_PZONE
)
end
end
function
c18239909
.
desfilter
(
c
)
function
c18239909
.
desfilter
(
c
)
return
c
18239909
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
end
function
c18239909
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c18239909
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
OnField
(
)
and
c18239909
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
Is
Location
(
LOCATION_MZONE
+
LOCATION_PZONE
)
and
c18239909
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c18239909
.
desfilter
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c18239909
.
desfilter
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
LOCATION_MZONE
+
LOCATION_PZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c18239909
.
desfilter
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c18239909
.
desfilter
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
LOCATION_MZONE
+
LOCATION_PZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
end
...
...
c20281581.lua
View file @
7e979fc8
...
@@ -40,8 +40,7 @@ function c20281581.initial_effect(c)
...
@@ -40,8 +40,7 @@ function c20281581.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c20281581
.
descon
(
e
)
function
c20281581
.
descon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
not
tc
return
not
tc
end
end
function
c20281581
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20281581
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20409757.lua
View file @
7e979fc8
...
@@ -65,8 +65,7 @@ function c20409757.aclimit(e,re,tp)
...
@@ -65,8 +65,7 @@ function c20409757.aclimit(e,re,tp)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c20409757
.
slcon
(
e
)
function
c20409757
.
slcon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
and
not
tc
:
IsSetCard
(
0x99
))
return
not
tc
or
(
not
tc
:
IsSetCard
(
0x98
)
and
not
tc
:
IsSetCard
(
0x99
))
end
end
function
c20409757
.
filter
(
c
,
tp
)
function
c20409757
.
filter
(
c
,
tp
)
...
...
c22638495.lua
View file @
7e979fc8
...
@@ -32,7 +32,7 @@ function c22638495.initial_effect(c)
...
@@ -32,7 +32,7 @@ function c22638495.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_
ONFIELD
,
0
)
e4
:
SetTargetRange
(
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
)
e4
:
SetTarget
(
c22638495
.
indtg
)
e4
:
SetTarget
(
c22638495
.
indtg
)
e4
:
SetValue
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -40,7 +40,7 @@ function c22638495.initial_effect(c)
...
@@ -40,7 +40,7 @@ function c22638495.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
LOCATION_
ONFIELD
,
0
)
e5
:
SetTargetRange
(
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
)
e5
:
SetTarget
(
c22638495
.
indtg
)
e5
:
SetTarget
(
c22638495
.
indtg
)
e5
:
SetValue
(
aux
.
tgoval
)
e5
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
@@ -92,5 +92,5 @@ function c22638495.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,5 +92,5 @@ function c22638495.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c22638495
.
indtg
(
e
,
c
)
function
c22638495
.
indtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
return
c
:
IsType
(
TYPE_PENDULUM
)
end
end
c24019092.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c24019092.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c24019092.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c24019092
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24019092
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c24019092
.
filter
(
c
)
function
c24019092
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c24019092
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24019092
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24019092
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c24019092
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24019092
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24019092
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24019092
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c24131534.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c24131534.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c24131534.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c24131534
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24131534
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c24131534
.
filter
(
c
)
function
c24131534
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c24131534
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24131534
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24131534
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c24131534
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24131534
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24131534
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24131534
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c36521459.lua
View file @
7e979fc8
...
@@ -32,8 +32,7 @@ function c36521459.initial_effect(c)
...
@@ -32,8 +32,7 @@ function c36521459.initial_effect(c)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e9
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e9
:
SetTargetRange
(
LOCATION_FZONE
,
LOCATION_FZONE
)
e9
:
SetTarget
(
c36521459
.
indes
)
e9
:
SetValue
(
1
)
e9
:
SetValue
(
1
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
--spson
--spson
...
@@ -44,9 +43,6 @@ function c36521459.initial_effect(c)
...
@@ -44,9 +43,6 @@ function c36521459.initial_effect(c)
ea
:
SetValue
(
aux
.
FALSE
)
ea
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
ea
)
c
:
RegisterEffect
(
ea
)
end
end
function
c36521459
.
indes
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
GetSequence
()
==
5
end
function
c36521459
.
spfilter
(
c
)
function
c36521459
.
spfilter
(
c
)
return
c
:
IsCode
(
44508094
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
44508094
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
c38737148.lua
View file @
7e979fc8
...
@@ -34,14 +34,13 @@ function c38737148.spcon(e,c)
...
@@ -34,14 +34,13 @@ function c38737148.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAttribute
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
nil
,
ATTRIBUTE_LIGHT
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAttribute
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
nil
,
ATTRIBUTE_LIGHT
)
end
end
function
c38737148
.
desfilter
(
c
)
function
c38737148
.
desfilter
(
c
)
return
c
:
GetSequence
()
==
5
return
Duel
.
IsExistingTarget
(
nil
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
c
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
c
)
end
end
function
c38737148
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38737148
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c38737148
.
desfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c38737148
.
desfilter
,
tp
,
LOCATION_
FZONE
,
LOCATION_F
ZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c38737148
.
desfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c38737148
.
desfilter
,
tp
,
LOCATION_
FZONE
,
LOCATION_F
ZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
g1
:
GetFirst
())
local
g2
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
g1
:
GetFirst
())
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
...
...
c45627618.lua
View file @
7e979fc8
...
@@ -44,14 +44,12 @@ function c45627618.pcfilter(c)
...
@@ -44,14 +44,12 @@ function c45627618.pcfilter(c)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
end
function
c45627618
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
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
and
Duel
.
IsExistingMatchingCard
(
c45627618
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c45627618
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c45627618
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
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
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c45627618
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c45627618
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c47349116.lua
View file @
7e979fc8
...
@@ -57,9 +57,7 @@ function c47349116.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,7 @@ function c47349116.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c47349116
.
repfilter
(
c
,
tp
)
function
c47349116
.
repfilter
(
c
,
tp
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
end
function
c47349116
.
tgfilter
(
c
)
function
c47349116
.
tgfilter
(
c
)
...
...
c50407691.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c50407691.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c50407691.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c50407691
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50407691
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c50407691
.
filter
(
c
)
function
c50407691
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c50407691
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50407691
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50407691
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c50407691
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50407691
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c50407691
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c50407691
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c51391183.lua
View file @
7e979fc8
...
@@ -35,8 +35,7 @@ function c51391183.initial_effect(c)
...
@@ -35,8 +35,7 @@ function c51391183.initial_effect(c)
end
end
function
c51391183
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c51391183
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
if
chk
==
0
then
return
tc
and
tc
:
IsSetCard
(
0x10ec
)
and
tc
:
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetTargetCard
(
tc
)
end
end
...
...
c51531505.lua
View file @
7e979fc8
...
@@ -17,8 +17,7 @@ function c51531505.initial_effect(c)
...
@@ -17,8 +17,7 @@ function c51531505.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c51531505
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51531505
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
tc
and
tc
:
IsSetCard
(
0x98
)
return
tc
and
tc
:
IsSetCard
(
0x98
)
end
end
function
c51531505
.
cfilter
(
c
)
function
c51531505
.
cfilter
(
c
)
...
...
c53208660.lua
View file @
7e979fc8
...
@@ -15,9 +15,9 @@ function c53208660.initial_effect(c)
...
@@ -15,9 +15,9 @@ function c53208660.initial_effect(c)
end
end
function
c53208660
.
chainfilter
(
re
,
tp
,
cid
)
function
c53208660
.
chainfilter
(
re
,
tp
,
cid
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
local
loc
,
seq
=
Duel
.
GetChainInfo
(
cid
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
=
Duel
.
GetChainInfo
(
cid
,
CHAININFO_TRIGGERING_LOCATION
)
return
not
(
re
:
IsActiveType
(
TYPE_SPELL
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
not
(
re
:
GetActiveType
()
==
TYPE_PENDULUM
+
TYPE_SPELL
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
loc
==
LOCATION_SZONE
and
(
seq
==
6
or
seq
==
7
)
and
rc
:
IsSetCard
(
0x98
))
and
loc
==
LOCATION_SZONE
and
rc
:
IsSetCard
(
0x98
))
end
end
function
c53208660
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53208660
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCustomActivityCount
(
53208660
,
tp
,
ACTIVITY_CHAIN
)
==
0
return
Duel
.
GetCustomActivityCount
(
53208660
,
tp
,
ACTIVITY_CHAIN
)
==
0
...
...
c53724621.lua
View file @
7e979fc8
...
@@ -36,10 +36,10 @@ function c53724621.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,10 +36,10 @@ function c53724621.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c53724621
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c53724621
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_PZONE
)
and
chkc
:
IsControler
(
tp
)
and
c53724621
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_PZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c53724621
.
filter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c53724621
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53724621
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c5399521.lua
View file @
7e979fc8
...
@@ -67,8 +67,7 @@ function c5399521.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,8 +67,7 @@ function c5399521.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c5399521
.
slcon
(
e
)
function
c5399521
.
slcon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x1066
)
end
end
function
c5399521
.
spcon
(
e
,
c
)
function
c5399521
.
spcon
(
e
,
c
)
...
...
c56675280.lua
View file @
7e979fc8
...
@@ -22,8 +22,7 @@ function c56675280.initial_effect(c)
...
@@ -22,8 +22,7 @@ function c56675280.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c56675280
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56675280
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
tc
and
(
tc
:
IsSetCard
(
0x98
)
or
tc
:
IsSetCard
(
0x99
)
or
tc
:
IsSetCard
(
0x9f
))
and
not
tc
:
IsCode
(
56675280
)
end
end
function
c56675280
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56675280
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c59762399.lua
View file @
7e979fc8
...
@@ -30,13 +30,12 @@ function c59762399.initial_effect(c)
...
@@ -30,13 +30,12 @@ function c59762399.initial_effect(c)
end
end
function
c59762399
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59762399
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
return
at
:
GetControler
()
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
at
:
GetControler
()
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
and
tc
end
end
function
c59762399
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59762399
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
seq
=
c
:
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
c
):
GetFirst
()
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
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_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
...
@@ -44,8 +43,7 @@ end
...
@@ -44,8 +43,7 @@ end
function
c59762399
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59762399
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
c
:
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
c
):
GetFirst
()
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
if
tc
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
c60398723.lua
View file @
7e979fc8
...
@@ -21,13 +21,13 @@ function c60398723.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -21,13 +21,13 @@ function c60398723.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
end
function
c60398723
.
rfilter
(
c
)
function
c60398723
.
rfilter
(
c
)
return
c
:
GetSequence
()
==
5
and
c
:
IsAbleToHand
()
return
c
:
IsAbleToHand
()
end
end
function
c60398723
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60398723
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
local
rg
=
Duel
.
GetMatchingGroup
(
c60398723
.
rfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_S
ZONE
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c60398723
.
rfilter
,
tp
,
LOCATION_
FZONE
,
LOCATION_F
ZONE
,
nil
)
if
rg
:
GetCount
()
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60398723
,
0
))
then
if
rg
:
GetCount
()
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60398723
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
...
...
c60434189.lua
View file @
7e979fc8
...
@@ -12,8 +12,7 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -12,8 +12,7 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_PZONE
,
LOCATION_PZONE
)
e1
:
SetTarget
(
c60434189
.
indtg
)
e1
:
SetValue
(
c60434189
.
indval
)
e1
:
SetValue
(
c60434189
.
indval
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
@@ -25,14 +24,11 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,14 +24,11 @@ function c60434189.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c60434189
.
indtg
(
e
,
c
)
return
c
:
GetSequence
()
>
5
end
function
c60434189
.
indval
(
e
,
re
,
tp
)
function
c60434189
.
indval
(
e
,
re
,
tp
)
return
tp
~=
e
:
GetHandlerPlayer
()
return
tp
~=
e
:
GetHandlerPlayer
()
end
end
function
c60434189
.
indfilter
(
c
)
function
c60434189
.
indfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_
SZONE
)
and
c
:
GetSequence
()
>
5
return
c
:
IsLocation
(
LOCATION_
PZONE
)
end
end
function
c60434189
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60434189
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
...
...
c61639289.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c61639289.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c61639289.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c61639289
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61639289
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c61639289
.
filter
(
c
)
function
c61639289
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c61639289
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61639289
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61639289
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c61639289
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61639289
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c61639289
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c61639289
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c67273917.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c67273917.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c67273917.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c67273917
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67273917
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c67273917
.
filter
(
c
)
function
c67273917
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c67273917
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67273917
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c67273917
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c67273917
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67273917
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c67273917
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c67273917
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c69512157.lua
View file @
7e979fc8
...
@@ -18,8 +18,8 @@ function c69512157.initial_effect(c)
...
@@ -18,8 +18,8 @@ function c69512157.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c69512157
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
)
local
p
,
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CONTROLER
,
CHAININFO_TRIGGERING_LOCATION
)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
p
~=
tp
and
loc
==
LOCATION_SZONE
and
(
seq
==
6
or
seq
==
7
)
then
if
re
:
GetActiveType
()
==
TYPE_PENDULUM
+
TYPE_SPELL
and
p
~=
tp
and
loc
==
LOCATION_SZONE
then
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
c72648810.lua
View file @
7e979fc8
...
@@ -12,9 +12,10 @@ function c72648810.initial_effect(c)
...
@@ -12,9 +12,10 @@ function c72648810.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c72648810
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72648810
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_PENDULUM
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
local
atype
=
re
:
GetActiveType
()
or
(
loc
==
LOCATION_SZONE
and
(
seq
==
6
or
seq
==
7
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)))
return
rp
~=
tp
and
(
bit
.
band
(
atype
,
TYPE_PENDULUM
+
TYPE_MONSTER
)
==
TYPE_PENDULUM
+
TYPE_MONSTER
or
(
atype
==
TYPE_PENDULUM
+
TYPE_SPELL
and
loc
==
LOCATION_SZONE
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)))
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c72648810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72648810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c72714461.lua
View file @
7e979fc8
...
@@ -23,8 +23,7 @@ function c72714461.initial_effect(c)
...
@@ -23,8 +23,7 @@ function c72714461.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72714461
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72714461
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
sc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
))
return
sc
and
(
sc
:
IsSetCard
(
0x98
)
or
sc
:
IsSetCard
(
0x9f
))
end
end
function
c72714461
.
penfilter
(
c
)
function
c72714461
.
penfilter
(
c
)
...
...
c73130445.lua
View file @
7e979fc8
...
@@ -25,8 +25,7 @@ function c73130445.initial_effect(c)
...
@@ -25,8 +25,7 @@ function c73130445.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c73130445
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73130445
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
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
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c73468603.lua
View file @
7e979fc8
...
@@ -45,10 +45,10 @@ function c73468603.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,10 +45,10 @@ function c73468603.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c73468603
.
cfilter
(
c
)
function
c73468603
.
cfilter
(
c
)
return
c
:
GetSequence
()
==
5
and
c
:
IsFacedown
()
and
c
:
GetFlagEffect
(
73468603
)
~=
0
return
c
:
IsFacedown
()
and
c
:
GetFlagEffect
(
73468603
)
~=
0
end
end
function
c73468603
.
con
(
e
)
function
c73468603
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c73468603
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_SZONE
,
LOCATION_S
ZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c73468603
.
cfilter
,
0
,
LOCATION_FZONE
,
LOCATION_F
ZONE
,
1
,
nil
)
end
end
function
c73468603
.
actlimit
(
e
,
re
,
tp
)
function
c73468603
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetFlagEffect
(
73468603
)
==
0
return
re
:
IsActiveType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetFlagEffect
(
73468603
)
==
0
...
...
c81571633.lua
View file @
7e979fc8
...
@@ -61,8 +61,7 @@ function c81571633.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,8 +61,7 @@ function c81571633.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c81571633
.
sccon
(
e
)
function
c81571633
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
not
tc
or
not
tc
:
IsSetCard
(
0xaf
)
end
end
function
c81571633
.
filter
(
c
,
e
,
tp
)
function
c81571633
.
filter
(
c
,
e
,
tp
)
...
...
c86238081.lua
View file @
7e979fc8
...
@@ -63,14 +63,12 @@ function c86238081.pcfilter(c)
...
@@ -63,14 +63,12 @@ function c86238081.pcfilter(c)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
end
function
c86238081
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
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
and
Duel
.
IsExistingMatchingCard
(
c86238081
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c86238081
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86238081
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
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
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86238081
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86238081
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c88412339.lua
View file @
7e979fc8
...
@@ -77,7 +77,6 @@ function c88412339.splimit(e,c)
...
@@ -77,7 +77,6 @@ function c88412339.splimit(e,c)
return
not
c
:
IsSetCard
(
0x10ec
)
return
not
c
:
IsSetCard
(
0x10ec
)
end
end
function
c88412339
.
aclimit
(
e
,
re
,
tp
)
function
c88412339
.
aclimit
(
e
,
re
,
tp
)
local
c
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
c
:
IsCode
(
88412339
)
and
re
:
GetActivateLocation
()
==
LOCATION_SZONE
return
rc
:
IsCode
(
88412339
)
and
re
:
GetActiveType
()
==
TYPE_PENDULUM
+
TYPE_SPELL
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
end
end
c88935103.lua
View file @
7e979fc8
...
@@ -45,8 +45,7 @@ function c88935103.initial_effect(c)
...
@@ -45,8 +45,7 @@ function c88935103.initial_effect(c)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c88935103
.
descon
(
e
)
function
c88935103
.
descon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
return
not
tc
or
not
tc
:
IsSetCard
(
0x98
)
end
end
function
c88935103
.
synlimit
(
e
,
c
)
function
c88935103
.
synlimit
(
e
,
c
)
...
...
c91420254.lua
View file @
7e979fc8
...
@@ -30,8 +30,7 @@ function c91420254.initial_effect(c)
...
@@ -30,8 +30,7 @@ function c91420254.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c91420254
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91420254
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
tc
=
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
tc
and
tc
:
IsSetCard
(
0xb3
)
return
tc
and
tc
:
IsSetCard
(
0xb3
)
end
end
function
c91420254
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91420254
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c92746535.lua
View file @
7e979fc8
...
@@ -27,15 +27,13 @@ function c92746535.initial_effect(c)
...
@@ -27,15 +27,13 @@ function c92746535.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c92746535
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c92746535
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
return
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
return
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
end
end
function
c92746535
.
thfilter
(
c
,
code
)
function
c92746535
.
thfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
end
end
function
c92746535
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92746535
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
sc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c92746535
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
sc
:
GetOriginalCode
())
end
Duel
.
SetTargetCard
(
sc
)
Duel
.
SetTargetCard
(
sc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
...
...
c93149655.lua
View file @
7e979fc8
...
@@ -27,8 +27,7 @@ function c93149655.initial_effect(c)
...
@@ -27,8 +27,7 @@ function c93149655.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c93149655
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93149655
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
if
not
tc
or
not
tc
:
IsSetCard
(
0x99
)
then
return
end
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
...
...
c93662626.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c93662626.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c93662626.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c93662626
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93662626
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c93662626
.
filter
(
c
)
function
c93662626
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c93662626
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93662626
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93662626
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c93662626
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93662626
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c93662626
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c93662626
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c94415058.lua
View file @
7e979fc8
...
@@ -57,8 +57,7 @@ function c94415058.aclimit(e,re,tp)
...
@@ -57,8 +57,7 @@ function c94415058.aclimit(e,re,tp)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c94415058
.
sccon
(
e
)
function
c94415058
.
sccon
(
e
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetMatchingGroup
(
nil
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
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
)
and
not
tc
:
IsSetCard
(
0x99
))
return
not
tc
or
(
not
tc
:
IsSetCard
(
0x98
)
and
not
tc
:
IsSetCard
(
0x99
))
end
end
function
c94415058
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94415058
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c96227613.lua
View file @
7e979fc8
...
@@ -54,8 +54,7 @@ function c96227613.ndcon(e)
...
@@ -54,8 +54,7 @@ function c96227613.ndcon(e)
return
Duel
.
IsExistingMatchingCard
(
c96227613
.
ndcfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c96227613
.
ndcfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
c96227613
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96227613
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsCode
(
22211622
)
return
pc
and
pc
:
IsCode
(
22211622
)
end
end
function
c96227613
.
thfilter
(
c
)
function
c96227613
.
thfilter
(
c
)
...
@@ -63,18 +62,15 @@ function c96227613.thfilter(c)
...
@@ -63,18 +62,15 @@ function c96227613.thfilter(c)
end
end
function
c96227613
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96227613
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
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_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c96227613
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96227613
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
g
:
GetCount
()
<
2
then
return
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
2
then
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c96227613
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c96227613
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
...
...
c96802306.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c96802306.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c96802306.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c96802306
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96802306
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c96802306
.
filter
(
c
)
function
c96802306
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c96802306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96802306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96802306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c96802306
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96802306
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c96802306
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c96802306
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c97024987.lua
View file @
7e979fc8
...
@@ -13,27 +13,23 @@ function c97024987.initial_effect(c)
...
@@ -13,27 +13,23 @@ function c97024987.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c97024987
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97024987
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
pc
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
()):
GetFirst
()
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
seq
+
1
])
return
pc
and
pc
:
IsSetCard
(
0xc8
)
return
pc
and
pc
:
IsSetCard
(
0xc8
)
end
end
function
c97024987
.
filter
(
c
)
function
c97024987
.
filter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
end
end
function
c97024987
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97024987
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97024987
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
c
,
pc
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c97024987
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97024987
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,({
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
})[
c
:
GetSequence
()
+
1
])
local
dg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
not
pc
then
return
end
if
dg
:
GetCount
()
<
2
then
return
end
local
dg
=
Group
.
FromCards
(
c
,
pc
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c97024987
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c97024987
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
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