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
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
Vee4
ygopro-scripts-888
Commits
38a9145a
Commit
38a9145a
authored
Jun 14, 2024
by
八宫一月
Committed by
GitHub
Jun 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Auxiliary.SelectCardFromFieldFirst (#2572)
parent
dbbc2692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utility.lua
utility.lua
+4
-4
No files found.
utility.lua
View file @
38a9145a
...
@@ -1237,7 +1237,7 @@ end
...
@@ -1237,7 +1237,7 @@ end
--for effects that player usually select card from field, avoid showing panel
--for effects that player usually select card from field, avoid showing panel
function
Auxiliary
.
SelectCardFromFieldFirst
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
...
)
function
Auxiliary
.
SelectCardFromFieldFirst
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
...
)
local
ext_params
=
{
...
}
local
ext_params
=
{
...
}
local
g
=
Duel
.
GetMatchingGroup
(
f
,
player
,
s
,
o
,
ex
,
ext_params
)
local
g
=
Duel
.
GetMatchingGroup
(
f
,
player
,
s
,
o
,
ex
,
table.unpack
(
ext_params
)
)
local
fg
=
g
:
Filter
(
Card
.
IsOnField
,
nil
)
local
fg
=
g
:
Filter
(
Card
.
IsOnField
,
nil
)
g
:
Sub
(
fg
)
g
:
Sub
(
fg
)
if
#
fg
>=
min
and
#
g
>
0
then
if
#
fg
>=
min
and
#
g
>
0
then
...
@@ -1250,11 +1250,11 @@ function Auxiliary.SelectCardFromFieldFirst(tp,f,player,s,o,min,max,ex,...)
...
@@ -1250,11 +1250,11 @@ function Auxiliary.SelectCardFromFieldFirst(tp,f,player,s,o,min,max,ex,...)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
last_hint
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
last_hint
)
end
end
end
end
return
Duel
.
SelectMatchingCard
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
ext_params
)
return
Duel
.
SelectMatchingCard
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
table.unpack
(
ext_params
)
)
end
end
function
Auxiliary
.
SelectTargetFromFieldFirst
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
...
)
function
Auxiliary
.
SelectTargetFromFieldFirst
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
...
)
local
ext_params
=
{
...
}
local
ext_params
=
{
...
}
local
g
=
Duel
.
GetMatchingGroup
(
f
,
player
,
s
,
o
,
ex
,
ext_params
):
Filter
(
Card
.
IsCanBeEffectTarget
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
f
,
player
,
s
,
o
,
ex
,
table.unpack
(
ext_params
)
):
Filter
(
Card
.
IsCanBeEffectTarget
,
nil
)
local
fg
=
g
:
Filter
(
Card
.
IsOnField
,
nil
)
local
fg
=
g
:
Filter
(
Card
.
IsOnField
,
nil
)
g
:
Sub
(
fg
)
g
:
Sub
(
fg
)
if
#
fg
>=
min
and
#
g
>
0
then
if
#
fg
>=
min
and
#
g
>
0
then
...
@@ -1268,7 +1268,7 @@ function Auxiliary.SelectTargetFromFieldFirst(tp,f,player,s,o,min,max,ex,...)
...
@@ -1268,7 +1268,7 @@ function Auxiliary.SelectTargetFromFieldFirst(tp,f,player,s,o,min,max,ex,...)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
last_hint
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
last_hint
)
end
end
end
end
return
Duel
.
SelectTarget
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
ext_params
)
return
Duel
.
SelectTarget
(
tp
,
f
,
player
,
s
,
o
,
min
,
max
,
ex
,
table.unpack
(
ext_params
)
)
end
end
--condition of "negate activation and banish"
--condition of "negate activation and banish"
function
Auxiliary
.
nbcon
(
tp
,
re
)
function
Auxiliary
.
nbcon
(
tp
,
re
)
...
...
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