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
1c579788
Commit
1c579788
authored
Jul 29, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update get column zone
Fluorohydride/ygopro-core@6260033
parent
a8dd6069
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
40 additions
and
39 deletions
+40
-39
c16849715.lua
c16849715.lua
+3
-2
c19636995.lua
c19636995.lua
+1
-1
c20537097.lua
c20537097.lua
+2
-2
c27561302.lua
c27561302.lua
+3
-2
c28692962.lua
c28692962.lua
+2
-2
c29415459.lua
c29415459.lua
+2
-2
c46247282.lua
c46247282.lua
+1
-5
c52834429.lua
c52834429.lua
+3
-2
c53956001.lua
c53956001.lua
+3
-2
c56809158.lua
c56809158.lua
+2
-2
c66022706.lua
c66022706.lua
+2
-2
c80577258.lua
c80577258.lua
+3
-2
c89355716.lua
c89355716.lua
+3
-2
c92204263.lua
c92204263.lua
+2
-2
c93020401.lua
c93020401.lua
+4
-5
c97729135.lua
c97729135.lua
+4
-4
No files found.
c16849715.lua
View file @
1c579788
...
@@ -26,8 +26,9 @@ function c16849715.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c16849715.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c16849715
.
eftg
(
e
,
c
)
function
c16849715
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c16849715
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16849715
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c19636995.lua
View file @
1c579788
...
@@ -35,7 +35,7 @@ function c19636995.hspzone(tp)
...
@@ -35,7 +35,7 @@ function c19636995.hspzone(tp)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
local
lg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
bit
.
bnot
(
zone
)
return
bit
.
bnot
(
zone
)
end
end
...
...
c20537097.lua
View file @
1c579788
...
@@ -35,7 +35,7 @@ function c20537097.hspcon(e,c)
...
@@ -35,7 +35,7 @@ function c20537097.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c20537097
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c20537097
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -44,7 +44,7 @@ function c20537097.hspval(e,c)
...
@@ -44,7 +44,7 @@ function c20537097.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c20537097
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c20537097
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c27561302.lua
View file @
1c579788
...
@@ -26,8 +26,9 @@ function c27561302.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c27561302.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c27561302
.
eftg
(
e
,
c
)
function
c27561302
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c27561302
.
thfilter
(
c
)
function
c27561302
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
c28692962.lua
View file @
1c579788
...
@@ -33,7 +33,7 @@ function c28692962.hspcon(e,c)
...
@@ -33,7 +33,7 @@ function c28692962.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c28692962
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c28692962
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -42,7 +42,7 @@ function c28692962.hspval(e,c)
...
@@ -42,7 +42,7 @@ function c28692962.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c28692962
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c28692962
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c29415459.lua
View file @
1c579788
...
@@ -31,7 +31,7 @@ function c29415459.hspcon(e,c)
...
@@ -31,7 +31,7 @@ function c29415459.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c29415459
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c29415459
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -40,7 +40,7 @@ function c29415459.hspval(e,c)
...
@@ -40,7 +40,7 @@ function c29415459.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c29415459
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c29415459
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c46247282.lua
View file @
1c579788
...
@@ -75,9 +75,5 @@ function c46247282.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,9 +75,5 @@ function c46247282.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c46247282
.
disop
(
e
,
tp
)
function
c46247282
.
disop
(
e
,
tp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
flag1
=
bit
.
band
(
c
:
GetColumnZone
(
LOCATION_MZONE
),
0xffffff00
)
return
c
:
GetColumnZone
(
LOCATION_ONFIELD
)
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
end
end
c52834429.lua
View file @
1c579788
...
@@ -26,8 +26,9 @@ function c52834429.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c52834429.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c52834429
.
eftg
(
e
,
c
)
function
c52834429
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c52834429
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52834429
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetCount
()
==
1
return
eg
:
GetCount
()
==
1
...
...
c53956001.lua
View file @
1c579788
...
@@ -26,8 +26,9 @@ function c53956001.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c53956001.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c53956001
.
eftg
(
e
,
c
)
function
c53956001
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c53956001
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c53956001
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c56809158.lua
View file @
1c579788
...
@@ -31,7 +31,7 @@ function c56809158.hspcon(e,c)
...
@@ -31,7 +31,7 @@ function c56809158.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c56809158
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c56809158
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -40,7 +40,7 @@ function c56809158.hspval(e,c)
...
@@ -40,7 +40,7 @@ function c56809158.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c56809158
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c56809158
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c66022706.lua
View file @
1c579788
...
@@ -32,7 +32,7 @@ function c66022706.hspcon(e,c)
...
@@ -32,7 +32,7 @@ function c66022706.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c66022706
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c66022706
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -41,7 +41,7 @@ function c66022706.hspval(e,c)
...
@@ -41,7 +41,7 @@ function c66022706.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c66022706
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c66022706
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c80577258.lua
View file @
1c579788
...
@@ -25,8 +25,9 @@ function c80577258.initial_effect(c)
...
@@ -25,8 +25,9 @@ function c80577258.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c80577258
.
eftg
(
e
,
c
)
function
c80577258
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c80577258
.
thfilter
(
c
)
function
c80577258
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x109
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x109
)
and
c
:
IsAbleToHand
()
...
...
c89355716.lua
View file @
1c579788
...
@@ -26,8 +26,9 @@ function c89355716.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c89355716.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c89355716
.
eftg
(
e
,
c
)
function
c89355716
.
eftg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
(
1
,
1
)
local
seq
=
c
:
GetSequence
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
c
:
GetSequence
()
<
5
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsSetCard
(
0x109
)
and
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
end
end
function
c89355716
.
spcfilter
(
c
,
e
,
tp
,
ft
)
function
c89355716
.
spcfilter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsReleasableByEffect
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
return
c
:
IsReleasableByEffect
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
...
...
c92204263.lua
View file @
1c579788
...
@@ -31,7 +31,7 @@ function c92204263.hspcon(e,c)
...
@@ -31,7 +31,7 @@ function c92204263.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c92204263
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c92204263
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -40,7 +40,7 @@ function c92204263.hspval(e,c)
...
@@ -40,7 +40,7 @@ function c92204263.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c92204263
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c92204263
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
...
...
c93020401.lua
View file @
1c579788
...
@@ -32,7 +32,7 @@ function c93020401.hspcon(e,c)
...
@@ -32,7 +32,7 @@ function c93020401.hspcon(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c93020401
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c93020401
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
>
0
end
end
...
@@ -41,16 +41,15 @@ function c93020401.hspval(e,c)
...
@@ -41,16 +41,15 @@ function c93020401.hspval(e,c)
local
zone
=
0
local
zone
=
0
local
lg
=
Duel
.
GetMatchingGroup
(
c93020401
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Duel
.
GetMatchingGroup
(
c93020401
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
return
0
,
zone
return
0
,
zone
end
end
function
c93020401
.
spcfilter
(
c
,
tp
,
mc
)
function
c93020401
.
spcfilter
(
c
,
tp
,
mc
)
if
c
:
GetPreviousControler
()
==
tp
then
return
false
end
if
c
:
GetPreviousControler
()
==
tp
then
return
false
end
local
loc
=
LOCATION_MZONE
local
zone
=
mc
:
GetColumnZone
(
LOCATION_ONFIELD
)
if
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
then
loc
=
LOCATION_SZONE
end
local
zone
=
mc
:
GetColumnZone
(
loc
)
local
seq
=
c
:
GetPreviousSequence
()
+
16
local
seq
=
c
:
GetPreviousSequence
()
+
16
if
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
then
seq
=
seq
+
8
end
return
zone
and
bit
.
extract
(
zone
,
seq
)
~=
0
return
zone
and
bit
.
extract
(
zone
,
seq
)
~=
0
end
end
function
c93020401
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93020401
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c97729135.lua
View file @
1c579788
...
@@ -43,7 +43,7 @@ function c97729135.mvtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,7 +43,7 @@ function c97729135.mvtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
zone
=
0
local
zone
=
0
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
tp
)
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
tp
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
1
-
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
1
-
tp
))
end
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c97729135
.
mvfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c97729135
.
mvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c97729135
.
mvfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c97729135
.
mvfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
...
@@ -55,7 +55,7 @@ function c97729135.mvop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c97729135.mvop1(e,tp,eg,ep,ev,re,r,rp)
local
zone
=
0
local
zone
=
0
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
tp
)
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
tp
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
1
-
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
1
-
tp
))
end
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
tp
)
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
tp
)
...
@@ -73,7 +73,7 @@ function c97729135.mvtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -73,7 +73,7 @@ function c97729135.mvtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
zone
=
0
local
zone
=
0
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
1
-
tp
)
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
1
-
tp
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c97729135
.
mvfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c97729135
.
mvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c97729135
.
mvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c97729135
.
mvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -85,7 +85,7 @@ function c97729135.mvop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,7 +85,7 @@ function c97729135.mvop2(e,tp,eg,ep,ev,re,r,rp)
local
zone
=
0
local
zone
=
0
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
1
-
tp
)
local
lg
=
eg
:
Filter
(
c97729135
.
cfilter
,
nil
,
1
-
tp
)
for
tc
in
aux
.
Next
(
lg
)
do
for
tc
in
aux
.
Next
(
lg
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
0
,
0
,
tp
))
zone
=
bit
.
bor
(
zone
,
tc
:
GetColumnZone
(
LOCATION_MZONE
,
tp
))
end
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
...
...
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