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
72999150
Commit
72999150
authored
Dec 23, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update S:Pリトルナイト
parent
600e4db6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
c29301450.lua
c29301450.lua
+14
-9
No files found.
c29301450.lua
View file @
72999150
...
...
@@ -88,28 +88,31 @@ function s.drmop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
~=
2
or
Duel
.
Remove
(
g
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
==
0
or
not
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_REMOVED
)
then
return
end
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
for
tc
in
aux
.
Next
(
og
)
do
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
end
og
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
og
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
s
.
retcon
)
e1
:
SetOperation
(
s
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
retfilter
(
c
)
return
c
:
GetFlagEffect
(
id
)
~=
0
function
s
.
retfilter
(
c
,
fid
)
return
c
:
GetFlagEffect
Label
(
id
)
==
fid
end
function
s
.
retfilter1
(
c
,
tp
)
return
c
:
GetFlagEffect
(
id
)
~=
0
and
c
:
IsControler
(
tp
)
function
s
.
retfilter1
(
c
,
tp
,
fid
)
return
c
:
GetFlagEffect
Label
(
id
)
==
fid
and
c
:
IsControler
(
tp
)
end
function
s
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetLabelObject
():
IsExists
(
s
.
retfilter
,
1
,
nil
)
then
if
not
e
:
GetLabelObject
():
IsExists
(
s
.
retfilter
,
1
,
nil
,
e
:
GetLabel
()
)
then
e
:
GetLabelObject
():
DeleteGroup
()
e
:
Reset
()
return
false
...
...
@@ -117,8 +120,9 @@ function s.retcon(e,tp,eg,ep,ev,re,r,rp)
return
true
end
function
s
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
e
:
GetLabelObject
():
Filter
(
s
.
retfilter1
,
nil
,
tp
)
local
g2
=
e
:
GetLabelObject
():
Filter
(
s
.
retfilter1
,
nil
,
1
-
tp
)
local
fid
=
e
:
GetLabel
()
local
g1
=
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
...
...
@@ -126,7 +130,7 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
else
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
ReturnToField
(
tc
)
g1
=
g1
-
tc
g1
:
RemoveCard
(
tc
)
Duel
.
ReturnToField
(
g1
:
GetFirst
())
end
else
...
...
@@ -142,4 +146,5 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
e
:
GetLabelObject
():
DeleteGroup
()
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