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
68bc29f7
Commit
68bc29f7
authored
Dec 16, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
85f61366
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
45 deletions
+26
-45
c15155568.lua
c15155568.lua
+3
-3
c17194258.lua
c17194258.lua
+2
-5
c1784686.lua
c1784686.lua
+3
-3
c1801154.lua
c1801154.lua
+3
-3
c41940225.lua
c41940225.lua
+3
-3
c49469105.lua
c49469105.lua
+4
-9
c66127916.lua
c66127916.lua
+2
-5
c69270537.lua
c69270537.lua
+1
-4
c89312388.lua
c89312388.lua
+2
-7
utility.lua
utility.lua
+3
-3
No files found.
c15155568.lua
View file @
68bc29f7
...
...
@@ -22,9 +22,9 @@ function c15155568.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c15155568
.
cfilter
(
c
)
if
c
:
IsFacedown
()
or
not
c
.
material
_count
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
c
.
material
[
i
]
==
78193831
then
return
true
end
if
c
:
IsFacedown
()
or
not
c
.
material
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
if
mcode
==
78193831
then
return
true
end
end
return
false
end
...
...
c17194258.lua
View file @
68bc29f7
...
...
@@ -11,14 +11,11 @@ function c17194258.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c17194258
.
filter1
(
c
,
tp
)
return
c
.
material
_count
and
Duel
.
IsExistingMatchingCard
(
c17194258
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c17194258
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
end
function
c17194258
.
filter2
(
c
,
fc
)
if
c
:
IsForbidden
()
or
not
c
:
IsAbleToHand
()
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
for
i
=
1
,
fc
.
material_count
do
if
c
:
IsCode
(
fc
.
material
[
i
])
then
return
true
end
end
return
false
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
end
function
c17194258
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17194258
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
...
...
c1784686.lua
View file @
68bc29f7
...
...
@@ -28,9 +28,9 @@ function c1784686.tgfilter(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c1784686
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
function
c1784686
.
spfilter
(
c
,
e
,
tp
,
code
)
if
not
c
.
material
_count
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
code
==
c
.
material
[
i
]
then
return
true
end
if
not
c
.
material
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
if
code
==
mcode
then
return
true
end
end
return
false
end
...
...
c1801154.lua
View file @
68bc29f7
...
...
@@ -18,9 +18,9 @@ function c1801154.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c1801154
.
filter2
(
c
,
code
)
if
not
c
.
material
_count
or
not
c
:
IsReason
(
REASON_DESTROY
)
or
not
c
:
IsReason
(
REASON_EFFECT
)
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
code
==
c
.
material
[
i
]
then
return
true
end
if
not
c
.
material
or
not
c
:
IsReason
(
REASON_DESTROY
)
or
not
c
:
IsReason
(
REASON_EFFECT
)
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
if
code
==
mcode
then
return
true
end
end
return
false
end
...
...
c41940225.lua
View file @
68bc29f7
...
...
@@ -33,9 +33,9 @@ function c41940225.filter2(c,e,tp,m,f,chkf)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
c41940225
.
spfilter
(
c
)
if
not
c
.
material
_count
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
c
.
material
[
i
]
==
78193831
then
return
true
end
if
not
c
.
material
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
if
mcode
==
78193831
then
return
true
end
end
return
false
end
...
...
c49469105.lua
View file @
68bc29f7
...
...
@@ -17,16 +17,11 @@ function c49469105.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49469105
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c49469105
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c49469105
.
filter2
(
c
,
fc
)
local
fd
=
c
:
GetCode
()
for
i
=
1
,
fc
.
material_count
do
if
fd
==
fc
.
material
[
i
]
then
return
true
end
end
return
false
end
function
c49469105
.
filter1
(
c
,
g
)
local
ct
=
c
.
material_count
return
ct
~=
nil
and
g
:
IsExists
(
c49469105
.
filter2
,
1
,
nil
,
c
)
return
c
.
material
and
g
:
IsExists
(
c49469105
.
filter2
,
1
,
nil
,
c
)
end
function
c49469105
.
filter2
(
c
,
fc
)
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
end
function
c49469105
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c66127916.lua
View file @
68bc29f7
...
...
@@ -11,14 +11,11 @@ function c66127916.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c66127916
.
filter1
(
c
,
tp
)
return
c
.
material
_count
and
Duel
.
IsExistingMatchingCard
(
c66127916
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c66127916
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c66127916
.
filter2
(
c
,
fc
)
if
c
:
IsHasEffect
(
EFFECT_FORBIDDEN
)
or
not
c
:
IsAbleToHand
()
then
return
false
end
for
i
=
1
,
fc
.
material_count
do
if
c
:
IsCode
(
fc
.
material
[
i
])
then
return
true
end
end
return
false
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
end
function
c66127916
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66127916
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
...
...
c69270537.lua
View file @
68bc29f7
...
...
@@ -21,10 +21,7 @@ function c69270537.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
c69270537
.
spfilter
(
c
,
e
,
tp
,
fc
)
for
i
=
1
,
fc
.
material_count
do
if
c
:
GetCode
()
==
fc
.
material
[
i
]
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
return
false
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c69270537
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c89312388.lua
View file @
68bc29f7
...
...
@@ -11,16 +11,11 @@ function c89312388.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c89312388
.
filter2
(
c
,
fc
)
local
fd
=
c
:
GetCode
()
if
not
c
:
IsAbleToGraveAsCost
()
then
return
false
end
for
i
=
1
,
fc
.
material_count
do
if
fd
==
fc
.
material
[
i
]
then
return
true
end
end
return
false
return
c
:
IsCode
(
table.unpack
(
fc
.
material
))
end
function
c89312388
.
filter1
(
c
,
tp
)
local
ct
=
c
.
material_count
return
ct
~=
nil
and
Duel
.
IsExistingMatchingCard
(
c89312388
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
return
c
.
material
and
Duel
.
IsExistingMatchingCard
(
c89312388
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c89312388
.
coscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89312388
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
...
...
utility.lua
View file @
68bc29f7
...
...
@@ -1382,9 +1382,9 @@ function Auxiliary.PendOperation()
end
end
function
Auxiliary
.
IsMaterialListCode
(
c
,
code
)
if
not
c
.
material
_count
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
code
==
c
.
material
[
i
]
then
return
true
end
if
not
c
.
material
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
if
code
==
mcode
then
return
true
end
end
return
false
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment