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
0494b38e
Commit
0494b38e
authored
Jul 18, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ea0ae4b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
expansions/script/c37564841.lua
expansions/script/c37564841.lua
+2
-6
No files found.
expansions/script/c37564841.lua
View file @
0494b38e
...
...
@@ -20,7 +20,7 @@ function cm.effect_operation_3L(c,ctlm)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_DISABLE_FIELD
)
e1
:
Set
Condition
(
cm
.
discon
)
e1
:
Set
Property
(
EFFECT_FLAG_REPEAT
)
e1
:
SetOperation
(
cm
.
disop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
,
true
)
...
...
@@ -45,15 +45,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
function
cm
.
discon
(
e
)
e
:
SetValue
(
0
)
return
true
end
function
cm
.
disop
(
e
,
tp
)
local
c
=
e
:
GetHandler
()
local
flag1
=
bit
.
band
(
c
:
GetColumnZone
(
LOCATION_MZONE
),
0xffffff00
)
local
flag2
=
bit
.
band
(
bit
.
lshift
(
c
:
GetColumnZone
(
LOCATION_SZONE
),
8
),
0xffff00ff
)
local
flag3
=
bit
.
band
(
c
:
GetColumnZone
(
LOCATION_MZONE
),
0xff00ffff
)
local
flag4
=
bit
.
band
(
bit
.
lshift
(
c
:
GetColumnZone
(
LOCATION_SZONE
),
8
),
0xffff
)
return
(
flag1
+
flag2
+
flag3
+
flag4
)
|
0xffff0000
return
(
flag1
+
flag2
+
flag3
+
flag4
)
&
0xffff0000
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