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
Ai
ygopro-222DIY-cards
Commits
183adab3
Commit
183adab3
authored
Feb 04, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 2
parent
1dc69174
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
34 deletions
+5
-34
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c14000507.lua
expansions/script/c14000507.lua
+4
-34
expansions/script/c33310155.lua
expansions/script/c33310155.lua
+1
-0
No files found.
expansions/222DIY.cdb
View file @
183adab3
No preview for this file type
expansions/script/c14000507.lua
View file @
183adab3
...
@@ -39,50 +39,20 @@ function cm.initial_effect(c)
...
@@ -39,50 +39,20 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
costop
)
e4
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
cm
.
loaded_metatable_list
=
cm
.
loaded_metatable_list
or
{}
function
cm
.
LoadMetatable
(
code
)
local
m1
=
_G
[
"c"
..
code
]
if
m1
then
return
m1
end
local
m2
=
cm
.
loaded_metatable_list
[
code
]
if
m2
then
return
m2
end
_G
[
"c"
..
code
]
=
{}
if
pcall
(
function
()
dofile
(
"expansions/script/c"
..
code
..
".lua"
)
end
)
or
pcall
(
function
()
dofile
(
"script/c"
..
code
..
".lua"
)
end
)
then
local
mt
=
_G
[
"c"
..
code
]
_G
[
"c"
..
code
]
=
nil
if
mt
then
cm
.
loaded_metatable_list
[
code
]
=
mt
return
mt
end
else
_G
[
"c"
..
code
]
=
nil
end
end
function
cm
.
check_link_set_SPO
(
c
)
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
(
"_Spositch"
)
and
v
then
return
true
end
end
end
end
return
false
end
function
cm
.
lfilter
(
c
)
function
cm
.
lfilter
(
c
)
return
c
:
IsLinkType
(
TYPE_TUNER
)
and
cm
.
check_link_set_SPO
(
c
)
return
c
:
IsLinkType
(
TYPE_TUNER
)
end
end
function
cm
.
lcheck
(
g
,
lc
)
function
cm
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
)
return
g
:
IsExists
(
cm
.
lfilter
,
1
,
nil
)
and
g
:
GetClassCount
(
Card
.
GetLinkAttribute
)
==
g
:
GetCount
()
end
end
function
cm
.
qpcon
(
e
)
function
cm
.
qpcon
(
e
)
return
e
:
GetHandler
():
GetSequence
()
>
4
return
e
:
GetHandler
():
GetSequence
()
>
4
end
end
function
cm
.
costtg
(
e
,
te
,
tp
)
function
cm
.
costtg
(
e
,
te
,
tp
)
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandlerPlayer
()
return
tc
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
1
and
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandlerPlayer
()
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
GetEffectCount
(
m
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
GetEffectCount
(
m
)
>
0
and
(
tc
:
GetEffectCount
(
EFFECT_QP_ACT_IN_NTPHAND
)
<=
tc
:
GetEffectCount
(
m
)
and
(
tc
:
IsType
(
TYPE_QUICKPLAY
)
or
tc
:
IsHasProperty
(
EFFECT_FLAG2_SPOSITCH
)))
and
(
tc
:
GetEffectCount
(
EFFECT_QP_ACT_IN_NTPHAND
)
<=
tc
:
GetEffectCount
(
m
)
and
(
tc
:
IsType
(
TYPE_QUICKPLAY
)
or
spo
.
named
(
tc
)))
end
end
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c33310155.lua
View file @
183adab3
--临魔蝶彩
--临魔蝶彩
function
c33310155
.
initial_effect
(
c
)
function
c33310155
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
33310155
)
--spsummon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
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