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
50cdbbfb
Commit
50cdbbfb
authored
Dec 11, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sjb
parent
7aff7a01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c16104410.lua
expansions/script/c16104410.lua
+1
-1
expansions/script/c16105000.lua
expansions/script/c16105000.lua
+2
-2
expansions/script/c16105004.lua
expansions/script/c16105004.lua
+3
-2
No files found.
expansions/222DIY.cdb
View file @
50cdbbfb
No preview for this file type
expansions/script/c16104410.lua
View file @
50cdbbfb
...
@@ -195,7 +195,7 @@ function cm.cfilter(c)
...
@@ -195,7 +195,7 @@ function cm.cfilter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
cm
.
actarget2
(
e
,
te
,
tp
)
function
cm
.
actarget2
(
e
,
te
,
tp
)
return
te
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
te
:
GetHandler
():
GetOriginalType
()
==
TYPE_SPELL
or
te
:
GetHandler
():
GetOriginalType
()
==
TYPE_TRAP
end
end
function
cm
.
costchk2
(
e
,
te_or_c
,
tp
)
function
cm
.
costchk2
(
e
,
te_or_c
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
...
...
expansions/script/c16105000.lua
View file @
50cdbbfb
...
@@ -58,10 +58,10 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,10 +58,10 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
cm
.
thsplimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
cm
.
thsplimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
(
c
:
IsLevel
(
10
)
or
c
:
IsRank
(
10
)
or
c
:
IsSetCard
(
0xcc3
))
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
not
(
c
:
IsLevel
(
10
)
or
c
:
IsRank
(
10
)
or
c
:
IsSetCard
(
0xcc3
))
end
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
(
c
:
IsSetCard
(
0xcc3
)
or
c
:
IsLevel
(
10
)
or
c
:
IsRank
(
10
))
return
not
(
c
:
IsSetCard
(
0xcc3
)
or
c
:
IsLevel
(
10
)
or
c
:
IsRank
(
10
))
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
GetLevel
()
~=
1
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
GetLevel
()
~=
1
...
...
expansions/script/c16105004.lua
View file @
50cdbbfb
...
@@ -154,7 +154,7 @@ function cm.thfilter(c)
...
@@ -154,7 +154,7 @@ function cm.thfilter(c)
return
c
:
IsLevel
(
10
)
and
c
:
IsAbleToHand
()
return
c
:
IsLevel
(
10
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
ActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
Duel
.
Get
CustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
@@ -169,7 +169,7 @@ function cm.thsplimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -169,7 +169,7 @@ function cm.thsplimit(e,c,sump,sumtype,sumpos,targetp,se)
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsLevel
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
10
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_EXTRA
)
end
end
...
@@ -182,4 +182,5 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -182,4 +182,5 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfiter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfiter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
g
:
Merge
(
tc
)
g
:
Merge
(
tc
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
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