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
5
Merge Requests
5
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
b847eb44
Commit
b847eb44
authored
Jun 03, 2024
by
八宫一月
Committed by
GitHub
Jun 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix--GP-Nブラスター (#2385)
* Update c58884063.lua * Update c58884063.lua * Update c58884063.lua
parent
607e50b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
c58884063.lua
c58884063.lua
+6
-6
No files found.
c58884063.lua
View file @
b847eb44
...
...
@@ -45,14 +45,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
desfilter
(
c
,
tp
,
seq
)
local
sseq
=
c
:
GetSequence
()
if
c
:
IsControler
(
tp
)
then
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
or
sseq
==
3
and
seq
==
5
or
sseq
==
1
and
seq
==
6
end
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
c
:
Is
Controler
(
tp
)
and
c
:
Is
Location
(
LOCATION_SZONE
)
then
return
sseq
<
5
and
sseq
==
seq
end
if
sseq
<
5
then
return
math.abs
(
sseq
-
seq
)
==
1
return
math.abs
(
sseq
-
seq
)
==
1
or
sseq
==
1
and
seq
==
5
or
sseq
==
3
and
seq
==
6
end
if
sseq
>=
5
then
return
sseq
==
5
and
seq
==
1
or
sseq
==
6
and
seq
==
3
...
...
@@ -60,8 +60,8 @@ function s.desfilter(c,tp,seq)
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
tp
,
tc
:
GetSequence
())
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
1
-
tc
:
GetControler
()
,
tc
:
GetSequence
())
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
cg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
...
...
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