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
6
Merge Requests
6
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
3033fd41
Commit
3033fd41
authored
Mar 03, 2023
by
mallu11
Committed by
GitHub
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update PlaceCardsOnDeckTop/Bottom (#2030)
parent
4b2b5a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
utility.lua
utility.lua
+8
-4
No files found.
utility.lua
View file @
3033fd41
...
@@ -2977,10 +2977,10 @@ function Auxiliary.PlaceCardsOnDeckTop(p,g,reason)
...
@@ -2977,10 +2977,10 @@ function Auxiliary.PlaceCardsOnDeckTop(p,g,reason)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
if
ct1
>
0
then
if
ct1
>
1
then
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
end
end
if
ct2
>
0
then
if
ct2
>
1
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
end
end
return
#
og
return
#
og
...
@@ -2993,14 +2993,18 @@ function Auxiliary.PlaceCardsOnDeckBottom(p,g,reason)
...
@@ -2993,14 +2993,18 @@ function Auxiliary.PlaceCardsOnDeckBottom(p,g,reason)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
local
ct2
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
p
)
if
ct1
>
0
then
if
ct1
>
0
then
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
if
ct1
>
1
then
Duel
.
SortDecktop
(
p
,
p
,
ct1
)
end
for
i
=
1
,
ct1
do
for
i
=
1
,
ct1
do
local
tc
=
Duel
.
GetDecktopGroup
(
p
,
1
):
GetFirst
()
local
tc
=
Duel
.
GetDecktopGroup
(
p
,
1
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
end
end
if
ct2
>
0
then
if
ct2
>
0
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
if
ct2
>
1
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
end
for
i
=
1
,
ct2
do
for
i
=
1
,
ct2
do
local
tc
=
Duel
.
GetDecktopGroup
(
1
-
p
,
1
):
GetFirst
()
local
tc
=
Duel
.
GetDecktopGroup
(
1
-
p
,
1
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
...
...
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