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
1496582c
Commit
1496582c
authored
Mar 05, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update vgfuncLib.lua
parent
3582507d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vgfuncLib.lua
vgfuncLib.lua
+3
-3
No files found.
vgfuncLib.lua
View file @
1496582c
...
@@ -156,7 +156,7 @@ function VgF.GetLocCondition(loc, con)
...
@@ -156,7 +156,7 @@ function VgF.GetLocCondition(loc, con)
end
end
---检查并转换typ 以及 code 用于【自】能力函数
---检查并转换typ 以及 code 用于【自】能力函数
function
VgF
.
GetTypCodeCondition
(
typ
,
code
,
con
)
function
VgF
.
GetTyp
e
CodeCondition
(
typ
,
code
,
con
)
if
bit
.
band
(
code
,
EVENT_CUSTOM
)
>
0
and
bit
.
band
(
typ
,
EFFECT_TYPE_SINGLE
)
>
0
then
if
bit
.
band
(
code
,
EVENT_CUSTOM
)
>
0
and
bit
.
band
(
typ
,
EFFECT_TYPE_SINGLE
)
>
0
then
local
condition
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
condition
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
not
con
or
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
and
(
not
eg
or
eg
:
GetFirst
()
==
e
:
GetHandler
())
return
(
not
con
or
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
and
(
not
eg
or
eg
:
GetFirst
()
==
e
:
GetHandler
())
...
@@ -1032,8 +1032,8 @@ end
...
@@ -1032,8 +1032,8 @@ end
---loc_self 代表玩家 p 来看的自己的位置,loc_oppo 代表玩家 p 来看的对方的位置
---loc_self 代表玩家 p 来看的自己的位置,loc_oppo 代表玩家 p 来看的对方的位置
---第6个参数开始为额外参数
---第6个参数开始为额外参数
function
VgF
.
GetMatchingGroup
(
f
,
p
,
loc_self
,
loc_oppo
,
ex
,
...
)
function
VgF
.
GetMatchingGroup
(
f
,
p
,
loc_self
,
loc_oppo
,
ex
,
...
)
local
loc_self
,
loc_self_con
=
VgF
.
Get
l
ocCondition
(
loc_self
)
local
loc_self
,
loc_self_con
=
VgF
.
Get
L
ocCondition
(
loc_self
)
local
loc_oppo
,
loc_oppo_con
=
VgF
.
Get
l
ocCondition
(
loc_oppo
)
local
loc_oppo
,
loc_oppo_con
=
VgF
.
Get
L
ocCondition
(
loc_oppo
)
local
g
=
Duel
.
GetMatchingGroup
(
loc_self_con
,
p
,
loc_self
,
0
,
nil
)
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
(
loc_oppo_con
,
p
,
0
,
loc_oppo
,
nil
)
g
=
g
-
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
p
,
LOCATION_CIRCLE
,
LOCATION_CIRCLE
,
nil
)
g
=
g
-
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
p
,
LOCATION_CIRCLE
,
LOCATION_CIRCLE
,
nil
)
...
...
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