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
4fff4c4b
Commit
4fff4c4b
authored
Nov 09, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
ec058672
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
37 deletions
+4
-37
script/c37564563.lua
script/c37564563.lua
+4
-37
No files found.
script/c37564563.lua
View file @
4fff4c4b
...
...
@@ -7,13 +7,12 @@ function cm.initial_effect(c)
Senya
.
Nanahira
(
c
)
Senya
.
AddSummonMusic
(
c
,
aux
.
Stringid
(
m
,
3
),
SUMMON_TYPE_ADVANCE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
cm
.
otcon
)
e1
:
Set
Operation
(
cm
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_COUNTER
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
...
...
@@ -25,38 +24,6 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e4
)
Senya
.
NegateEffectModule
(
c
,
1
,
nil
,
nil
,
function
(
e
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
)
end
function
cm
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_COUNTER
)
and
c
:
IsReleasable
()
end
function
cm
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
return
c
:
GetLevel
()
>
6
and
minc
<=
2
and
(
Duel
.
GetMZoneCount
(
tp
)
>
0
and
mg
:
GetCount
()
>=
2
or
Duel
.
CheckTribute
(
c
,
1
)
and
mg
:
GetCount
()
>=
1
)
or
c
:
GetLevel
()
>
4
and
c
:
GetLevel
()
<=
6
and
minc
<=
1
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
mg
:
GetCount
()
>=
1
end
function
cm
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
local
b1
=
Duel
.
GetMZoneCount
(
tp
)
>
0
and
mg
:
GetCount
()
>=
2
local
b2
=
Duel
.
CheckTribute
(
c
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
if
c
:
GetLevel
()
>
6
then
local
g2
=
nil
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
g2
=
mg
:
Select
(
tp
,
1
,
1
,
g
:
GetFirst
())
else
g2
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
end
g
:
Merge
(
g2
)
end
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
cm
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsSummonable
(
true
,
nil
,
1
)
or
c
:
IsMSetable
(
true
,
nil
,
1
)
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