Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
cd1bd1f0
Commit
cd1bd1f0
authored
Mar 08, 2018
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
15d5fe38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
c19636995.lua
c19636995.lua
+14
-13
utility.lua
utility.lua
+9
-0
No files found.
c19636995.lua
View file @
cd1bd1f0
...
...
@@ -31,30 +31,31 @@ function c19636995.initial_effect(c)
e3
:
SetOperation
(
c19636995
.
datop
)
c
:
RegisterEffect
(
e3
)
end
function
c19636995
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
zone
=
0x1f
function
c19636995
.
hspzone
(
tp
)
local
zone
=
0
local
lg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
b
and
(
zone
,
bit
.
bnot
(
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
)
))
zone
=
bit
.
b
or
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
end
return
bit
.
bnot
(
zone
)
end
function
c19636995
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
zone
=
c19636995
.
hspzone
(
tp
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
function
c19636995
.
hspval
(
e
,
c
)
local
tp
=
c
:
GetControler
()
local
zone
=
0x1f
local
lg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
band
(
zone
,
bit
.
bnot
(
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
)))
end
local
zone
=
c19636995
.
hspzone
(
tp
)
return
0
,
zone
end
function
c19636995
.
desfilter
(
c
,
g
)
return
not
c
:
IsStatus
(
STATUS_SUMMONING
+
STATUS_SUMMON_DISABLED
)
and
g
:
IsContains
(
c
)
function
c19636995
.
desfilter
(
c
,
col
)
return
col
==
aux
.
GetColumn
(
c
)
end
function
c19636995
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetColumnGroup
():
IsExists
(
c19636995
.
desfilter
,
1
,
nil
,
eg
)
local
col
=
aux
.
GetColumn
(
e
:
GetHandler
())
return
col
and
eg
:
IsExists
(
c19636995
.
desfilter
,
1
,
nil
,
col
)
end
function
c19636995
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
utility.lua
View file @
cd1bd1f0
...
...
@@ -1819,6 +1819,15 @@ function Auxiliary.IsCodeListed(c,code)
end
return
false
end
function
Auxiliary
.
GetColumn
(
c
,
p
)
local
seq
=
c
:
GetSequence
()
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
if
seq
==
5
then
seq
=
1
elseif
seq
==
6
then
seq
=
3
end
elseif
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
seq
>
4
then
return
nil
end
else
return
nil
end
if
c
:
IsControler
(
p
or
0
)
then
return
seq
else
return
4
-
seq
end
end
--card effect disable filter(target)
function
Auxiliary
.
disfilter1
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
(
not
c
:
IsType
(
TYPE_NORMAL
)
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_EFFECT
)
~=
0
)
...
...
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