Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Amiya
pre-release-database-cdb
Commits
b7f77fbe
Commit
b7f77fbe
authored
Jan 11, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update LEDE-JP057 script
parent
3947c8a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
script/c101204057.lua
script/c101204057.lua
+36
-5
No files found.
script/c101204057.lua
View file @
b7f77fbe
...
...
@@ -29,15 +29,46 @@ end
function
s
.
desfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x19e
)
end
function
s
.
des
check
(
g
,
tp
)
return
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
<=
Duel
.
GetMatchingGroupCount
(
s
.
desfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
and
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
<=
Duel
.
GetMatchingGroupCount
(
s
.
desfilter
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
)
function
s
.
des
filter2
(
c
,
e
,
tp
,
gc1
,
gc2
)
return
c
:
IsCanBeEffectTarget
(
e
)
and
((
c
:
IsControler
(
tp
)
and
gc1
>
0
)
or
(
c
:
IsControler
(
1
-
tp
)
and
gc2
>
0
)
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeEffectTarget
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
e
)
local
gc1
=
Duel
.
GetMatchingGroupCount
(
s
.
desfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
gc2
=
Duel
.
GetMatchingGroupCount
(
s
.
desfilter
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsCanBeEffectTarget
(
e
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
g
:
CheckSubGroup
(
s
.
descheck
,
1
,
99
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
(),
e
,
tp
,
gc1
,
gc2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
descheck
,
false
,
1
,
99
,
tp
)
local
sg
=
Group
.
CreateGroup
()
while
true
do
g
=
Duel
.
GetMatchingGroup
(
s
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
sg
,
e
,
tp
,
gc1
,
gc2
)
if
g
:
IsContains
(
e
:
GetHandler
())
then
g
:
RemoveCard
(
e
:
GetHandler
())
end
if
#
g
==
0
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sc
=
g
:
SelectUnselect
(
sg
,
tp
,
#
sg
>
0
,
#
sg
>
0
,
1
,
99
)
if
not
sc
then
break
elseif
g
:
IsContains
(
sc
)
then
g
:
RemoveCard
(
sc
)
sg
:
AddCard
(
sc
)
if
sc
:
IsControler
(
tp
)
then
gc1
=
gc1
-
1
else
gc2
=
gc2
-
1
end
else
sg
:
RemoveCard
(
sc
)
g
:
AddCard
(
sc
)
if
sc
:
IsControler
(
tp
)
then
gc1
=
gc1
+
1
else
gc2
=
gc2
+
1
end
end
end
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
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