Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
328e0c90
You need to sign in or sign up before continuing.
Commit
328e0c90
authored
Sep 28, 2022
by
mallu11
Committed by
GitHub
Sep 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix スプリガンズ・シップ エクスブロウラー (#1535)
parent
ce212171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
c62941499.lua
c62941499.lua
+17
-9
No files found.
c62941499.lua
View file @
328e0c90
...
@@ -30,27 +30,35 @@ end
...
@@ -30,27 +30,35 @@ end
function
c62941499
.
desfilter
(
c
)
function
c62941499
.
desfilter
(
c
)
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
c
:
GetSequence
()
<
5
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
c
:
GetSequence
()
<
5
end
end
function
c62941499
.
seqfilter
(
c
,
seq
)
function
c62941499
.
exmzfilter
(
c
,
seq
)
return
c
:
GetSequence
()
==
seq
end
function
c62941499
.
seqfilter
(
c
,
seq
,
tp
)
local
loc
=
LOCATION_MZONE
local
loc
=
LOCATION_MZONE
if
seq
>=
8
then
if
seq
>=
8
then
loc
=
LOCATION_SZONE
loc
=
LOCATION_SZONE
seq
=
seq
-
8
seq
=
seq
-
8
end
end
if
seq
>=
5
and
seq
<=
7
then
return
false
end
if
seq
>=
5
and
loc
==
LOCATION_SZONE
then
return
false
end
if
seq
==
7
and
loc
==
LOCATION_MZONE
then
return
false
end
local
cseq
=
c
:
GetSequence
()
local
cseq
=
c
:
GetSequence
()
local
cloc
=
c
:
GetLocation
()
local
cloc
=
c
:
GetLocation
()
if
cloc
==
LOCATION_SZONE
and
cseq
>=
5
then
return
false
end
if
cloc
==
LOCATION_SZONE
and
cseq
>=
5
then
return
false
end
if
cloc
==
LOCATION_MZONE
and
cseq
>=
5
and
loc
==
LOCATION_MZONE
if
cloc
==
LOCATION_MZONE
and
cseq
>=
5
and
loc
==
LOCATION_MZONE
and
(
seq
==
1
and
cseq
==
5
or
seq
==
3
and
cseq
==
6
)
then
return
true
end
and
(
seq
==
1
and
cseq
==
5
or
seq
==
3
and
cseq
==
6
or
seq
==
cseq
)
then
return
true
end
return
cseq
==
seq
or
cloc
==
loc
and
math.abs
(
cseq
-
seq
)
==
1
if
cloc
==
LOCATION_MZONE
and
seq
>=
5
and
loc
==
LOCATION_MZONE
and
Duel
.
IsExistingMatchingCard
(
c62941499
.
exmzfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
seq
)
then
return
seq
==
5
and
cseq
==
1
or
seq
==
6
and
cseq
==
3
end
return
cseq
==
seq
or
seq
<
5
and
cseq
<
5
and
cloc
==
loc
and
math.abs
(
cseq
-
seq
)
==
1
end
end
function
c62941499
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62941499
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
IsExistingMatchingCard
(
c62941499
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c62941499
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
filter
=
0
local
filter
=
0
for
i
=
0
,
1
6
do
for
i
=
0
,
1
5
do
if
not
Duel
.
IsExistingMatchingCard
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
i
)
then
if
not
Duel
.
IsExistingMatchingCard
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
i
,
tp
)
then
filter
=
filter
|
1
<<
(
i
+
16
)
filter
=
filter
|
1
<<
(
i
+
16
)
end
end
end
end
...
@@ -58,19 +66,19 @@ function c62941499.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -58,19 +66,19 @@ function c62941499.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
flag
=
Duel
.
SelectField
(
tp
,
1
,
0
,
LOCATION_ONFIELD
,
filter
)
local
flag
=
Duel
.
SelectField
(
tp
,
1
,
0
,
LOCATION_ONFIELD
,
filter
)
local
seq
=
math.log
(
flag
>>
16
,
2
)
local
seq
=
math.log
(
flag
>>
16
,
2
)
e
:
SetLabel
(
seq
)
e
:
SetLabel
(
seq
)
local
g
=
Duel
.
GetMatchingGroup
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
seq
)
local
g
=
Duel
.
GetMatchingGroup
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
seq
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c62941499
.
seqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62941499
.
seqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetLabel
()
local
seq
=
e
:
GetLabel
()
local
ct
=
Duel
.
GetMatchingGroupCount
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
seq
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
seq
,
tp
)
if
ct
<=
0
or
not
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
then
return
end
if
ct
<=
0
or
not
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
then
return
end
local
count
=
c
:
RemoveOverlayCard
(
tp
,
1
,
ct
,
REASON_EFFECT
)
local
count
=
c
:
RemoveOverlayCard
(
tp
,
1
,
ct
,
REASON_EFFECT
)
if
count
<=
0
then
return
end
if
count
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
count
,
count
,
nil
,
seq
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62941499
.
seqfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
count
,
count
,
nil
,
seq
,
tp
)
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
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