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
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
Reinen
ygopro-scripts
Commits
fc41fec8
Commit
fc41fec8
authored
Jun 27, 2017
by
nekrozar
Committed by
mercury233
Jun 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Link Summon (#884)
parent
c2d59575
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
11 deletions
+12
-11
c1861629.lua
c1861629.lua
+1
-1
c30194529.lua
c30194529.lua
+1
-1
c31226177.lua
c31226177.lua
+1
-1
c5821478.lua
c5821478.lua
+1
-1
c77610772.lua
c77610772.lua
+2
-2
c98978921.lua
c98978921.lua
+1
-1
constant.lua
constant.lua
+1
-0
utility.lua
utility.lua
+4
-4
No files found.
c1861629.lua
View file @
fc41fec8
--デコード・トーカー
function
c1861629
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_EFFECT
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Type
,
TYPE_EFFECT
),
2
)
c
:
EnableReviveLimit
()
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c30194529.lua
View file @
fc41fec8
...
...
@@ -2,7 +2,7 @@
function
c30194529
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_LINK
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Type
,
TYPE_LINK
),
2
)
--draw
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
30194529
,
0
))
...
...
c31226177.lua
View file @
fc41fec8
...
...
@@ -33,7 +33,7 @@ function c31226177.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c31226177
.
matfilter
(
c
)
return
c
:
Is
Type
(
TYPE_NORMAL
)
and
not
c
:
Is
Type
(
TYPE_TOKEN
)
return
c
:
Is
LinkType
(
TYPE_NORMAL
)
and
not
c
:
IsLink
Type
(
TYPE_TOKEN
)
end
function
c31226177
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c5821478.lua
View file @
fc41fec8
--トポロジック・ボマー・ドラゴン
function
c5821478
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_EFFECT
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Type
,
TYPE_EFFECT
),
2
)
c
:
EnableReviveLimit
()
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c77610772.lua
View file @
fc41fec8
...
...
@@ -49,11 +49,11 @@ function c77610772.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c77610772
.
linkfilter1
(
c
,
lc
,
tp
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c77610772
.
linkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
lc
,
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeLinkMaterial
(
lc
)
and
Duel
.
IsExistingMatchingCard
(
c77610772
.
linkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
lc
,
c
,
tp
)
end
function
c77610772
.
linkfilter2
(
c
,
lc
,
mc
,
tp
)
local
mg
=
Group
.
FromCards
(
c
,
mc
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
mc
:
GetRace
())
and
not
c
:
IsAttribute
(
mc
:
GetAttribute
())
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
,
lc
)
>
0
return
c
:
IsFaceup
()
and
c
:
IsCanBeLinkMaterial
(
lc
)
and
not
c
:
IsRace
(
mc
:
GetRace
())
and
not
c
:
IsAttribute
(
mc
:
GetAttribute
())
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
,
lc
)
>
0
end
function
c77610772
.
linkcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c98978921.lua
View file @
fc41fec8
--リンク・スパイダー
function
c98978921
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_NORMAL
),
1
,
1
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Type
,
TYPE_NORMAL
),
1
,
1
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
constant.lua
View file @
fc41fec8
...
...
@@ -458,6 +458,7 @@ EFFECT_CANNOT_BE_FUSION_MATERIAL =235--不能做融合素材
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
=
236
--不能做同调素材
EFFECT_SYNCHRO_MATERIAL_CUSTOM
=
237
--同调素材限制
EFFECT_CANNOT_BE_XYZ_MATERIAL
=
238
--不能做超量素材
EFFECT_CANNOT_BE_LINK_MATERIAL
=
239
--
EFFECT_SYNCHRO_LEVEL
=
240
--做同调素材时的等级
EFFECT_RITUAL_LEVEL
=
241
--做仪式祭品时的等级
EFFECT_XYZ_LEVEL
=
242
--做超量素材时的等级
...
...
utility.lua
View file @
fc41fec8
...
...
@@ -1169,8 +1169,8 @@ function Auxiliary.AddLinkProcedure(c,f,min,max)
e1
:
SetValue
(
SUMMON_TYPE_LINK
)
c
:
RegisterEffect
(
e1
)
end
function
Auxiliary
.
LConditionFilter
(
c
,
f
)
return
c
:
IsFaceup
()
and
(
not
f
or
f
(
c
))
function
Auxiliary
.
LConditionFilter
(
c
,
f
,
lc
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeLinkMaterial
(
lc
)
and
(
not
f
or
f
(
c
))
end
function
Auxiliary
.
GetLinkCount
(
c
)
if
c
:
IsType
(
TYPE_LINK
)
and
c
:
GetLink
()
>
1
then
...
...
@@ -1194,14 +1194,14 @@ function Auxiliary.LinkCondition(f,minc,maxc)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
sg
=
Group
.
CreateGroup
()
return
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
0
,
minc
,
maxc
)
end
end
function
Auxiliary
.
LinkOperation
(
f
,
minc
,
maxc
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
,
c
)
local
sg
=
Group
.
CreateGroup
()
for
i
=
0
,
maxc
-
1
do
local
cg
=
mg
:
Filter
(
Auxiliary
.
LCheckRecursive
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
)
...
...
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