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
73c8dc8f
Commit
73c8dc8f
authored
Oct 15, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
5df48c67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
script/c37564848.lua
script/c37564848.lua
+14
-14
No files found.
script/c37564848.lua
View file @
73c8dc8f
...
...
@@ -52,35 +52,35 @@ end
function
cm
.
flimit
(
tp
,
g
,
fc
)
return
not
g
:
IsExists
(
Senya
.
NOT
(
Senya
.
check_fusion_set_3L
),
1
,
nil
)
end
function
cm
.
fcheck
(
c
,
mg
,
chkf
)
function
cm
.
fcheck
(
c
,
mg
)
aux
.
FCheckAdditional
=
cm
.
flimit
local
res
=
c
:
CheckFusionMaterial
(
mg
,
nil
,
chkf
)
local
res
=
c
:
CheckFusionMaterial
(
mg
,
nil
,
PLAYER_NONE
)
aux
.
FCheckAdditional
=
nil
return
res
end
function
cm
.
fselect
(
tp
,
tc
,
mg
,
chkf
)
function
cm
.
fselect
(
tp
,
tc
,
mg
)
aux
.
FCheckAdditional
=
cm
.
flimit
local
g
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg
,
nil
,
chkf
)
local
g
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg
,
nil
,
PLAYER_NONE
)
aux
.
FCheckAdditional
=
nil
return
g
end
function
cm
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
function
cm
.
filter2
(
c
,
e
,
tp
,
m
,
f
)
return
c
:
IsType
(
TYPE_FUSION
)
and
Senya
.
check_set_3L
(
c
)
and
(
not
f
or
f
(
c
))
and
c
:
GetLevel
()
==
7
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
cm
.
fcheck
(
c
,
m
,
chkf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
cm
.
fcheck
(
c
,
m
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
chkf
=
tp
if
Duel
.
GetLocationCountFromEx
(
tp
)
<=
0
then
return
false
end
local
mg1
=
Senya
.
GetFusionMaterial
(
tp
,
LOCATION_DECK
,
nil
,
cm
.
mfilter
,
nil
)
local
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
)
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
local
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
)
end
end
return
res
...
...
@@ -88,10 +88,10 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCountFromEx
(
tp
)
<=
0
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
chkf
=
tp
local
mg1
=
Senya
.
GetFusionMaterial
(
tp
,
LOCATION_DECK
,
nil
,
cm
.
mfilter
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg1
=
Duel
.
GetMatchingGroup
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
)
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
@@ -99,7 +99,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
sg2
=
Duel
.
GetMatchingGroup
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
)
end
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
local
sg
=
sg1
:
Clone
()
...
...
@@ -109,7 +109,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
tg
:
GetFirst
()
tc
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
cm
.
fselect
(
tp
,
tc
,
mg1
,
chkf
)
local
mat1
=
cm
.
fselect
(
tp
,
tc
,
mg1
)
tc
:
SetMaterial
(
mat1
)
Duel
.
Remove
(
mat1
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
...
...
@@ -158,4 +158,4 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
Senya
.
GainEffect_3L
(
fc
,
tc
)
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tc
:
GetControler
())
end
end
\ No newline at end of file
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