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
999fe671
Commit
999fe671
authored
Feb 12, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ce35e9b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
expansions/script/c37564318.lua
expansions/script/c37564318.lua
+31
-4
No files found.
expansions/script/c37564318.lua
View file @
999fe671
...
@@ -57,26 +57,44 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,26 +57,44 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetOperation
(
cm
.
drop2
)
e3
:
SetOperation
(
cm
.
drop2
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetOperation
(
cm
.
drop3
)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e5
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetCode
()
==
EVENT_SPSUMMON
end
)
e5
:
SetOperation
(
cm
.
drop3
)
Duel
.
RegisterEffect
(
e5
,
tp
)
end
end
function
cm
.
filter
(
c
,
tp
,
l
)
function
cm
.
filter
(
c
,
tp
,
l
)
return
c
:
IsPreviousLocation
(
l
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsPreviousLocation
(
l
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
cm
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetCode
()
==
EFFECT_SPSUMMON_PROC
then
return
false
end
return
not
re
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
return
not
re
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
end
function
cm
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
=
Senya
.
order_table
[
e
:
GetLabel
()]
local
t
=
Senya
.
order_table
[
e
:
GetLabel
()]
for
loc
,
sct
in
pairs
(
t
)
do
for
loc
,
sct
in
pairs
(
t
)
do
if
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tp
,
loc
)
and
sct
<
2
then
cm
.
op
[
loc
](
e
,
tp
)
end
if
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tp
,
loc
)
and
sct
~=
2
then
cm
.
op
[
loc
](
e
,
tp
)
end
end
end
end
end
function
cm
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
return
re
and
((
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
or
re
:
GetCode
()
==
EFFECT_SPSUMMON_PROC
)
end
end
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
=
Senya
.
order_table
[
e
:
GetLabel
()]
local
t
=
Senya
.
order_table
[
e
:
GetLabel
()]
for
loc
,
sct
in
pairs
(
t
)
do
for
loc
,
sct
in
pairs
(
t
)
do
if
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tp
,
loc
)
and
sct
<
2
then
t
[
loc
]
=
1
end
if
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tp
,
loc
)
and
sct
~=
2
then
if
re
:
GetCode
()
==
EFFECT_SPSUMMON_PROC
then
t
[
loc
]
=
3
else
t
[
loc
]
=
1
end
end
end
end
end
end
function
cm
.
drop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
drop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -84,7 +102,16 @@ function cm.drop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,7 +102,16 @@ function cm.drop2(e,tp,eg,ep,ev,re,r,rp)
for
loc
,
sct
in
pairs
(
t
)
do
for
loc
,
sct
in
pairs
(
t
)
do
if
sct
==
1
then
if
sct
==
1
then
cm
.
op
[
loc
](
e
,
tp
)
cm
.
op
[
loc
](
e
,
tp
)
if
t
[
loc
]
<
2
then
t
[
loc
]
=
0
end
if
t
[
loc
]
~=
2
then
t
[
loc
]
=
0
end
end
end
end
function
cm
.
drop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
=
Senya
.
order_table
[
e
:
GetLabel
()]
for
loc
,
sct
in
pairs
(
t
)
do
if
sct
==
3
then
cm
.
op
[
loc
](
e
,
tp
)
if
t
[
loc
]
~=
2
then
t
[
loc
]
=
0
end
end
end
end
end
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