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
4ae8948a
You need to sign in or sign up before continuing.
Commit
4ae8948a
authored
May 25, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
29cf3bf2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33401653.lua
expansions/script/c33401653.lua
+1
-1
expansions/script/c33501032.lua
expansions/script/c33501032.lua
+3
-3
expansions/script/c4210009.lua
expansions/script/c4210009.lua
+6
-6
expansions/script/c4210042.lua
expansions/script/c4210042.lua
+4
-4
expansions/script/c4210043.lua
expansions/script/c4210043.lua
+4
-4
No files found.
expansions/222DIY.cdb
View file @
4ae8948a
No preview for this file type
expansions/script/c33401653.lua
View file @
4ae8948a
...
...
@@ -137,7 +137,7 @@ function cm.refilter(c,tp,re)
return
c
:
IsReleasable
()
or
(
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
flag
)
end
function
cm
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
refilter
,
tp
,
LOCATION_
DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
refilter
,
tp
,
LOCATION_
ONFIELD
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
refilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
...
...
expansions/script/c33501032.lua
View file @
4ae8948a
...
...
@@ -35,7 +35,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Sre_setback
[
1
]
~=
0
then
res
=
Sre_setback
[
1
]
end
if
chk
==
0
then
return
res
end
if
chk
==
0
then
return
res
and
not
res
:
IsDisabled
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
Sre_setback
[
1
],
1
,
0
,
0
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -45,12 +45,12 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
end
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanTurnSet
()
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
...
...
expansions/script/c4210009.lua
View file @
4ae8948a
...
...
@@ -32,14 +32,14 @@ function c4210009.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c4210009
.
tgcard
=
nil
end
function
c4210009
.
cfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa2f
)
and
c
:
IsReleasable
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
function
c4210009
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa2f
)
and
c
:
IsReleasable
()
end
function
c4210009
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
TOHAND
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
local
c
=
e
:
GetHandler
(
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
CheckReleaseGroup
(
tp
,
c4210009
.
cfilter
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
ELEASE
)
local
g
=
Duel
.
Select
ReleaseGroup
(
tp
,
c4210009
.
cfilter
,
1
,
1
,
e
:
GetHandler
()
)
if
g
:
GetFirst
():
GetFlagEffect
(
4210010
)
~=
0
then
e
:
SetLabel
(
1
)
c4210009
.
tgcard
=
g
:
GetFirst
()
else
e
:
SetLabel
(
0
)
end
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c4210042.lua
View file @
4ae8948a
...
...
@@ -27,9 +27,9 @@ function c4210042.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c4210042
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c4210042
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
TOHAND
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c4210042
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c4210042
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
ELEASE
)
local
g
=
Duel
.
Select
ReleaseGroup
(
tp
,
c4210042
.
cfilter
,
1
,
1
,
e
:
GetHandler
()
)
if
g
:
GetFirst
():
GetFlagEffect
(
4210010
)
~=
0
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c4210043.lua
View file @
4ae8948a
...
...
@@ -27,9 +27,9 @@ function c4210043.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c4210043
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c4210043
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
TOHAND
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c4210043
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c4210043
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_R
ELEASE
)
local
g
=
Duel
.
Select
ReleaseGroup
(
tp
,
c4210043
.
cfilter
,
1
,
1
,
e
:
GetHandler
()
)
if
g
:
GetFirst
():
GetFlagEffect
(
4210010
)
~=
0
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
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