Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
51b90cb7
Commit
51b90cb7
authored
Dec 10, 2020
by
CubeRuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bd41c6f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
expansions/script/c16105110.lua
expansions/script/c16105110.lua
+5
-4
No files found.
expansions/script/c16105110.lua
View file @
51b90cb7
...
@@ -11,15 +11,15 @@ function c16105110.initial_effect(c)
...
@@ -11,15 +11,15 @@ function c16105110.initial_effect(c)
end
end
function
c16105110
.
filter
(
c
,
e
,
tp
,
m
)
function
c16105110
.
filter
(
c
,
e
,
tp
,
m
)
local
b
=
0
local
b
=
0
if
not
c
:
IsSetCard
(
0xcc3
)
then
return
end
if
c
:
IsType
(
TYPE_SYNCHRO
)
then
b
=
SUMMON_TYPE_SYNCHRO
if
c
:
IsType
(
TYPE_SYNCHRO
)
then
b
=
SUMMON_TYPE_SYNCHRO
elseif
c
:
IsType
(
TYPE_FUSION
)
then
b
=
SUMMON_TYPE_FUSION
elseif
c
:
IsType
(
TYPE_FUSION
)
then
b
=
SUMMON_TYPE_FUSION
elseif
c
:
IsType
(
TYPE_XYZ
)
then
b
=
SUMMON_TYPE_XYZ
elseif
c
:
IsType
(
TYPE_XYZ
)
then
b
=
SUMMON_TYPE_XYZ
elseif
c
:
IsType
(
TYPE_RITUAL
)
then
b
=
TYPE_RITUAL
elseif
c
:
IsType
(
TYPE_RITUAL
)
then
b
=
TYPE_RITUAL
else
b
=
0
end
else
b
=
0
end
if
not
c
:
IsSetCard
(
0xcc3
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
b
,
tp
,
true
,
true
)
or
not
(
c
:
IsLevelAbove
(
1
)
or
c
:
IsRankAbove
(
1
))
then
return
false
end
m
=
m
:
Filter
(
c16105110
.
matfilter
,
nil
,
c
)
m
=
m
:
Filter
(
c16105110
.
matfilter
,
nil
,
c
)
return
m
:
CheckWithSumEqual
(
c16105110
.
sumfun
,
c
:
GetLevel
(),
1
,
99
,
c
)
local
num
=
c
:
GetLevel
()
+
c
:
GetRank
()
return
c
:
IsCanBeSpecialSummoned
(
e
,
b
,
tp
,
true
,
true
)
and
(
c
:
IsLevelAbove
(
1
)
or
c
:
IsRankAbove
(
1
))
and
m
:
CheckWithSumEqual
(
c16105110
.
sumfun
,
num
,
1
,
99
)
end
end
function
c16105110
.
sumfun
(
c
)
function
c16105110
.
sumfun
(
c
)
return
c
:
GetLevel
()
+
c
:
GetRank
()
+
c
:
GetLink
()
return
c
:
GetLevel
()
+
c
:
GetRank
()
+
c
:
GetLink
()
...
@@ -46,9 +46,10 @@ function c16105110.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,9 +46,10 @@ function c16105110.activate(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c16105110
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c16105110
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
local
num
=
tc
:
GetLevel
()
+
tc
:
GetRank
()
mg
=
mg
:
Filter
(
c16105110
.
matfilter
,
nil
,
tc
)
mg
=
mg
:
Filter
(
c16105110
.
matfilter
,
nil
,
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
16105110
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
16105110
,
1
))
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
c16105110
.
sumfun
,
num
,
1
,
99
)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
mat1
=
mat
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
mat1
=
mat
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
mat
=
mat
:
Filter
(
c16105110
.
tdfilter
,
nil
)
mat
=
mat
:
Filter
(
c16105110
.
tdfilter
,
nil
)
...
...
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