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
5c4da376
Commit
5c4da376
authored
Jul 11, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
y1s1
parent
bd561429
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
781 additions
and
773 deletions
+781
-773
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c10221022.lua
expansions/script/c10221022.lua
+5
-2
expansions/script/c14000022.lua
expansions/script/c14000022.lua
+1
-1
expansions/script/c16001012.lua
expansions/script/c16001012.lua
+1
-1
expansions/script/c18006010.lua
expansions/script/c18006010.lua
+1
-1
expansions/script/c21520186.lua
expansions/script/c21520186.lua
+1
-1
expansions/script/c22600107.lua
expansions/script/c22600107.lua
+85
-85
expansions/script/c33310152.lua
expansions/script/c33310152.lua
+1
-1
expansions/script/c33400101.lua
expansions/script/c33400101.lua
+1
-1
expansions/script/c33400311.lua
expansions/script/c33400311.lua
+2
-2
expansions/script/c33700723.lua
expansions/script/c33700723.lua
+1
-1
expansions/script/c47500104.lua
expansions/script/c47500104.lua
+91
-87
expansions/script/c47510028.lua
expansions/script/c47510028.lua
+140
-140
expansions/script/c47510203.lua
expansions/script/c47510203.lua
+108
-108
expansions/script/c47510209.lua
expansions/script/c47510209.lua
+121
-121
expansions/script/c47510225.lua
expansions/script/c47510225.lua
+151
-151
expansions/script/c60150642.lua
expansions/script/c60150642.lua
+1
-1
expansions/script/c60152304.lua
expansions/script/c60152304.lua
+68
-68
expansions/script/c65020024.lua
expansions/script/c65020024.lua
+1
-1
expansions/script/c81041028.lua
expansions/script/c81041028.lua
+1
-0
No files found.
expansions/222DIY.cdb
View file @
5c4da376
No preview for this file type
expansions/script/c10221022.lua
View file @
5c4da376
...
...
@@ -23,6 +23,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -50,7 +51,9 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
end
function
cm
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5a1
)
end
...
...
expansions/script/c14000022.lua
View file @
5c4da376
...
...
@@ -74,7 +74,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
expansions/script/c16001012.lua
View file @
5c4da376
...
...
@@ -77,7 +77,7 @@ function c16001012.con(e,tp,eg,ep,ev,re,r,rp)
if
not
re
then
return
end
local
c
,
rc
=
e
:
GetHandler
(),
re
:
GetHandler
()
return
c
:
IsReason
(
REASON_COST
)
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsSetCard
(
0x5c1
)
and
rc
:
IsType
(
TYPE_XYZ
)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
and
rc
:
IsSetCard
(
0x5c1
)
and
rc
:
IsType
(
TYPE_XYZ
)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
and
Duel
.
IsAbleToEnterBP
()
end
function
c16001012
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c18006010.lua
View file @
5c4da376
...
...
@@ -41,7 +41,7 @@ function cm.thop(e,tp)
end
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
():
GetColumnGroup
():
IsContains
(
e
:
GetHandler
())
return
eg
:
GetFirst
():
GetColumnGroup
():
IsContains
(
e
:
GetHandler
())
and
Duel
.
IsAbleToEnterBP
()
end
function
cm
.
drop
(
e
,
tp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
...
...
expansions/script/c21520186.lua
View file @
5c4da376
...
...
@@ -48,7 +48,7 @@ function c21520186.dafilter1(c)
return
c
:
IsSetCard
(
0x490
)
and
c
:
IsFaceup
()
end
function
c21520186
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetType
()
&
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
==
TYPE_SPELL
+
TYPE_CONTINUOUS
return
e
:
GetHandler
():
GetType
()
&
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
Duel
.
IsAbleToEnterBP
()
end
function
c21520186
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c21520186
.
dafilter1
(
chkc
)
end
...
...
expansions/script/c22600107.lua
View file @
5c4da376
...
...
@@ -49,7 +49,7 @@ function cm.filter(c)
return
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
and
Duel
.
IsAbleToEnterBP
(
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
3
,
REASON_COST
)
...
...
expansions/script/c33310152.lua
View file @
5c4da376
...
...
@@ -51,7 +51,7 @@ function c33310152.tgfil(c)
end
function
c33310152
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c33310152
.
tgfil
(
chkc
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c33310152
.
tgfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c33310152
.
tgfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
SelectTarget
(
tp
,
c33310152
.
tgfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c33310152
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33400101.lua
View file @
5c4da376
...
...
@@ -14,7 +14,7 @@ function c33400101.initial_effect(c)
end
function
c33400101
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
e
:
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x34f
,
ct
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x34f
,
ct
,
REASON_COST
)
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x34f
,
ct
,
REASON_COST
)
end
...
...
expansions/script/c33400311.lua
View file @
5c4da376
expansions/script/c33700723.lua
View file @
5c4da376
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
rsneov
.
LPChangeFun
(
c
)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
Duel
.
IsAbleToEnterBP
()
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c47500104.lua
View file @
5c4da376
...
...
@@ -21,6 +21,7 @@ function c47500104.initial_effect(c)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
,
47500104
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCondition
(
c47500104
.
dacon
)
e2
:
SetOperation
(
c47500104
.
csop
)
c
:
RegisterEffect
(
e2
)
--damage
...
...
@@ -63,6 +64,9 @@ end
function
c47500104
.
psplimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
c47500104
.
pefilter
(
c
)
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
function
c47500104
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
end
function
c47500104
.
csop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c47510028.lua
View file @
5c4da376
...
...
@@ -98,7 +98,7 @@ function c47510028.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c47510028
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c47510028
.
filter
(
c
)
...
...
expansions/script/c47510203.lua
View file @
5c4da376
...
...
@@ -59,7 +59,7 @@ function c47510203.splimit(e,c)
return
not
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
end
function
c47510203
.
mcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
()
end
if
chk
==
0
then
return
e
:
GetHandler
()
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
SendtoExtraP
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
end
function
c47510203
.
mtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c47510209.lua
View file @
5c4da376
...
...
@@ -64,7 +64,7 @@ function c47510209.splimit(e,c)
return
not
(
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
c
:
IsAttribute
(
ATTRIBUTE_DARK
))
end
function
c47510209
.
mcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
()
end
if
chk
==
0
then
return
e
:
GetHandler
()
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
SendtoExtraP
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
end
function
c47510209
.
mfilter
(
c
)
...
...
expansions/script/c47510225.lua
View file @
5c4da376
...
...
@@ -117,7 +117,7 @@ function c47510225.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c47510225
.
dacon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
47510225
)
==
0
return
e
:
GetHandler
():
GetFlagEffect
(
47510225
)
==
0
and
Duel
.
IsAbleToEnterBP
()
end
function
c47510225
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEffectCount
(
EFFECT_EXTRA_ATTACK
)
==
0
end
...
...
expansions/script/c60150642.lua
View file @
5c4da376
...
...
@@ -26,7 +26,7 @@ function c60150642.filter(c)
end
function
c60150642
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c60150642
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60150642
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60150642
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60150642
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
...
...
expansions/script/c60152304.lua
View file @
5c4da376
...
...
@@ -48,7 +48,7 @@ function c60152304.e1tgfilter(c)
end
function
c60152304
.
e1tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60152304
.
e1tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsAbleToEnterBP
(
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c65020024.lua
View file @
5c4da376
...
...
@@ -43,7 +43,7 @@ function c65020024.filter(c)
end
function
c65020024
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c65020024
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65020024
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c65020024
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsAbleToEnterBP
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c65020024
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c81041028.lua
View file @
5c4da376
...
...
@@ -21,6 +21,7 @@ function c81041028.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
81041928
)
e2
:
SetCondition
(
aux
.
bpcon
)
e2
:
SetTarget
(
c81041028
.
atktg
)
e2
:
SetOperation
(
c81041028
.
atkop
)
c
:
RegisterEffect
(
e2
)
...
...
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