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
zengshangxing
pre-release-database-cdb
Commits
367995ad
Commit
367995ad
authored
Jan 23, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Duel.ConfirmCards
parent
d493e8d1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
LEDE.cdb
LEDE.cdb
+0
-0
script/c101204038.lua
script/c101204038.lua
+1
-0
script/c101204061.lua
script/c101204061.lua
+6
-5
script/c101204080.lua
script/c101204080.lua
+7
-4
No files found.
LEDE.cdb
View file @
367995ad
No preview for this file type
script/c101204038.lua
View file @
367995ad
...
...
@@ -125,6 +125,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if
#
g1
>
0
and
#
g2
>
0
then
Duel
.
SendtoHand
(
Group
.
__add
(
g1
,
g2
):
SelectSubGroup
(
tp
,
s
.
fselect2
,
false
,
2
,
2
),
nil
,
REASON_EFFECT
)
local
tg
=
Duel
.
GetOperatedGroup
()
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
if
tg
:
FilterCount
(
s
.
spfilter
,
nil
,
e
,
tp
)
==
2
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
2
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
3
))
then
Duel
.
BreakEffect
()
for
tc
in
aux
.
Next
(
tg
)
do
...
...
script/c101204061.lua
View file @
367995ad
...
...
@@ -61,10 +61,11 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetLabelObject
())
local
tc
=
sg
:
GetFirst
()
if
tc
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
3
))
then
if
tc
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
end
\ No newline at end of file
script/c101204080.lua
View file @
367995ad
...
...
@@ -49,10 +49,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
lr
=
0
if
tc
:
IsType
(
TYPE_XYZ
)
then
lr
=
tc
:
GetRank
()
else
lr
=
tc
:
GetLevel
()
end
local
rg
=
tg
:
SelectSubGroup
(
tp
,
s
.
lrcheck
,
false
,
2
,
2
,
lr
)
if
rg
and
Duel
.
SendtoDeck
(
rg
,
nil
,
1
,
REASON_EFFECT
)
==
2
then
if
rg
then
Duel
.
ConfirmCards
(
1
-
tp
,
rg
)
if
Duel
.
SendtoDeck
(
rg
,
nil
,
1
,
REASON_EFFECT
)
==
2
then
Duel
.
BreakEffect
()
local
qg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
,
POS_FACEUP
)
Duel
.
Remove
(
qg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
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