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
ff3885b9
Commit
ff3885b9
authored
Aug 28, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3d4f896e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
VgD.Lua
VgD.Lua
+5
-1
VgDefinition.Lua
VgDefinition.Lua
+2
-2
VgFuncLib.lua
VgFuncLib.lua
+3
-4
No files found.
VgD.Lua
View file @
ff3885b9
...
@@ -1243,7 +1243,11 @@ function VgD.GlobalCheckEffect(c,m,typ,code,con,op)
...
@@ -1243,7 +1243,11 @@ function VgD.GlobalCheckEffect(c,m,typ,code,con,op)
ge1
:
SetType
(
typ
)
ge1
:
SetType
(
typ
)
ge1
:
SetCode
(
code
)
ge1
:
SetCode
(
code
)
if
VgF
.
GetValueType
(
con
)
==
"function"
then
ge1
:
SetCondition
(
con
)
end
if
VgF
.
GetValueType
(
con
)
==
"function"
then
ge1
:
SetCondition
(
con
)
end
ge1
:
SetOperation
(
op
)
if
VgF
.
GetValueType
(
op
)
==
"function"
then
ge1
:
SetOperation
(
op
)
else
ge1
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
)
end
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
end
\ No newline at end of file
VgDefinition.Lua
View file @
ff3885b9
...
@@ -446,8 +446,8 @@ EFFECT_CHANGE_TYPE =117 --改变卡片种类
...
@@ -446,8 +446,8 @@ EFFECT_CHANGE_TYPE =117 --改变卡片种类
EFFECT_ADD_RACE
=
120
--增加种族
EFFECT_ADD_RACE
=
120
--增加种族
EFFECT_REMOVE_RACE
=
121
--删除种族
EFFECT_REMOVE_RACE
=
121
--删除种族
EFFECT_CHANGE_RACE
=
122
--改变种族
EFFECT_CHANGE_RACE
=
122
--改变种族
EFFECT_ADD_
ATTRIBUTE
=
125
--增加属性
EFFECT_ADD_
SKILL
=
125
--增加技能
EFFECT_REMOVE_
ATTRIBUTE
=
126
--删除属性
EFFECT_REMOVE_
SKILL
=
126
--删除技能
EFFECT_CHANGE_ATTRIBUTE
=
127
--改变属性
EFFECT_CHANGE_ATTRIBUTE
=
127
--改变属性
EFFECT_UPDATE_LEVEL
=
130
--改变等级
EFFECT_UPDATE_LEVEL
=
130
--改变等级
EFFECT_CHANGE_LEVEL
=
131
--设置等级
EFFECT_CHANGE_LEVEL
=
131
--设置等级
...
...
VgFuncLib.lua
View file @
ff3885b9
...
@@ -853,15 +853,13 @@ end
...
@@ -853,15 +853,13 @@ end
---@param c Card 要判断的卡
---@param c Card 要判断的卡
---@return boolean 指示c是否是前列的单位
---@return boolean 指示c是否是前列的单位
function
VgF
.
FrontFilter
(
c
)
function
VgF
.
FrontFilter
(
c
)
local
seq
=
c
:
GetSequence
()
return
vgf
.
IsSequence
(
c
,
0
,
4
,
5
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
(
seq
==
0
or
seq
==
4
or
seq
==
5
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
---判断c是否在后列。
---判断c是否在后列。
---@param c Card 要判断的卡
---@param c Card 要判断的卡
---@return boolean 指示c是否是后列的单位
---@return boolean 指示c是否是后列的单位
function
VgF
.
BackFilter
(
c
)
function
VgF
.
BackFilter
(
c
)
local
seq
=
c
:
GetSequence
()
return
vgf
.
IsSequence
(
c
,
1
,
2
,
3
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
(
seq
==
1
or
seq
==
2
or
seq
==
3
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
VgF
.
PrisonFilter
(
c
,
ct
)
function
VgF
.
PrisonFilter
(
c
,
ct
)
return
c
:
GetSequence
()
==
ct
-
1
return
c
:
GetSequence
()
==
ct
-
1
...
@@ -1129,6 +1127,7 @@ function VgF.Sendto(loc,sg,...)
...
@@ -1129,6 +1127,7 @@ function VgF.Sendto(loc,sg,...)
end
end
return
0
return
0
end
end
-- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效
-- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效
function
VgF
.
WhiteWing
(
e
)
function
VgF
.
WhiteWing
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
...
...
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