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
ea2d864c
Commit
ea2d864c
authored
Oct 21, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unfinished
parent
febeb6e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletion
+56
-1
expansions/script/c37564353.lua
expansions/script/c37564353.lua
+55
-0
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+1
-1
No files found.
expansions/script/c37564353.lua
0 → 100644
View file @
ea2d864c
local
m
=
37564351
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c37564765.lua"
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
SetSPSummonOnce
(
m
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
function
(
e
,
se
,
sp
,
st
)
return
se
and
se
:
GetHandler
()
==
e
:
GetHandler
()
end
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetProperty
(
0x14000
+
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
function
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
m
)
>
0
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
,
1
,
nil
)
end
)
e2
:
SetCost
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
Filter
(
function
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
m
)
>
0
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToRemoveAsCost
()
end
,
nil
):
GetFirst
()
if
chk
==
0
then
return
tc
end
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_COST
)
end
)
e2
:
SetTarget
(
cm
.
SelfSpsummonTarget
)
e2
:
SetOperation
(
cm
.
SelfSpsummonOperation
)
c
:
RegisterEffect
(
e2
)
if
not
cm
.
gchk
then
cm
.
gchk
=
true
local
ex
=
Effect
.
GlobalEffect
()
ex
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ex
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
ex
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
p
=
0
,
1
do
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
1
then
local
g
=
eg
:
Filter
(
function
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
end
)
for
tc
in
aux
.
Next
(
g
)
do
tc
:
RegisterFlagEffect
(
m
,
0x47e1000
,
0
,
1
)
end
end
end
end
)
Duel
.
RegisterEffect
(
ex
,
0
)
end
end
expansions/script/c37564765.lua
View file @
ea2d864c
...
@@ -621,7 +621,7 @@ function cm.SawawaSpsummonCost(ct,exf)
...
@@ -621,7 +621,7 @@ function cm.SawawaSpsummonCost(ct,exf)
end
end
end
end
function
cm
.
SelfSpsummonTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
SelfSpsummonTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
cm
.
CheckSummonLocation
(
c
,
tp
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
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