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
0524209b
Commit
0524209b
authored
Dec 17, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change GetCode to IsCode
parent
0ea69101
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
53 additions
and
53 deletions
+53
-53
c11502550.lua
c11502550.lua
+1
-1
c12171659.lua
c12171659.lua
+1
-1
c12538374.lua
c12538374.lua
+1
-1
c131182.lua
c131182.lua
+1
-1
c17032740.lua
c17032740.lua
+1
-1
c17393207.lua
c17393207.lua
+1
-1
c18698739.lua
c18698739.lua
+1
-1
c19594506.lua
c19594506.lua
+1
-1
c28677304.lua
c28677304.lua
+1
-1
c28754338.lua
c28754338.lua
+1
-1
c30241314.lua
c30241314.lua
+1
-1
c31786629.lua
c31786629.lua
+1
-1
c32485518.lua
c32485518.lua
+1
-1
c3431737.lua
c3431737.lua
+1
-1
c34627841.lua
c34627841.lua
+1
-1
c35952884.lua
c35952884.lua
+1
-1
c36262024.lua
c36262024.lua
+1
-1
c39719977.lua
c39719977.lua
+1
-1
c42015635.lua
c42015635.lua
+1
-1
c47594192.lua
c47594192.lua
+1
-1
c48675364.lua
c48675364.lua
+1
-1
c48996569.lua
c48996569.lua
+1
-1
c49352945.lua
c49352945.lua
+1
-1
c5128859.lua
c5128859.lua
+1
-1
c51405049.lua
c51405049.lua
+1
-1
c52624755.lua
c52624755.lua
+1
-1
c55171412.lua
c55171412.lua
+1
-1
c56105047.lua
c56105047.lua
+1
-1
c58120309.lua
c58120309.lua
+1
-1
c60668166.lua
c60668166.lua
+1
-1
c62107612.lua
c62107612.lua
+1
-1
c67757079.lua
c67757079.lua
+1
-1
c71587526.lua
c71587526.lua
+1
-1
c7304544.lua
c7304544.lua
+1
-1
c74968065.lua
c74968065.lua
+1
-1
c75014062.lua
c75014062.lua
+1
-1
c75064463.lua
c75064463.lua
+1
-1
c78512663.lua
c78512663.lua
+1
-1
c79109599.lua
c79109599.lua
+1
-1
c79814787.lua
c79814787.lua
+1
-1
c80186010.lua
c80186010.lua
+1
-1
c80908502.lua
c80908502.lua
+1
-1
c81566151.lua
c81566151.lua
+1
-1
c85507811.lua
c85507811.lua
+1
-1
c86742443.lua
c86742443.lua
+2
-2
c88733579.lua
c88733579.lua
+1
-1
c91188343.lua
c91188343.lua
+1
-1
c9411399.lua
c9411399.lua
+1
-1
c97093037.lua
c97093037.lua
+1
-1
c98446407.lua
c98446407.lua
+1
-1
c98884569.lua
c98884569.lua
+1
-1
c99000151.lua
c99000151.lua
+1
-1
No files found.
c11502550.lua
View file @
0524209b
...
...
@@ -49,7 +49,7 @@ function c11502550.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c11502550
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c11502550
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c12171659.lua
View file @
0524209b
...
...
@@ -25,7 +25,7 @@ function c12171659.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c12171659
.
filter
(
c
)
return
c
:
GetCode
()
==
56433456
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
56433456
)
and
c
:
IsAbleToHand
()
end
function
c12171659
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12171659
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c12538374.lua
View file @
0524209b
...
...
@@ -14,7 +14,7 @@ function c12538374.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c12538374
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
GetCode
()
==
12538374
and
c
:
IsFaceup
())
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
IsCode
(
12538374
)
and
c
:
IsFaceup
())
end
function
c12538374
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c12538374
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
c131182.lua
View file @
0524209b
...
...
@@ -53,7 +53,7 @@ function c131182.initial_effect(c)
c
:
RegisterEffect
(
e7
)
end
function
c131182
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
131182
return
c
:
IsFaceup
()
and
c
:
IsCode
(
131182
)
end
function
c131182
.
excon
(
e
)
local
c
=
e
:
GetHandler
()
...
...
c17032740.lua
View file @
0524209b
...
...
@@ -52,7 +52,7 @@ function c17032740.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c17032740
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c17032740
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c17393207.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c17393207.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c17393207
.
filter
(
c
)
return
c
:
GetCode
()
==
47355498
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
47355498
)
and
c
:
IsAbleToHand
()
end
function
c17393207
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17393207
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c18698739.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c18698739.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c18698739
.
filter
(
c
)
return
c
:
GetCode
()
==
44682448
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
44682448
)
and
c
:
IsAbleToHand
()
end
function
c18698739
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c18698739
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c19594506.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c19594506.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c19594506
.
filter
(
c
)
return
c
:
GetCode
()
==
42015635
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
42015635
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
function
c19594506
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19594506
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c28677304.lua
View file @
0524209b
...
...
@@ -52,7 +52,7 @@ function c28677304.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c28677304
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c28677304
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c28754338.lua
View file @
0524209b
...
...
@@ -20,7 +20,7 @@ function c28754338.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
rg
,
REASON_COST
)
end
function
c28754338
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
47826112
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
47826112
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c28754338
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
...
...
c30241314.lua
View file @
0524209b
...
...
@@ -18,7 +18,7 @@ function c30241314.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c30241314
.
filter
(
c
,
e
,
sp
)
return
c
:
GetCode
()
==
54493213
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
return
c
:
IsCode
(
54493213
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
function
c30241314
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
c31786629.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c31786629.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c31786629
.
filter
(
c
)
return
c
:
GetCode
()
==
31786629
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
31786629
)
and
c
:
IsAbleToHand
()
end
function
c31786629
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c31786629
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c32485518.lua
View file @
0524209b
...
...
@@ -23,7 +23,7 @@ function c32485518.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c32485518
.
filter
(
c
)
return
c
:
GetCode
()
==
4064256
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
4064256
)
and
c
:
IsAbleToHand
()
end
function
c32485518
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c32485518
.
filter
(
chkc
)
end
...
...
c3431737.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c3431737.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c3431737
.
filter
(
c
)
return
c
:
GetCode
()
==
80280737
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
80280737
)
and
c
:
IsAbleToHand
()
end
function
c3431737
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c3431737
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c34627841.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c34627841.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c34627841
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
89631139
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
89631139
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c34627841
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
...
...
c35952884.lua
View file @
0524209b
...
...
@@ -95,7 +95,7 @@ function c35952884.sumcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c35952884
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
24696097
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
true
)
return
c
:
IsCode
(
24696097
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
true
)
end
function
c35952884
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c36262024.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c36262024.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c36262024
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
74677422
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
74677422
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c36262024
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
...
...
c39719977.lua
View file @
0524209b
...
...
@@ -15,7 +15,7 @@ function c39719977.filter(c,tp)
end
function
c39719977
.
filter2
(
c
,
code
)
local
tpe
=
c
:
GetType
()
return
c
:
IsFaceup
()
and
bit
.
band
(
tpe
,
TYPE_NORMAL
)
~=
0
and
bit
.
band
(
tpe
,
TYPE_TOKEN
)
==
0
and
c
:
GetCode
()
==
code
return
c
:
IsFaceup
()
and
bit
.
band
(
tpe
,
TYPE_NORMAL
)
~=
0
and
bit
.
band
(
tpe
,
TYPE_TOKEN
)
==
0
and
c
:
IsCode
(
code
)
end
function
c39719977
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c39719977
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
nil
,
tp
)
end
...
...
c42015635.lua
View file @
0524209b
...
...
@@ -23,5 +23,5 @@ function c42015635.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c42015635
.
atktg
(
e
,
c
)
return
c
:
GetCode
()
==
89943723
or
(
c
:
IsSetCard
(
0x9
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
31111109
))
return
c
:
IsCode
(
89943723
)
or
(
c
:
IsSetCard
(
0x9
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
31111109
))
end
c47594192.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c47594192.cfilter(c,tp)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
IsExistingMatchingCard
(
c47594192
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
2
,
c
,
c
:
GetCode
())
end
function
c47594192
.
cfilter2
(
c
,
code
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
code
return
c
:
IsFaceup
()
and
c
:
IsCode
(
code
)
end
function
c47594192
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c47594192
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
...
...
c48675364.lua
View file @
0524209b
...
...
@@ -25,7 +25,7 @@ function c48675364.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c48675364
.
filter
(
c
)
return
c
:
GetCode
()
==
94585852
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
94585852
)
and
c
:
IsAbleToHand
()
end
function
c48675364
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c48675364
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c48996569.lua
View file @
0524209b
...
...
@@ -52,7 +52,7 @@ function c48996569.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c48996569
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c48996569
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c49352945.lua
View file @
0524209b
...
...
@@ -60,7 +60,7 @@ function c49352945.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c49352945
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c49352945
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c5128859.lua
View file @
0524209b
...
...
@@ -34,7 +34,7 @@ function c5128859.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c5128859
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c5128859
.
spfilter2
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetOriginalCode
()
==
code
...
...
c51405049.lua
View file @
0524209b
...
...
@@ -50,7 +50,7 @@ end
function
c51405049
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
0
then
return
end
local
tc
=
eg
:
GetFirst
()
if
tc
:
GetCode
()
==
e
:
GetLabel
(
)
then
if
tc
:
IsCode
(
e
:
GetLabel
()
)
then
e
:
SetLabel
(
0
)
end
end
...
...
c52624755.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c52624755.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c52624755
.
filter
(
c
,
e
,
sp
)
return
c
:
GetCode
()
==
52624755
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
return
c
:
IsCode
(
52624755
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
function
c52624755
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c55171412.lua
View file @
0524209b
...
...
@@ -52,7 +52,7 @@ function c55171412.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c55171412
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c55171412
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c56105047.lua
View file @
0524209b
...
...
@@ -13,7 +13,7 @@ function c56105047.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c56105047
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
62476815
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
62476815
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c56105047
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c56105047
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c58120309.lua
View file @
0524209b
...
...
@@ -19,7 +19,7 @@ function c58120309.condition(e,tp,eg,ep,ev,re,r,rp)
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
c58120309
.
filter
,
nil
,
tp
)
-
tg
:
GetCount
()
>
1
end
function
c58120309
.
sfilter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
44508094
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
44508094
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c58120309
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c60668166.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c60668166.condition(e,tp,eg,ep,ev,re,r,rp)
return
rp
~=
tp
and
c
:
GetPreviousControler
()
==
tp
and
bit
.
band
(
c
:
GetPreviousLocation
(),
LOCATION_ONFIELD
)
~=
0
end
function
c60668166
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
60668166
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
return
c
:
IsCode
(
60668166
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
end
function
c60668166
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c62107612.lua
View file @
0524209b
...
...
@@ -15,7 +15,7 @@ function c62107612.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c62107612
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
and
re
:
GetHandler
():
GetCode
()
==
93717133
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
and
re
:
GetHandler
():
IsCode
(
93717133
)
end
function
c62107612
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c67757079.lua
View file @
0524209b
...
...
@@ -14,7 +14,7 @@ function c67757079.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c67757079
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
==
94878265
return
c
:
IsFaceup
()
and
c
:
IsCode
(
94878265
)
end
function
c67757079
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c67757079
.
cfilter
,
1
,
nil
)
end
...
...
c71587526.lua
View file @
0524209b
...
...
@@ -27,7 +27,7 @@ function c71587526.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
c71587526
.
rfilter
(
c
,
code
)
return
c
:
GetCode
()
==
code
and
c
:
IsAbleToRemove
()
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToRemove
()
end
function
c71587526
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c7304544.lua
View file @
0524209b
...
...
@@ -22,7 +22,7 @@ function c7304544.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c7304544
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
GetCode
()
==
7304544
and
c
:
IsFaceup
())
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
IsCode
(
7304544
)
and
c
:
IsFaceup
())
end
function
c7304544
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsRace
(
RACE_PLANT
+
RACE_BEAST
)
...
...
c74968065.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c74968065.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c74968065
.
filter
(
c
)
return
c
:
GetCode
()
==
1353770
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
1353770
)
and
c
:
IsAbleToHand
()
end
function
c74968065
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74968065
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c75014062.lua
View file @
0524209b
...
...
@@ -22,7 +22,7 @@ function c75014062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x3001
)
end
function
c75014062
.
tfilter
(
c
)
return
c
:
GetCode
()
==
75014062
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
75014062
)
and
c
:
IsAbleToHand
()
end
function
c75014062
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c75064463.lua
View file @
0524209b
...
...
@@ -25,7 +25,7 @@ function c75064463.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c75064463
.
filter
(
c
)
return
c
:
GetCode
()
==
75782277
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
75782277
)
and
c
:
IsAbleToHand
()
end
function
c75064463
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75064463
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c78512663.lua
View file @
0524209b
...
...
@@ -58,7 +58,7 @@ function c78512663.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c78512663
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c78512663
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c79109599.lua
View file @
0524209b
...
...
@@ -26,7 +26,7 @@ function c79109599.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c79109599
.
filter
(
c
)
return
c
:
GetCode
()
==
24094653
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
24094653
)
and
c
:
IsAbleToHand
()
end
function
c79109599
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79109599
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c79814787.lua
View file @
0524209b
...
...
@@ -11,7 +11,7 @@ function c79814787.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c79814787
.
filter
(
c
)
return
c
:
GetCode
()
==
89631139
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
89631139
)
and
c
:
IsAbleToHand
()
end
function
c79814787
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c80186010.lua
View file @
0524209b
...
...
@@ -17,7 +17,7 @@ function c80186010.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c80186010
.
filter
(
c
)
return
c
:
GetCode
()
==
10080320
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
10080320
)
and
c
:
IsAbleToHand
()
end
function
c80186010
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80186010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c80908502.lua
View file @
0524209b
...
...
@@ -25,7 +25,7 @@ function c80908502.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
c80908502
.
filter
(
c
)
return
c
:
GetCode
()
==
63035430
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
63035430
)
and
c
:
IsAbleToHand
()
end
function
c80908502
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80908502
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c81566151.lua
View file @
0524209b
...
...
@@ -49,7 +49,7 @@ function c81566151.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c81566151
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c81566151
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c85507811.lua
View file @
0524209b
...
...
@@ -53,7 +53,7 @@ function c85507811.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
function
c85507811
.
spfilter
(
c
,
code
)
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
GetCode
()
==
code
return
c
:
IsAbleToDeckOrExtraAsCost
()
and
c
:
IsCode
(
code
)
end
function
c85507811
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c86742443.lua
View file @
0524209b
...
...
@@ -57,13 +57,13 @@ function c86742443.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
end
function
c86742443
.
damop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
GetFirst
():
GetCode
()
==
e
:
GetLabel
(
)
then
if
eg
:
GetFirst
():
IsCode
(
e
:
GetLabel
()
)
then
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
e
:
GetLabelObject
():
SetLabel
(
1
)
end
end
function
c86742443
.
damop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandler
():
GetCode
()
==
e
:
GetLabel
(
)
then
if
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
()
)
then
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
e
:
GetLabelObject
():
SetLabel
(
1
)
end
...
...
c88733579.lua
View file @
0524209b
...
...
@@ -13,7 +13,7 @@ function c88733579.condition(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
1
-
tp
end
function
c88733579
.
filter
(
c
)
return
c
:
GetCode
()
==
27911549
and
c
:
GetPosition
()
~=
POS_FACEUP_DEFENCE
return
c
:
IsCode
(
27911549
)
and
c
:
GetPosition
()
~=
POS_FACEUP_DEFENCE
end
function
c88733579
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c88733579
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
...
...
c91188343.lua
View file @
0524209b
...
...
@@ -14,7 +14,7 @@ function c91188343.filter1(c)
return
c
:
IsSetCard
(
0x44
)
and
c
:
GetCode
()
~=
91188343
and
c
:
IsAbleToHand
()
end
function
c91188343
.
filter2
(
c
)
return
((
c
:
IsSetCard
(
0x44
)
and
c
:
GetCode
()
~=
91188343
)
or
c
:
GetCode
()
==
55794644
)
and
c
:
IsAbleToHand
()
return
((
c
:
IsSetCard
(
0x44
)
and
c
:
GetCode
()
~=
91188343
)
or
c
:
IsCode
(
55794644
)
)
and
c
:
IsAbleToHand
()
end
function
c91188343
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c9411399.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c9411399.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c9411399
.
filter
(
c
,
e
,
sp
)
return
c
:
GetCode
()
==
9411399
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
return
c
:
IsCode
(
9411399
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
function
c9411399
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9411399
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
...
...
c97093037.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c97093037.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c97093037
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
61505339
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
61505339
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c97093037
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
...
...
c98446407.lua
View file @
0524209b
...
...
@@ -20,7 +20,7 @@ function c98446407.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
rg
,
REASON_COST
)
end
function
c98446407
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
61441708
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
61441708
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c98446407
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
...
...
c98884569.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c98884569.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
function
c98884569
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsRace
(
RACE_PLANT
)
or
c
:
GetCode
()
==
73580471
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsRace
(
RACE_PLANT
)
or
c
:
IsCode
(
73580471
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c98884569
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c98884569
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c99000151.lua
View file @
0524209b
...
...
@@ -16,7 +16,7 @@ function c99000151.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
0x41
)
==
0x41
end
function
c99000151
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
==
36405256
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
36405256
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c99000151
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
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