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
feb024df
Commit
feb024df
authored
Mar 16, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6eb4d1ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
expansions/script/c37564559.lua
expansions/script/c37564559.lua
+4
-10
No files found.
expansions/script/c37564559.lua
View file @
feb024df
...
@@ -16,12 +16,8 @@ end
...
@@ -16,12 +16,8 @@ end
function
cm
.
filter
(
c
,
e
)
function
cm
.
filter
(
c
,
e
)
return
c
:
IsCode
(
37564765
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsAbleToGrave
()
return
c
:
IsCode
(
37564765
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsAbleToGrave
()
end
end
function
cm
.
gcheck
(
g
,
ft
)
function
cm
.
gcheck
(
g
,
tp
)
if
ft
<=
0
and
not
g
:
IsExists
(
cm
.
mzfilter
,
-
ft
+
1
,
nil
)
then
return
false
end
return
Duel
.
GetMZoneCount
(
tp
,
g
,
tp
)
>
0
not
g
:
IsExists
(
cm
.
filter1
,
1
,
nil
,
g
)
return
not
g
:
IsExists
(
cm
.
filter1
,
1
,
nil
,
g
)
end
function
cm
.
mzfilter
(
c
)
return
c
:
GetSequence
()
<
5
end
end
function
cm
.
filter1
(
c
,
g
)
function
cm
.
filter1
(
c
,
g
)
return
g
:
IsExists
(
cm
.
filter2
,
1
,
c
,
c
:
GetOriginalCode
())
return
g
:
IsExists
(
cm
.
filter2
,
1
,
c
,
c
:
GetOriginalCode
())
...
@@ -34,10 +30,9 @@ function cm.sfilter(c,e,tp)
...
@@ -34,10 +30,9 @@ function cm.sfilter(c,e,tp)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
ft
=
Duel
.
GetMZoneCount
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Senya
.
CheckGroup
(
g
,
cm
.
gcheck
,
nil
,
3
,
3
,
ft
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Senya
.
CheckGroup
(
g
,
cm
.
gcheck
,
nil
,
3
,
3
,
tp
)
end
local
tg
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_TOGRAVE
,
g
,
cm
.
gcheck
,
nil
,
3
,
3
,
ft
)
local
tg
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_TOGRAVE
,
g
,
cm
.
gcheck
,
nil
,
3
,
3
,
tp
)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
...
@@ -57,7 +52,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +52,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
sg
:
GetFirst
()
local
tc
=
sg
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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