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
b8aec001
Commit
b8aec001
authored
Feb 22, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eratta
parent
86f4af59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
expansions/7cgl.cdb
expansions/7cgl.cdb
+0
-0
expansions/script/c37564538.lua
expansions/script/c37564538.lua
+3
-3
expansions/script/c37564566.lua
expansions/script/c37564566.lua
+20
-3
No files found.
expansions/7cgl.cdb
View file @
b8aec001
No preview for this file type
expansions/script/c37564538.lua
View file @
b8aec001
...
...
@@ -61,7 +61,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spfilter
(
c
)
return
c
.
Senya_desc_with_nanahira
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
Is
AbleToGraveAsCost
()
return
c
.
Senya_desc_with_nanahira
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
Is
Relesable
()
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -71,9 +71,9 @@ function cm.spcon(e,c)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
local
g
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_
TOGRAV
E
,
g
,
Senya
.
CheckFieldFilter
,
nil
,
3
,
3
,
tp
,
c
)
local
g
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_
RELEAS
E
,
g
,
Senya
.
CheckFieldFilter
,
nil
,
3
,
3
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
SendtoGrav
e
(
g
,
REASON_COST
)
Duel
.
Releas
e
(
g
,
REASON_COST
)
end
function
cm
.
desccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
expansions/script/c37564566.lua
View file @
b8aec001
...
...
@@ -52,7 +52,19 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
cm
[
tc
]
=
e1
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e3
)
cm
[
tc
]
=
{
e1
,
e2
,
e3
}
if
e
:
GetHandler
():
IsFaceup
()
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
SetCardTarget
(
tc
)
end
...
...
@@ -73,8 +85,13 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
te
=
cm
[
tc
]
if
te
then
te
:
Reset
()
end
local
eset
=
cm
[
tc
]
if
eset
then
for
_
,
te
in
ipairs
(
tc
)
do
te
:
Reset
()
end
cm
[
tc
]
=
nil
end
if
c
:
IsHasCardTarget
(
tc
)
then
c
:
CancelCardTarget
(
tc
)
end
end
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