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
6ea647e9
Commit
6ea647e9
authored
Nov 24, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yoursong
parent
6c4f378a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
expansions/script/c37564850.lua
expansions/script/c37564850.lua
+2
-28
No files found.
expansions/script/c37564850.lua
View file @
6ea647e9
...
...
@@ -5,16 +5,7 @@ xpcall(function() require("expansions/script/c37564765") end,function() require(
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
2
,
SUMMON_TYPE_LINK
)
--Senya.CommonEffect_3L(c,m)
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
,
Senya
.
check_set_3L
,
2
,
2
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -39,22 +30,7 @@ function cm.effect_operation_3L(c)
c
:
RegisterEffect
(
e1
,
true
)
return
e1
end
function
cm
.
linkfilter1
(
c
,
tp
,
ec
)
return
c
:
IsFaceup
()
and
Senya
.
check_set_3L
(
c
)
and
c
:
IsCanBeLinkMaterial
(
ec
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
linkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
tp
,
c
,
ec
)
end
function
cm
.
linkfilter2
(
c
,
tp
,
lc
,
ec
)
return
c
:
IsFaceup
()
and
Senya
.
check_set_3L
(
c
)
and
c
:
IsCanBeLinkMaterial
(
ec
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
Group
.
FromCards
(
c
,
lc
),
ec
)
>
0
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
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
linkfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
c
)
end
function
cm
.
linkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
linkfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
c
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
linkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
(),
tp
,
g1
:
GetFirst
(),
c
)
g1
:
Merge
(
g2
)
function
cm
.
SetMaterial
(
c
,
g
)
local
efg
=
g1
:
Filter
(
function
(
c
)
return
c
.
effect_operation_3L
end
,
nil
)
if
efg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
...
...
@@ -64,6 +40,4 @@ function cm.linkop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
HintSelection
(
tg
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
0xfe1000
,
0
,
1
,
tc
:
GetOriginalCode
())
end
c
:
SetMaterial
(
g1
)
Duel
.
SendtoGrave
(
g1
,
REASON_MATERIAL
+
REASON_LINK
)
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