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
26b65062
Commit
26b65062
authored
Nov 24, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syosyo
parent
f4f571aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
36 deletions
+5
-36
expansions/script/c37564560.lua
expansions/script/c37564560.lua
+5
-36
No files found.
expansions/script/c37564560.lua
View file @
26b65062
...
...
@@ -7,21 +7,7 @@ function cm.initial_effect(c)
Senya
.
Nanahira
(
c
)
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
1
,
SUMMON_TYPE_LINK
)
c
:
EnableReviveLimit
()
--[[local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
e1:SetValue(1)
c:RegisterEffect(e1)]]
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
cm
.
linkcon
)
e0
:
SetOperation
(
cm
.
linkop
)
e0
:
SetValue
(
SUMMON_TYPE_LINK
)
c
:
RegisterEffect
(
e0
)
aux
.
AddLinkProcedure
(
c
,
cm
.
mfilter
,
min
,
max
,
cm
.
lcheck
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -51,28 +37,11 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
mfilter
(
c
,
lc
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
37564765
)
and
c
:
IsCanBeLinkMaterial
(
lc
)
function
cm
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
37564765
)
end
function
cm
.
lcheck
(
g
,
tp
,
lc
)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
lc
)
>
0
and
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
end
function
cm
.
lfilter
(
c
,
g
)
local
cg
=
c
:
GetColumnGroup
()
return
g
:
IsExists
(
function
(
tc
)
return
cg
:
IsContains
(
tc
)
end
,
1
,
c
)
end
function
cm
.
linkcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
g
:
GetCount
()
>=
2
and
Senya
.
CheckGroup
(
g
,
cm
.
lcheck
,
nil
,
2
,
2
,
tp
,
c
)
end
function
cm
.
linkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g1
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_LMATERIAL
,
g
,
cm
.
lcheck
,
nil
,
2
,
2
,
tp
,
c
)
c
:
SetMaterial
(
g1
)
Duel
.
SendtoGrave
(
g1
,
REASON_MATERIAL
+
REASON_LINK
)
function
cm
.
lcheck
(
g
)
return
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
end
function
cm
.
location_check
(
p
,
tp
,
z
)
local
tz
=
0
...
...
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