Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
V
Vgdpro Scripts
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
xiaoye
Vgdpro Scripts
Commits
27198681
Commit
27198681
authored
Mar 07, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update VgF.GetMatchingGroup
parent
1dbd863e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
vgfuncLib.lua
vgfuncLib.lua
+19
-5
No files found.
vgfuncLib.lua
View file @
27198681
...
...
@@ -1032,11 +1032,25 @@ end
---loc_self 代表玩家 p 来看的自己的位置,loc_oppo 代表玩家 p 来看的对方的位置
---第6个参数开始为额外参数
function
VgF
.
GetMatchingGroup
(
f
,
p
,
loc_self
,
loc_oppo
,
ex
,
...
)
local
loc_self
,
loc_self_con
=
VgF
.
GetLocCondition
(
loc_self
)
local
loc_oppo
,
loc_oppo_con
=
VgF
.
GetLocCondition
(
loc_oppo
)
local
g
=
Duel
.
GetMatchingGroup
(
loc_self_con
,
p
,
loc_self
,
0
,
nil
)
g
=
g
+
Duel
.
GetMatchingGroup
(
loc_oppo_con
,
p
,
0
,
loc_oppo
,
nil
)
g
=
g
-
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
p
,
LOCATION_CIRCLE
,
LOCATION_CIRCLE
,
nil
)
function
GetLocFilter
()
local
loc_filter
=
{
VgF
.
True
,
VgF
.
True
}
for
i
,
loc
in
ipairs
({
loc_self
,
loc_oppo
})
do
if
loc
&
LOCATION_V_CIRCLE
>
0
and
loc
&
LOCATION_R_CIRCLE
>
0
then
loc
=
(
loc
-
LOCATION_V_CIRCLE
-
LOCATION_R_CIRCLE
)
|
LOCATION_CIRCLE
elseif
loc
&
LOCATION_V_CIRCLE
>
0
then
loc
=
(
loc
-
LOCATION_V_CIRCLE
)
|
LOCATION_CIRCLE
loc_filter
[
i
]
=
Card
.
IsVanguard
elseif
loc
&
LOCATION_R_CIRCLE
>
0
then
loc
=
(
loc
-
LOCATION_R_CIRCLE
)
|
LOCATION_CIRCLE
loc_filter
[
i
]
=
Card
.
IsRearguard
end
end
return
table.unpack
(
loc_filter
)
end
local
loc_self_filter
,
loc_oppo_filter
=
GetLocFilter
()
local
g
=
Duel
.
GetMatchingGroup
(
loc_self_filter
,
p
,
loc_self
,
0
,
nil
)
g
:
Merge
(
Duel
.
GetMatchingGroup
(
loc_oppo_filter
,
p
,
0
,
loc_oppo
,
nil
))
g
:
Sub
(
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
p
,
LOCATION_CIRCLE
,
LOCATION_CIRCLE
,
nil
))
if
loc_self
&
LOCATION_SOUL
>
0
then
g
=
g
+
VgF
.
GetSoulGroup
(
p
)
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