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
38b4aa41
Commit
38b4aa41
authored
Jul 03, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1b64a82b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
VgD.Lua
VgD.Lua
+6
-6
VgDefinition.Lua
VgDefinition.Lua
+7
-7
VgFuncLib.lua
VgFuncLib.lua
+1
-1
No files found.
VgD.Lua
View file @
38b4aa41
...
...
@@ -579,7 +579,7 @@ end
function
VgD
.
CardTriggerOperation
(
chkop
,
f
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRace
(
TR
R
IGGER_CRITICAL_STRIKE
)
then
if
c
:
IsRace
(
TRIGGER_CRITICAL_STRIKE
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CRITICAL_STRIKE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g1
)
...
...
@@ -588,13 +588,13 @@ function VgD.CardTriggerOperation(chkop,f)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
VgF
.
AtkUp
(
c
,
g2
,
10000
,
nil
)
elseif
c
:
IsRace
(
TR
R
IGGER_DRAW
)
then
elseif
c
:
IsRace
(
TRIGGER_DRAW
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATKUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
VgF
.
AtkUp
(
c
,
g
,
10000
,
nil
)
Duel
.
Draw
(
tp
,
1
,
REASON_TRIGGER
)
elseif
c
:
IsRace
(
TR
R
IGGER_HEAL
)
then
elseif
c
:
IsRace
(
TRIGGER_HEAL
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATKUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
...
...
@@ -607,12 +607,12 @@ function VgD.CardTriggerOperation(chkop,f)
Duel
.
Recover
(
tp
,
1
,
REASON_RULE
)
end
end
elseif
c
:
IsRace
(
TR
R
IGGER_ADVANCE
)
then
elseif
c
:
IsRace
(
TRIGGER_ADVANCE
)
then
local
g
=
Duel
.
GetMatchingGroup
(
VgF
.
IsSequence
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0
,
4
,
5
)
VgF
.
AtkUp
(
c
,
g
,
10000
,
nil
)
end
if
chkop
==
0
then
if
c
:
IsRace
(
TR
R
IGGER_SUPER
)
then
if
c
:
IsRace
(
TRIGGER_SUPER
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATKUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
...
...
@@ -637,7 +637,7 @@ function VgD.CardTriggerOperation(chkop,f)
Duel
.
RaiseEvent
(
rc
,
EVENT_CUSTOM
+
EVENT_DAMAGE_TRIGGER
,
e
,
0
,
tp
,
tp
,
0
)
end
else
if
c
:
IsRace
(
TR
R
IGGER_SUPER
)
then
if
c
:
IsRace
(
TRIGGER_SUPER
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATKUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
...
...
VgDefinition.Lua
View file @
38b4aa41
...
...
@@ -87,13 +87,13 @@ SKILL_TWICE_TRIGGER =0x10 --三判
SKILL_SELF_RIDE
=
0x20
--人格骑升
SKILL_DEBRIS
=
0x40
--结晶碎片
--触发类型 --种族
TR
R
IGGER_ALL
=
0x3ffffff
--All
TR
R
IGGER_NONE
=
0x1
--无
TR
R
IGGER_CRITICAL_STRIKE
=
0x2
--暴击触发
TR
R
IGGER_DRAW
=
0x4
--抽牌触发
TR
R
IGGER_HEAL
=
0x8
--治愈触发
TR
R
IGGER_ADVANCE
=
0x10
--前列触发
TR
R
IGGER_SUPER
=
0x20
--超限触发
TRIGGER_ALL
=
0x3ffffff
--All
TRIGGER_NONE
=
0x1
--无
TRIGGER_CRITICAL_STRIKE
=
0x2
--暴击触发
TRIGGER_DRAW
=
0x4
--抽牌触发
TRIGGER_HEAL
=
0x8
--治愈触发
TRIGGER_ADVANCE
=
0x10
--前列触发
TRIGGER_SUPER
=
0x20
--超限触发
--Category 效果分类
CATEGORY_DEFENDER
=
0x1
--守护者
--Reason 卡片到当前位置的原因
...
...
VgFuncLib.lua
View file @
38b4aa41
...
...
@@ -15,7 +15,7 @@ function VgF.VgCard(c)
VgD
.
CallToR
(
c
)
VgD
.
MonsterBattle
(
c
)
end
if
not
c
:
IsRace
(
TR
R
IGGER_SUPER
)
then
if
not
c
:
IsRace
(
TRIGGER_SUPER
)
then
VgD
.
CardTrigger
(
c
,
nil
)
end
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