Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-Cards
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
nanahira
Nanahira-Cards
Commits
33bb722a
Commit
33bb722a
authored
Jan 25, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6eab7433
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
33 deletions
+4
-33
expansions/script/c37564214.lua
expansions/script/c37564214.lua
+4
-33
No files found.
expansions/script/c37564214.lua
View file @
33bb722a
...
...
@@ -67,42 +67,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
==
0
end
function
cm
.
filter
(
c
,
e
)
if
not
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
return
false
end
if
not
c
:
IsAbleToDeck
()
then
return
false
end
local
s1
=
e
:
GetHandler
():
GetSequence
()
local
s2
=
c
:
GetSequence
()
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
s2
>=
5
then
return
false
end
if
s1
<
5
then
return
s1
+
s2
==
4
else
return
(
s1
==
5
and
s2
==
3
)
or
(
s1
==
6
and
s2
==
1
)
end
end
if
s1
<
5
then
if
s2
<
5
then
return
s1
+
s2
==
4
else
return
(
s2
==
5
and
s1
==
3
)
or
(
s2
==
6
and
s1
==
1
)
end
else
if
s2
<
5
then
return
(
s1
==
5
and
s2
==
3
)
or
(
s1
==
6
and
s2
==
1
)
else
return
false
end
end
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
e
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
():
Filter
(
function
(
c
)
return
c
:
IsControler
(
1
-
tp
)
and
c
:
IsAbleToDeck
()
end
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
e
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
e
:
GetHandler
():
GetColumnGroup
():
Filter
(
function
(
c
)
return
c
:
IsControler
(
1
-
tp
)
and
c
:
IsAbleToDeck
()
end
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
\ No newline at end of file
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