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
cba67f5a
Commit
cba67f5a
authored
Nov 15, 2024
by
whenmo
Committed by
GitHub
Nov 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add VgD.Grade0BeRide
parent
107a72f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
VgD.Lua
VgD.Lua
+14
-1
No files found.
VgD.Lua
View file @
cba67f5a
...
...
@@ -1515,6 +1515,19 @@ function VgD.BeRidedByCardOpCondtion(e, tp, eg, ep, ev, re, r, rp)
return
eg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
GetOverlayGroup
():
IsContains
(
c
)
end
---【自】这个单位被RIDE时,你是后攻的话,抽1张卡。
---@param c Card 拥有这个效果的卡
---@return Effect 这个效果
function
VgD
.
Grade0BeRide
(
c
)
return
vgd
.
BeRidedByCard
(
c
,
nil
,
nil
,
VgD
.
Grade0BeRideOperation
,
nil
,
VgD
.
Grade0BeRideCondition
)
end
function
VgD
.
Grade0BeRideCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
1
and
Duel
.
GetTurnPlayer
()
==
tp
end
function
VgD
.
Grade0BeRideOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
--起相关----------------------------------------------------------------------------------------
---【起】效果模板:当单位在loc时,可以发动的【起】效果
...
...
@@ -1867,4 +1880,4 @@ function VgD.GlobalCheckEffect(c, m, code, con, op)
if
con
then
ge
:
SetCondition
(
con
)
end
ge
:
SetOperation
(
op
)
Duel
.
RegisterEffect
(
ge
,
0
)
end
\ No newline at end of file
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