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
5
Merge Requests
5
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
dede1e32
Commit
dede1e32
authored
Mar 07, 2023
by
mallu11
Committed by
GitHub
Mar 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix PlaceCardsOnDeckTop/Bottom (#2040)
parent
d30ba3b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
utility.lua
utility.lua
+6
-4
No files found.
utility.lua
View file @
dede1e32
...
@@ -2974,7 +2974,8 @@ end
...
@@ -2974,7 +2974,8 @@ end
function
Auxiliary
.
PlaceCardsOnDeckTop
(
p
,
g
,
reason
)
function
Auxiliary
.
PlaceCardsOnDeckTop
(
p
,
g
,
reason
)
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
rg
=
Duel
.
GetOperatedGroup
()
local
og
=
rg
:
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
>
1
then
if
ct1
>
1
then
...
@@ -2983,13 +2984,14 @@ function Auxiliary.PlaceCardsOnDeckTop(p,g,reason)
...
@@ -2983,13 +2984,14 @@ function Auxiliary.PlaceCardsOnDeckTop(p,g,reason)
if
ct2
>
1
then
if
ct2
>
1
then
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
Duel
.
SortDecktop
(
p
,
1
-
p
,
ct2
)
end
end
return
#
o
g
return
#
r
g
end
end
--Player p place g on the bottom of Deck in any order
--Player p place g on the bottom of Deck in any order
function
Auxiliary
.
PlaceCardsOnDeckBottom
(
p
,
g
,
reason
)
function
Auxiliary
.
PlaceCardsOnDeckBottom
(
p
,
g
,
reason
)
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
if
reason
==
nil
then
reason
=
REASON_EFFECT
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
reason
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
rg
=
Duel
.
GetOperatedGroup
()
local
og
=
rg
:
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
>
0
then
...
@@ -3010,7 +3012,7 @@ function Auxiliary.PlaceCardsOnDeckBottom(p,g,reason)
...
@@ -3010,7 +3012,7 @@ function Auxiliary.PlaceCardsOnDeckBottom(p,g,reason)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
end
end
return
#
o
g
return
#
r
g
end
end
--The event is triggered multiple times in a chain
--The event is triggered multiple times in a chain
--but only 1 event with EVENT_CUSTOM+code will be triggered at EVENT_CHAIN_END, or immediately if not in chain
--but only 1 event with EVENT_CUSTOM+code will be triggered at EVENT_CHAIN_END, or immediately if not in chain
...
...
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