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
4
Merge Requests
4
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
286b34be
Commit
286b34be
authored
Jan 15, 2024
by
mercury233
Committed by
GitHub
Jan 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update S:Pリトルナイト (#2351)
parent
8565f4bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
25 deletions
+13
-25
c29301450.lua
c29301450.lua
+13
-25
No files found.
c29301450.lua
View file @
286b34be
...
...
@@ -108,9 +108,6 @@ end
function
s
.
retfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
end
function
s
.
retfilter1
(
c
,
tp
,
fid
)
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
and
c
:
IsPreviousControler
(
tp
)
end
function
s
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetLabelObject
():
IsExists
(
s
.
retfilter
,
1
,
nil
,
e
:
GetLabel
())
then
e
:
GetLabelObject
():
DeleteGroup
()
...
...
@@ -121,29 +118,20 @@ function s.retcon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
fid
=
e
:
GetLabel
()
local
g
1
=
e
:
GetLabelObject
():
Filter
(
s
.
retfilter1
,
nil
,
tp
,
fid
)
local
g2
=
e
:
GetLabelObject
():
Filter
(
s
.
retfilter1
,
nil
,
1
-
tp
,
fid
)
local
turnp
=
Duel
.
GetTurnPlayer
(
)
if
#
g2
==
0
then
if
#
g1
==
1
then
Duel
.
ReturnToField
(
g1
:
GetFirst
()
)
else
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
(
)
Duel
.
ReturnToField
(
tc
)
g1
:
RemoveCard
(
tc
)
Duel
.
ReturnToField
(
g1
:
GetFirst
()
)
local
g
=
e
:
GetLabelObject
():
Filter
(
s
.
retfilter
,
nil
,
fid
)
if
#
g
<=
0
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
for
p
in
aux
.
TurnPlayers
()
do
local
tg
=
g
:
Filter
(
Card
.
IsPreviousControler
,
nil
,
p
)
local
ft
=
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
if
#
tg
>
1
and
ft
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TOFIELD
)
local
sg
=
tg
:
Select
(
p
,
1
,
1
,
nil
)
Duel
.
ReturnToField
(
sg
:
GetFirst
()
)
tg
:
Sub
(
sg
)
end
else
if
turnp
==
tp
then
if
#
g1
>
0
then
Duel
.
ReturnToField
(
g1
:
GetFirst
())
end
Duel
.
ReturnToField
(
g2
:
GetFirst
())
else
Duel
.
ReturnToField
(
g2
:
GetFirst
())
if
#
g1
>
0
then
Duel
.
ReturnToField
(
g1
:
GetFirst
())
end
for
tc
in
aux
.
Next
(
tg
)
do
Duel
.
ReturnToField
(
tc
)
end
end
e
:
GetLabelObject
():
DeleteGroup
()
...
...
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