Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
1fc2cc11
Commit
1fc2cc11
authored
Oct 30, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e8649efc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
script/c34187685.lua
script/c34187685.lua
+2
-2
script/c98777036.lua
script/c98777036.lua
+2
-2
No files found.
script/c34187685.lua
View file @
1fc2cc11
...
...
@@ -17,11 +17,11 @@ function c34187685.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c34187685
.
filter1
(
c
,
tp
)
local
lv
=
c
:
GetOriginalLevel
()
return
lv
>
0
and
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
return
lv
>
1
and
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingTarget
(
c34187685
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
lv
)
end
function
c34187685
.
filter2
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
lv
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
lv
-
1
)
end
function
c34187685
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
script/c98777036.lua
View file @
1fc2cc11
...
...
@@ -71,7 +71,7 @@ function c98777036.ctffilter(c,lv)
end
function
c98777036
.
ctfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExisting
MatchingCard
(
c98777036
.
ctffilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetLevel
())
and
Duel
.
IsExisting
Target
(
c98777036
.
ctffilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetLevel
())
end
function
c98777036
.
ctcos
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c98777036
.
ctfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
...
...
@@ -99,7 +99,7 @@ function c98777036.lvfilter(c)
return
c
:
GetLevel
()
>
0
end
function
c98777036
.
lvtar
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
chkc
:
IsType
(
TYPE_MONSTER
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsType
(
TYPE_MONSTER
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c98777036
.
lvfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c98777036
.
lvfilter
,
tp
,
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