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
397fd75e
Commit
397fd75e
authored
Jul 05, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑翼/白翼
parent
3e418aa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
VgDefinition.Lua
VgDefinition.Lua
+1
-0
VgFuncLib.lua
VgFuncLib.lua
+22
-0
No files found.
VgDefinition.Lua
View file @
397fd75e
...
...
@@ -878,6 +878,7 @@ AFFECT_CODE_MIX_DIFFERENT_NAME =VgID+1 --魔合成(卡名不同)
AFFECT_CODE_SENDTOG
=
VgID
+
2
--需要两张卡才能防御
AFFECT_CODE_NIGHT
=
VgID
+
3
--黑夜
AFFECT_CODE_DEEP_NIGHT
=
VgID
+
4
--深渊黑夜
AFFECT_CODE_BOTH_WING
=
VgID
+
5
--你的卡片的白翼能力和黑翼能力两方均有效
AFFECT_CODE_OVERLAY_INSTEAD_WHEN_RIDE
=
10501082
--不执行『选择手牌中的1张卡,舍弃』而是执行『灵魂爆发1』来将卡RIDE
...
...
VgFuncLib.lua
View file @
397fd75e
...
...
@@ -1028,4 +1028,26 @@ function VgF.Sendto(loc,sg,...)
return
return_group
:
GetCount
()
end
return
0
end
-- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效
function
VgF
.
WhiteWing
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
a
=
vgf
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
GetLevel
()
%
2
==
1
end
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
local
b
=
vgf
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
GetLevel
()
%
2
==
0
end
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
return
(
not
a
and
b
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
AFFECT_CODE_BOTH_WING
)
end
-- 黑翼能力在你的封锁区中的卡只有偶数的等级的场合有效
function
VgF
.
DarkWing
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
a
=
vgf
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
GetLevel
()
%
2
==
1
end
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
local
b
=
vgf
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
GetLevel
()
%
2
==
0
end
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
return
(
a
and
not
b
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
AFFECT_CODE_BOTH_WING
)
end
\ No newline at end of file
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