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
ce83f9bd
Commit
ce83f9bd
authored
Apr 09, 2024
by
jwyxym
Committed by
GitHub
Apr 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
6bd1e6bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
VgD.Lua
VgD.Lua
+18
-16
No files found.
VgD.Lua
View file @
ce83f9bd
...
@@ -404,16 +404,25 @@ function VgD.SupportOperation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -404,16 +404,25 @@ function VgD.SupportOperation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
GetAttacker
():
RegisterFlagEffect
(
SupportFlag
,
RESET_EVENT
+
RESETS_STANDARD
+
EVENT_DAMAGE_STEP_END
,
0
,
1
)
Duel
.
GetAttacker
():
RegisterFlagEffect
(
SupportFlag
,
RESET_EVENT
+
RESETS_STANDARD
+
EVENT_DAMAGE_STEP_END
,
0
,
1
)
end
end
function
VgD
.
SupportValue
(
e
)
function
VgD
.
SupportValue
(
e
)
if
Duel
.
GetAttacker
()
~=
e
:
GetHandler
()
then
return
0
end
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
local
atk
=
0
local
g
=
Duel
.
GetMatchingGroup
(
function
(
c
)
if
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
then
return
c
:
GetFlagEffect
(
SupportFlag
)
>
0
local
g
=
Duel
.
GetMatchingGroup
(
function
(
c
)
end
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
c
:
GetFlagEffect
(
SupportFlag
)
>
0
local
atk
=
0
end
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
for
tc
in
vgf
.
Next
(
g
)
do
for
tc
in
vgf
.
Next
(
g
)
do
atk
=
atk
+
tc
:
GetAttack
()
atk
=
atk
+
tc
:
GetAttack
()
end
return
atk
elseif
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
then
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_GZONE
,
0
,
nil
)
for
tc
in
vgf
.
Next
(
g
)
do
atk
=
atk
+
tc
:
GetAttack
()
end
return
atk
else
return
0
end
end
return
atk
end
end
function
VgD
.
SendToGCost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
VgD
.
SendToGCost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -446,20 +455,13 @@ function VgD.SendToGOperation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -446,20 +455,13 @@ function VgD.SendToGOperation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
Duel
.
GetAttackTarget
()
local
bc
=
Duel
.
GetAttackTarget
()
if
not
bc
or
not
VgF
.
IsAbleToGZone
(
c
)
or
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
if
not
bc
or
not
VgF
.
IsAbleToGZone
(
c
)
or
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
local
def
=
c
:
GetDefense
()
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
local
g
=
Group
.
FromCards
(
c
)
local
g
=
Group
.
FromCards
(
c
)
if
tc
then
if
tc
then
tc
=
VgF
.
ReturnCard
(
tc
)
tc
=
VgF
.
ReturnCard
(
tc
)
g
:
AddCard
(
tc
)
g
:
AddCard
(
tc
)
if
tc
:
GetDefense
()
>
0
then
def
=
def
+
tc
:
GetDefense
()
>
0
end
end
end
Duel
.
Sendto
(
g
,
tp
,
LOCATION_GZONE
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Sendto
(
g
,
tp
,
LOCATION_GZONE
,
POS_FACEUP
,
REASON_EFFECT
)
if
def
>
0
then
VgF
.
AtkUp
(
c
,
bc
,
def
,
nil
)
end
end
end
function
VgD
.
GToGraveOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
VgD
.
GToGraveOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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