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
7b68aecf
Commit
7b68aecf
authored
Apr 21, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d685eaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
expansions/script/c37564567.lua
expansions/script/c37564567.lua
+3
-5
No files found.
expansions/script/c37564567.lua
View file @
7b68aecf
...
@@ -101,18 +101,16 @@ function cm.ReplaceSetMaterial(c,...)
...
@@ -101,18 +101,16 @@ function cm.ReplaceSetMaterial(c,...)
local
ex
=
Effect
.
CreateEffect
(
c
)
local
ex
=
Effect
.
CreateEffect
(
c
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetCode
(
m
-
1000
)
ex
:
SetCode
(
m
-
1000
)
ex
:
SetRange
(
LOCATION_MZONE
)
ex
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ex
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
ex
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
c
:
RegisterEffect
(
ex
,
true
)
c
:
RegisterEffect
(
ex
,
true
)
local
ex
=
Effect
.
CreateEffect
(
c
)
local
ex
=
Effect
.
CreateEffect
(
c
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetCode
(
EFFECT_ADD_CODE
)
ex
:
SetCode
(
EFFECT_ADD_CODE
)
ex
:
SetRange
(
LOCATION_MZONE
)
ex
:
SetValue
(
37564765
)
ex
:
SetValue
(
37564765
)
ex
:
SetProperty
(
EFFECT_FLAG_
SINGLE_RANGE
+
EFFECT_FLAG_
CANNOT_DISABLE
)
ex
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
ex
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
ex
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
c
:
RegisterEffect
(
ex
,
true
)
c
:
RegisterEffect
(
ex
,
true
)
cm
.
op
(
e2
,
c
:
GetControler
())
return
table.unpack
(
res
)
return
table.unpack
(
res
)
end
end
function
cm
.
copyfilter
(
c
)
function
cm
.
copyfilter
(
c
)
...
@@ -150,7 +148,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -150,7 +148,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
f
(
tc
,
e
,
forced
)
f
(
tc
,
e
,
forced
)
end
end
for
tc
in
aux
.
Next
(
cg
)
do
for
tc
in
aux
.
Next
(
cg
)
do
copyt
[
tc
]
=
c
:
CopyEffect
(
tc
:
GetOriginalCode
(),
RESET_EVENT
+
0x
1
fe0000
,
1
)
copyt
[
tc
]
=
c
:
CopyEffect
(
tc
:
GetOriginalCode
(),
RESET_EVENT
+
0xfe0000
,
1
)
end
end
Card
.
RegisterEffect
=
f
Card
.
RegisterEffect
=
f
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