Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
35de11d9
Commit
35de11d9
authored
Dec 12, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_link_func
parent
07b69853
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
15 deletions
+30
-15
expansions/script/c1000617.lua
expansions/script/c1000617.lua
+1
-1
expansions/script/c1156007.lua
expansions/script/c1156007.lua
+1
-1
expansions/script/c37564427.lua
expansions/script/c37564427.lua
+1
-1
expansions/script/c37564550.lua
expansions/script/c37564550.lua
+1
-1
expansions/script/c37564557.lua
expansions/script/c37564557.lua
+1
-1
expansions/script/c37564558.lua
expansions/script/c37564558.lua
+1
-1
expansions/script/c37564561.lua
expansions/script/c37564561.lua
+1
-1
expansions/script/c37564564.lua
expansions/script/c37564564.lua
+1
-1
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+16
-0
expansions/script/c37564850.lua
expansions/script/c37564850.lua
+1
-1
expansions/script/c37564851.lua
expansions/script/c37564851.lua
+1
-2
expansions/script/c37564919.lua
expansions/script/c37564919.lua
+2
-2
expansions/script/c50000073.lua
expansions/script/c50000073.lua
+1
-1
expansions/script/c57300027.lua
expansions/script/c57300027.lua
+1
-1
No files found.
expansions/script/c1000617.lua
View file @
35de11d9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c1000617
.
initial_effect
(
c
)
function
c1000617
.
initial_effect
(
c
)
--link summon
--link summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xc204
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
SetCard
,
0xc204
),
2
)
--control
--control
local
e99
=
Effect
.
CreateEffect
(
c
)
local
e99
=
Effect
.
CreateEffect
(
c
)
e99
:
SetType
(
EFFECT_TYPE_SINGLE
)
e99
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c1156007.lua
View file @
35de11d9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c1156007
.
initial_effect
(
c
)
function
c1156007
.
initial_effect
(
c
)
--
--
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Attribute
,
ATTRIBUTE_EARTH
),
2
,
2
)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
expansions/script/c37564427.lua
View file @
35de11d9
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
xpcall
(
function
()
require
(
"expansions/script/c37564765"
)
end
,
function
()
require
(
"script/c37564765"
)
end
)
xpcall
(
function
()
require
(
"expansions/script/c37564765"
)
end
,
function
()
require
(
"script/c37564765"
)
end
)
cm
.
Senya_name_with_prism
=
true
cm
.
Senya_name_with_prism
=
true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_SEASERPENT
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Race
,
RACE_SEASERPENT
),
2
,
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
expansions/script/c37564550.lua
View file @
35de11d9
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
Nanahira
(
c
)
Senya
.
Nanahira
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
37564765
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Code
,
37564765
),
2
,
2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
--e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
--e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
...
...
expansions/script/c37564557.lua
View file @
35de11d9
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
Nanahira
(
c
)
Senya
.
Nanahira
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
37564765
),
2
,
3
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Code
,
37564765
),
2
,
3
)
local
ex
=
Effect
.
CreateEffect
(
c
)
local
ex
=
Effect
.
CreateEffect
(
c
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
ex
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
expansions/script/c37564558.lua
View file @
35de11d9
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
Nanahira
(
c
)
Senya
.
Nanahira
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
37564765
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Code
,
37564765
),
2
,
2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
expansions/script/c37564561.lua
View file @
35de11d9
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
...
@@ -6,7 +6,7 @@ cm.Senya_desc_with_nanahira=true
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
Nanahira
(
c
)
Senya
.
Nanahira
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
37564765
),
2
,
4
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Code
,
37564765
),
2
,
4
)
local
ex
=
Effect
.
CreateEffect
(
c
)
local
ex
=
Effect
.
CreateEffect
(
c
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetType
(
EFFECT_TYPE_SINGLE
)
ex
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
ex
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
expansions/script/c37564564.lua
View file @
35de11d9
...
@@ -5,7 +5,7 @@ xpcall(function() require("expansions/script/c37564765") end,function() require(
...
@@ -5,7 +5,7 @@ xpcall(function() require("expansions/script/c37564765") end,function() require(
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
Senya
.
Nanahira
(
c
)
Senya
.
Nanahira
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
37564765
),
3
,
3
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
Code
,
37564765
),
3
,
3
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
expansions/script/c37564765.lua
View file @
35de11d9
...
@@ -78,6 +78,9 @@ end
...
@@ -78,6 +78,9 @@ end
function
cm
.
check_set_sayuri
(
c
)
function
cm
.
check_set_sayuri
(
c
)
return
cm
.
check_set
(
c
,
"sayuri"
)
or
c
:
IsHasEffect
(
37564900
)
return
cm
.
check_set
(
c
,
"sayuri"
)
or
c
:
IsHasEffect
(
37564900
)
end
end
function
cm
.
check_link_set_sayuri
(
c
)
return
cm
.
check_set
(
c
,
"sayuri"
,
nil
,
Card
.
GetLinkCode
)
or
c
:
IsHasEffect
(
37564900
)
end
function
cm
.
check_set_remix
(
c
)
function
cm
.
check_set_remix
(
c
)
return
cm
.
check_set
(
c
,
"remix"
)
return
cm
.
check_set
(
c
,
"remix"
)
end
end
...
@@ -94,6 +97,19 @@ function cm.check_set_3L(c)
...
@@ -94,6 +97,19 @@ function cm.check_set_3L(c)
end
end
return
false
return
false
end
end
function
cm
.
check_link_set_3L
(
c
)
if
c
:
IsHasEffect
(
37564800
)
then
return
true
end
local
codet
=
{
c
:
GetLinkCode
()}
for
j
,
code
in
pairs
(
codet
)
do
local
mt
=
cm
.
LoadMetatable
(
code
)
if
mt
then
for
str
,
v
in
pairs
(
mt
)
do
if
type
(
str
)
==
"string"
and
str
:
find
(
"_3L"
)
and
v
then
return
true
end
end
end
end
return
false
end
function
cm
.
check_fusion_set_3L
(
c
)
function
cm
.
check_fusion_set_3L
(
c
)
if
c
:
IsHasEffect
(
6205579
)
then
return
false
end
if
c
:
IsHasEffect
(
6205579
)
then
return
false
end
if
c
:
IsHasEffect
(
37564800
)
then
return
true
end
if
c
:
IsHasEffect
(
37564800
)
then
return
true
end
...
...
expansions/script/c37564850.lua
View file @
35de11d9
...
@@ -5,7 +5,7 @@ xpcall(function() require("expansions/script/c37564765") end,function() require(
...
@@ -5,7 +5,7 @@ xpcall(function() require("expansions/script/c37564765") end,function() require(
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
2
,
SUMMON_TYPE_LINK
)
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
2
,
SUMMON_TYPE_LINK
)
aux
.
AddLinkProcedure
(
c
,
Senya
.
check_set_3L
,
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
Senya
.
check_
link_
set_3L
,
2
,
2
)
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
expansions/script/c37564851.lua
View file @
35de11d9
...
@@ -4,9 +4,8 @@ local cm=_G["c"..m]
...
@@ -4,9 +4,8 @@ local cm=_G["c"..m]
xpcall
(
function
()
require
(
"expansions/script/c37564765"
)
end
,
function
()
require
(
"script/c37564765"
)
end
)
xpcall
(
function
()
require
(
"expansions/script/c37564765"
)
end
,
function
()
require
(
"script/c37564765"
)
end
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--Senya.CommonEffect_3L(c,m)
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
2
,
SUMMON_TYPE_LINK
)
Senya
.
AddSummonMusic
(
c
,
m
*
16
+
2
,
SUMMON_TYPE_LINK
)
aux
.
AddLinkProcedure
(
c
,
Senya
.
check_set_3L
,
3
,
4
)
aux
.
AddLinkProcedure
(
c
,
Senya
.
check_
link_
set_3L
,
3
,
4
)
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
expansions/script/c37564919.lua
View file @
35de11d9
...
@@ -20,13 +20,13 @@ function cm.initial_effect(c)
...
@@ -20,13 +20,13 @@ function cm.initial_effect(c)
Senya
.
NegateEffectModule
(
c
,
1
,
nil
,
cm
.
cost
)
Senya
.
NegateEffectModule
(
c
,
1
,
nil
,
cm
.
cost
)
end
end
function
cm
.
mfilter
(
c
)
function
cm
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
Senya
.
check_set_sayuri
(
c
)
and
c
:
IsLinkType
(
TYPE_RITUAL
)
return
c
:
IsFaceup
()
and
Senya
.
check_
link_
set_sayuri
(
c
)
and
c
:
IsLinkType
(
TYPE_RITUAL
)
end
end
function
cm
.
lcheck
(
g
)
function
cm
.
lcheck
(
g
)
return
not
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
return
not
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
,
g
)
end
end
function
cm
.
lfilter
(
c
,
g
)
function
cm
.
lfilter
(
c
,
g
)
return
g
:
IsExists
(
Card
.
IsCode
,
1
,
c
,
c
:
GetCode
())
return
g
:
IsExists
(
Card
.
Is
Link
Code
,
1
,
c
,
c
:
GetCode
())
end
end
function
cm
.
cfilter
(
c
,
g
)
function
cm
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
return
g
:
IsContains
(
c
)
...
...
expansions/script/c50000073.lua
View file @
35de11d9
...
@@ -3,7 +3,7 @@ local m=50000073
...
@@ -3,7 +3,7 @@ local m=50000073
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x50c
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
SetCard
,
0x50c
),
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--spsummon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c57300027.lua
View file @
35de11d9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
local
m
=
57300027
local
m
=
57300027
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x570
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
Is
Link
SetCard
,
0x570
),
2
,
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
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