Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-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
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
MyCard
ygopro-scripts
Commits
804bb94e
Commit
804bb94e
authored
Nov 19, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c3dfc193
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
constant.lua
constant.lua
+3
-0
utility.lua
utility.lua
+16
-2
No files found.
constant.lua
View file @
804bb94e
...
@@ -498,6 +498,9 @@ EFFECT_MUST_BE_SMATERIAL =312 --必须作为同调素材(波动龙 声子龙
...
@@ -498,6 +498,9 @@ EFFECT_MUST_BE_SMATERIAL =312 --必须作为同调素材(波动龙 声子龙
EFFECT_TO_GRAVE_REDIRECT_CB
=
313
--重新指定去向(寶玉獸)
EFFECT_TO_GRAVE_REDIRECT_CB
=
313
--重新指定去向(寶玉獸)
EFFECT_CHANGE_LEVEL_FINAL
=
314
--設定最終等級(銀河女王之光)
EFFECT_CHANGE_LEVEL_FINAL
=
314
--設定最終等級(銀河女王之光)
EFFECT_CHANGE_RANK_FINAL
=
315
--設定最終階級
EFFECT_CHANGE_RANK_FINAL
=
315
--設定最終階級
EFFECT_MUST_BE_FMATERIAL
=
316
--必须作为融合素材
EFFECT_MUST_BE_XMATERIAL
=
317
--必须作为超量素材
EFFECT_MUST_BE_LMATERIAL
=
318
--必须作为连接素材
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SPSUMMON_COUNT_LIMIT
=
330
--特殊召唤次数限制
EFFECT_SPSUMMON_COUNT_LIMIT
=
330
--特殊召唤次数限制
EFFECT_LEFT_SPSUMMON_COUNT
=
331
--剩餘召喚次數(召喚限制網)
EFFECT_LEFT_SPSUMMON_COUNT
=
331
--剩餘召喚次數(召喚限制網)
...
...
utility.lua
View file @
804bb94e
...
@@ -1634,14 +1634,28 @@ function Auxiliary.LinkCondition(f,minc,maxc,gf)
...
@@ -1634,14 +1634,28 @@ function Auxiliary.LinkCondition(f,minc,maxc,gf)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
return
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
0
,
minc
,
maxc
,
gf
)
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
local
pc
=
pe
:
GetHandler
()
if
not
mg
:
IsContains
(
pc
)
then
return
false
end
sg
:
AddCard
(
pc
)
end
local
ct
=
sg
:
GetCount
()
if
ct
>
maxc
then
return
false
end
return
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
c
,
minc
,
ct
,
gf
)
or
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
ct
,
minc
,
maxc
,
gf
)
end
end
end
end
function
Auxiliary
.
LinkOperation
(
f
,
minc
,
maxc
,
gf
)
function
Auxiliary
.
LinkOperation
(
f
,
minc
,
maxc
,
gf
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
i
=
0
,
maxc
-
1
do
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
sg
:
AddCard
(
pe
:
GetHandler
())
end
local
ct
=
sg
:
GetCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
sg
:
Select
(
tp
,
ct
,
ct
,
nil
)
for
i
=
ct
,
maxc
-
1
do
local
cg
=
mg
:
Filter
(
Auxiliary
.
LCheckRecursive
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
,
gf
)
local
cg
=
mg
:
Filter
(
Auxiliary
.
LCheckRecursive
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
,
gf
)
if
cg
:
GetCount
()
==
0
then
break
end
if
cg
:
GetCount
()
==
0
then
break
end
local
minct
=
1
local
minct
=
1
...
...
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