Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
94462e90
Commit
94462e90
authored
Oct 11, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c13254037.lua
parent
8ce61841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
expansions/script/c13254037.lua
expansions/script/c13254037.lua
+7
-0
No files found.
expansions/script/c13254037.lua
View file @
94462e90
...
...
@@ -113,12 +113,14 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_DECK
,
nil
)
local
g3
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
sg
=
Group
.
CreateGroup
()
local
a
=
0
if
g1
:
GetCount
()
>
0
and
((
g2
:
GetCount
()
==
0
and
g3
:
GetCount
()
==
0
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
)))
then
Duel
.
ConfirmCards
(
tp
,
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg1
)
sg
:
Merge
(
sg1
)
a
=
a
+
1
end
if
g2
:
GetCount
()
>
0
and
((
sg
:
GetCount
()
==
0
and
g3
:
GetCount
()
==
0
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
)))
then
Duel
.
ConfirmCards
(
tp
,
g2
)
...
...
@@ -126,12 +128,17 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg2
)
sg
:
Merge
(
sg2
)
a
=
a
+
2
end
if
g3
:
GetCount
()
>
0
and
(
sg
:
GetCount
()
==
0
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
4
)))
then
Duel
.
ConfirmCards
(
tp
,
g3
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg3
=
g3
:
Select
(
tp
,
1
,
1
,
nil
)
sg
:
Merge
(
sg3
)
a
=
a
+
4
end
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
if
bit
.
band
(
a
,
1
)
then
Duel
.
ShuffleHand
(
1
-
tp
)
end
if
bit
.
band
(
a
,
2
)
then
Duel
.
ShuffleDeck
(
1
-
tp
)
end
if
bit
.
band
(
a
,
4
)
then
Duel
.
ShuffleExtra
(
1
-
tp
)
end
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