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
bd836156
Commit
bd836156
authored
Mar 06, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #175 from nekrozar/patch-4
fix Level Down!?
parents
233b9e24
eacc15c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
c90500169.lua
c90500169.lua
+18
-15
No files found.
c90500169.lua
View file @
bd836156
...
@@ -12,22 +12,27 @@ function c90500169.initial_effect(c)
...
@@ -12,22 +12,27 @@ function c90500169.initial_effect(c)
end
end
function
c90500169
.
filter
(
c
,
e
,
tp
)
function
c90500169
.
filter
(
c
,
e
,
tp
)
if
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x41
)
or
not
c
:
IsAbleToDeck
()
then
return
false
end
if
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x41
)
or
not
c
:
IsAbleToDeck
()
then
return
false
end
local
op
=
c
:
GetOwner
()
local
locct
=
Duel
.
GetLocationCount
(
op
,
LOCATION_MZONE
)
local
cp
=
c
:
GetControler
()
if
op
==
cp
and
locct
<=-
1
then
return
false
end
if
op
~=
cp
and
locct
<=
0
then
return
false
end
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
local
class
=
_G
[
"c"
..
code
]
local
class
=
_G
[
"c"
..
code
]
return
class
and
class
.
lvdncount
~=
nil
and
Duel
.
IsExistingMatchingCard
(
c90500169
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
class
,
e
,
t
p
)
return
class
and
class
.
lvdncount
~=
nil
and
Duel
.
IsExistingMatchingCard
(
c90500169
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
class
,
e
,
tp
,
o
p
)
end
end
function
c90500169
.
spfilter
(
c
,
class
,
e
,
tp
)
function
c90500169
.
spfilter
(
c
,
class
,
e
,
tp
,
op
)
if
not
c
:
IsControler
(
op
)
then
return
false
end
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
for
i
=
1
,
class
.
lvdncount
do
for
i
=
1
,
class
.
lvdncount
do
if
code
==
class
.
lvdn
[
i
]
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
end
if
code
==
class
.
lvdn
[
i
]
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEUP
,
op
)
end
end
end
return
false
return
false
end
end
function
c90500169
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c90500169
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c90500169
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c90500169
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c90500169
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c90500169
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c90500169
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c90500169
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
...
@@ -35,17 +40,15 @@ end
...
@@ -35,17 +40,15 @@ end
function
c90500169
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90500169
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
code
=
tc
:
GetCode
()
local
code
=
tc
:
GetCode
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
op
=
tc
:
GetOwner
()
local
rc
=
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsFaceup
()
then
return
end
if
tc
:
GetLocation
()
==
LOCATION_DECK
then
Duel
.
ShuffleDeck
(
tc
:
GetControler
())
end
if
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
==
0
then
return
end
if
rc
==
0
then
return
end
if
Duel
.
GetLocationCount
(
op
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
class
=
_G
[
"c"
..
code
]
local
class
=
_G
[
"c"
..
code
]
if
class
==
nil
or
class
.
lvdncount
==
nil
then
return
end
if
class
==
nil
or
class
.
lvdncount
==
nil
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90500169
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
class
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90500169
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
class
,
e
,
tp
,
op
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
then
if
tc
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
op
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
end
end
end
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