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
f4f571aa
Commit
f4f571aa
authored
Nov 24, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kyoshikyoku
parent
e1edc085
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
expansions/script/c37564919.lua
expansions/script/c37564919.lua
+3
-24
No files found.
expansions/script/c37564919.lua
View file @
f4f571aa
...
@@ -6,15 +6,7 @@ cm.Senya_name_with_sayuri=true
...
@@ -6,15 +6,7 @@ cm.Senya_name_with_sayuri=true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
AddSummonMusic
(
c
,
m
*
16
,
SUMMON_TYPE_LINK
)
Senya
.
AddSummonMusic
(
c
,
m
*
16
,
SUMMON_TYPE_LINK
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e0
=
Effect
.
CreateEffect
(
c
)
aux
.
AddLinkProcedure
(
c
,
cm
.
mfilter
,
min
,
max
,
cm
.
lcheck
)
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
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
37564765
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
37564765
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
@@ -30,25 +22,12 @@ end
...
@@ -30,25 +22,12 @@ end
function
cm
.
mfilter
(
c
,
lc
)
function
cm
.
mfilter
(
c
,
lc
)
return
c
:
IsFaceup
()
and
Senya
.
check_set_sayuri
(
c
)
and
c
:
IsLinkType
(
TYPE_RITUAL
)
and
c
:
IsCanBeLinkMaterial
(
lc
)
return
c
:
IsFaceup
()
and
Senya
.
check_set_sayuri
(
c
)
and
c
:
IsLinkType
(
TYPE_RITUAL
)
and
c
:
IsCanBeLinkMaterial
(
lc
)
end
end
function
cm
.
lcheck
(
g
,
tp
,
lc
)
function
cm
.
lcheck
(
g
)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
lc
)
>
0
and
not
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
return
not
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
end
end
function
cm
.
lfilter
(
c
,
g
)
function
cm
.
lfilter
(
c
,
g
)
return
g
:
IsExists
(
Card
.
IsCode
,
1
,
c
,
c
:
GetCode
())
return
g
:
IsExists
(
Card
.
IsCode
,
1
,
c
,
c
:
GetCode
())
end
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
()
>=
3
and
Senya
.
CheckGroup
(
g
,
cm
.
lcheck
,
nil
,
3
,
3
,
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
,
3
,
3
,
tp
,
c
)
c
:
SetMaterial
(
g1
)
Duel
.
SendtoGrave
(
g1
,
REASON_MATERIAL
+
REASON_LINK
)
end
function
cm
.
cfilter
(
c
,
g
)
function
cm
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
return
g
:
IsContains
(
c
)
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