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
9d510f5d
Commit
9d510f5d
authored
Apr 12, 2024
by
jwyxym
Committed by
GitHub
Apr 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
41a468c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
VgD.Lua
VgD.Lua
+8
-3
No files found.
VgD.Lua
View file @
9d510f5d
...
@@ -437,8 +437,8 @@ function VgD.SendToGCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -437,8 +437,8 @@ function VgD.SendToGCost(e,tp,eg,ep,ev,re,r,rp,chk)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
else
else
if
chk
==
0
then
return
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
AFFECT_CODE_Sendto
G
)
or
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_GZONE
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
VgF
.
IsAbleToGZone
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
))
end
if
chk
==
0
then
return
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
OAFFECT_CODE_SENDTO
G
)
or
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_GZONE
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
VgF
.
IsAbleToGZone
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
))
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
AFFECT_CODE_Sendto
G
)
and
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_GZONE
,
0
,
1
,
nil
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
OAFFECT_CODE_SENDTO
G
)
and
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_GZONE
,
0
,
1
,
nil
)
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
VgF
.
IsAbleToGZone
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
VgF
.
IsAbleToGZone
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
tc
=
VgF
.
ReturnCard
(
tc
)
tc
=
VgF
.
ReturnCard
(
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
...
@@ -587,6 +587,7 @@ function VgD.CardTriggerOperation(chkop,f)
...
@@ -587,6 +587,7 @@ function VgD.CardTriggerOperation(chkop,f)
bc
:
RegisterFlagEffect
(
DamageTriggerFlag
,
RESET_EVENT
+
RESETS_STANDARD
+
EVENT_DAMAGE_STEP_END
,
0
,
1
,
label
)
bc
:
RegisterFlagEffect
(
DamageTriggerFlag
,
RESET_EVENT
+
RESETS_STANDARD
+
EVENT_DAMAGE_STEP_END
,
0
,
1
,
label
)
elseif
label
==
0
then
elseif
label
==
0
then
bc
:
ResetFlagEffect
(
DamageTriggerFlag
)
bc
:
ResetFlagEffect
(
DamageTriggerFlag
)
Duel
.
RaiseEvent
(
rc
,
EVENT_CUSTOM
+
EVENT_DAMAGE_TRIGGER
,
e
,
0
,
tp
,
tp
,
0
)
end
end
else
else
if
c
:
IsRace
(
TRRIGGER_SUPER
)
then
if
c
:
IsRace
(
TRRIGGER_SUPER
)
then
...
@@ -915,9 +916,13 @@ function VgD.EffectTypeIgnition(c,m,loc,op,cost,con,tg,count,property,stringid)
...
@@ -915,9 +916,13 @@ function VgD.EffectTypeIgnition(c,m,loc,op,cost,con,tg,count,property,stringid)
e1
:
SetRange
(
loc
)
e1
:
SetRange
(
loc
)
if
property
and
property
>
0
then
e1
:
SetProperty
(
property
)
end
if
property
and
property
>
0
then
e1
:
SetProperty
(
property
)
end
if
count
and
count
>
0
then
e1
:
SetCountLimit
(
count
)
end
if
count
and
count
>
0
then
e1
:
SetCountLimit
(
count
)
end
if
VgF
.
GetValueType
(
con
)
==
"function"
then
e1
:
SetCo
st
(
con
)
end
if
VgF
.
GetValueType
(
con
)
==
"function"
then
e1
:
SetCo
ndition
(
con
)
end
if
VgF
.
GetValueType
(
cost
)
==
"function"
then
e1
:
SetCost
(
cost
)
end
if
VgF
.
GetValueType
(
cost
)
==
"function"
then
e1
:
SetCost
(
cost
)
end
if
VgF
.
GetValueType
(
tg
)
==
"function"
then
e1
:
SetTarget
(
tg
)
end
if
VgF
.
GetValueType
(
tg
)
==
"function"
then
e1
:
SetTarget
(
tg
)
end
if
VgF
.
GetValueType
(
op
)
==
"function"
then
e1
:
SetOperation
(
op
)
end
if
VgF
.
GetValueType
(
op
)
==
"function"
then
e1
:
SetOperation
(
op
)
end
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
function
VgD
.
EffectTypeTriggerWhenHitting
(
c
,
m
,
loc
,
typ
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
VgD
.
EffectTypeTrigger
(
c
,
m
,
loc
,
typ
,
EVENT_CUSTOM
+
EVENT_DAMAGE_TRIGGER
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
VgD
.
EffectTypeTrigger
(
c
,
m
,
loc
,
typ
,
EVENT_BATTLE_DESTROYING
,
op
,
cost
,
con
,
tg
,
count
,
property
,
stringid
)
end
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