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
c3fe5ff0
Commit
c3fe5ff0
authored
Apr 30, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new effect
parent
21b8772a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
expansions/script/c37564027.lua
expansions/script/c37564027.lua
+7
-7
expansions/script/c37564058.lua
expansions/script/c37564058.lua
+7
-6
No files found.
expansions/script/c37564027.lua
View file @
c3fe5ff0
...
...
@@ -31,11 +31,12 @@ function cm.initial_effect(c)
--xm
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
FIELD
)
e2
:
SetCode
(
EFFECT_OVERLAY_REMOVE_
REPLACE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_OVERLAY_REMOVE_
COST_CHANGE_KOISHI
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
rcon
)
e2
:
SetOperation
(
aux
.
TRUE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
cm
.
rval
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
immfilter
(
e
,
te
)
...
...
@@ -77,9 +78,8 @@ end
function
cm
.
xmfilter
(
c
)
return
Senya
.
check_set_elem
(
c
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetRank
()
==
4
end
function
cm
.
rcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
r
&
REASON_COST
)
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
Senya
.
check_set_elem
(
re
:
GetHandler
())
and
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
cm
.
xmfilter
,
1
,
nil
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
function
cm
.
rval
(
e
,
re
,
tp
,
ct
,
r
,
c
)
if
r
&
REASON_COST
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
Senya
.
check_set_elem
(
re
:
GetHandler
())
and
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
cm
.
xmfilter
,
1
,
nil
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
then
return
0
else
return
ct
end
end
expansions/script/c37564058.lua
View file @
c3fe5ff0
...
...
@@ -10,11 +10,12 @@ function cm.initial_effect(c)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLevel
,
4
),
2
,
2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
FIELD
)
e2
:
SetCode
(
EFFECT_OVERLAY_REMOVE_
REPLACE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_OVERLAY_REMOVE_
COST_CHANGE_KOISHI
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
rcon
)
e2
:
SetOperation
(
aux
.
TRUE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
cm
.
rval
)
c
:
RegisterEffect
(
e2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -29,8 +30,8 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
r
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
r
&
REASON_COST
)
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
Senya
.
check_set_elem
(
re
:
GetHandler
())
and
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
re
:
GetHandler
())
function
cm
.
r
val
(
e
,
re
,
tp
,
ct
,
r
,
c
)
if
r
&
REASON_COST
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
Senya
.
check_set_elem
(
re
:
GetHandler
())
and
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
re
:
GetHandler
())
then
return
0
else
return
ct
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
...
...
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