Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
2c3f74ad
Commit
2c3f74ad
authored
May 23, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c86379374.lua 不可使用区域检测
parent
e5a506a3
Pipeline
#21790
passed with stage
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
script/c86379374.lua
script/c86379374.lua
+30
-2
No files found.
script/c86379374.lua
View file @
2c3f74ad
...
...
@@ -38,8 +38,36 @@ function c86379374.lcheck(g)
end
--
function
c86379374
.
disval
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
GetLinkedZone
(
0
)
local
zone
=
e
:
GetHandler
():
GetLinkedZone
(
0
)
local
g
=
Duel
.
GetMatchingGroup
(
tp
,
nil
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
GetGlobalLocation
=
function
(
c
)
local
p
=
c
:
GetControler
()
local
seq
=
c
:
GetSequence
()
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
seq
==
6
then
seq
=
0
end
if
seq
==
7
then
seq
=
4
end
if
seq
<=
4
then
return
0x0100
<<
(
16
*
p
+
seq
)
end
elseif
c
:
IsLocation
(
LOCATION_MZONE
)
then
if
seq
==
5
then
return
(
0x0001
<<
(
16
*
p
+
5
))
|
(
0x0001
<<
(
16
*
(
1
-
p
)
+
6
))
elseif
seq
==
6
then
return
(
0x0001
<<
(
16
*
p
+
6
))
|
(
0x0001
<<
(
16
*
(
1
-
p
)
+
5
))
else
return
0x0001
<<
(
16
*
p
+
seq
)
end
end
return
0
end
g
:
ForEach
(
function
(
c
)
local
czone
=
GetGlobalLocation
(
c
)
if
czone
&
zone
~=
0
then
zone
=
zone
&
(
~
czone
)
end
end
)
return
zone
end
--
function
c86379374
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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