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
6e3d18c8
Commit
6e3d18c8
authored
Jul 04, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1145141919810
parent
fac24a3b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
31 deletions
+24
-31
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12044005.lua
expansions/script/c12044005.lua
+5
-5
expansions/script/c16104412.lua
expansions/script/c16104412.lua
+1
-1
expansions/script/c72411050.lua
expansions/script/c72411050.lua
+1
-1
expansions/script/c72411060.lua
expansions/script/c72411060.lua
+1
-1
expansions/script/c81066003.lua
expansions/script/c81066003.lua
+1
-1
expansions/script/c81066004.lua
expansions/script/c81066004.lua
+3
-2
expansions/script/c81066031.lua
expansions/script/c81066031.lua
+12
-20
No files found.
expansions/222DIY.cdb
View file @
6e3d18c8
No preview for this file type
expansions/script/c12044005.lua
View file @
6e3d18c8
...
...
@@ -45,24 +45,24 @@ function cm.initial_effect(c)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_S
PS
UMMON_SUCCESS
)
ge2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
cm
.
cfilter
(
c
,
set
)
function
cm
.
cfilter
1
(
c
,
set
)
return
c
:
IsSetCard
(
set
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
eg
then
return
end
local
sg
=
eg
:
Filter
(
cm
.
cfilter
,
nil
,
0xafaa
)
local
sg
=
eg
:
Filter
(
cm
.
cfilter
1
,
nil
,
0xafaa
)
if
#
sg
>
0
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
100
,
0
,
0
,
1
)
end
local
sg1
=
eg
:
Filter
(
cm
.
cfilter
,
nil
,
0x5fac
)
local
sg1
=
eg
:
Filter
(
cm
.
cfilter
1
,
nil
,
0x5fac
)
if
#
sg1
>
0
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
200
,
0
,
0
,
1
)
end
local
sg2
=
eg
:
Filter
(
cm
.
cfilter
,
nil
,
0x6fac
)
local
sg2
=
eg
:
Filter
(
cm
.
cfilter
1
,
nil
,
0x6fac
)
if
#
sg2
>
0
then
Duel
.
RegisterFlagEffect
(
tp
,
m
+
300
,
0
,
0
,
1
)
end
...
...
expansions/script/c16104412.lua
View file @
6e3d18c8
...
...
@@ -145,7 +145,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
--Effect 3
function
cm
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
1
-
tp
then
if
ep
==
tp
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
...
...
expansions/script/c72411050.lua
View file @
6e3d18c8
...
...
@@ -47,7 +47,7 @@ function c72411050.operation1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c72411050
.
filterb
(
c
,
e
,
tp
)
return
((
c
:
IsSetCard
(
0x5729
)
and
c
:
IsType
(
TYPE_SPELL
))
or
(
c
:
IsSetCard
(
0x5729
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
72413440
)))
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
((
c
:
IsSetCard
(
0x5729
)
and
c
:
IsType
(
TYPE_SPELL
))
or
(
c
:
GetType
()
==
TYPE_SPELL
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
72413440
)))
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c72411050
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
expansions/script/c72411060.lua
View file @
6e3d18c8
...
...
@@ -41,7 +41,7 @@ function c72411060.operation1(e,tp,eg,ep,ev,re,r,rp)
end
function
c72411060
.
cpfilter
(
c
,
exc
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
c
:
CheckActivateEffect
(
true
,
true
,
false
)
if
not
(
c
:
IsSetCard
(
0x5729
)
and
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
te
and
te
:
GetOperation
())
then
return
false
end
if
not
(
(
c
:
IsSetCard
(
0x5729
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
72413440
)
)
and
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
te
and
te
:
GetOperation
())
then
return
false
end
local
tg
=
te
:
GetTarget
()
return
(
not
tg
)
or
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
nil
,
exc
)
end
...
...
expansions/script/c81066003.lua
View file @
6e3d18c8
...
...
@@ -48,7 +48,7 @@ function cm.xyzfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x581f
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
matfilter
(
c
,
e
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
and
(
not
e
or
not
c
:
IsImmuneToEffect
(
e
))
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
Is
SetCard
(
0x581f
)
and
c
:
Is
CanOverlay
()
and
(
not
e
or
not
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
xyzfilter
(
chkc
)
end
...
...
expansions/script/c81066004.lua
View file @
6e3d18c8
...
...
@@ -39,8 +39,9 @@ function cm.rtgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
rtgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
+
REASON_RETURN
)
end
end
...
...
expansions/script/c81066031.lua
View file @
6e3d18c8
...
...
@@ -16,12 +16,11 @@ function cm.initial_effect(c)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
cm
.
thcon
)
e1
:
SetCost
(
cm
.
thcost
)
e1
:
SetTarget
(
cm
.
thtg
)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -35,16 +34,18 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
mttg
)
e3
:
SetOperation
(
cm
.
mtop
)
c
:
RegisterEffect
(
e3
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
function
cm
.
counterfilter
(
c
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
or
c
:
IsLevel
(
0
)
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x581f
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
...
...
@@ -53,18 +54,6 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsLevel
(
0
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x581f
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -72,6 +61,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsLevel
(
0
)
end
function
cm
.
mtfilter
(
c
)
return
c
:
IsSetCard
(
0x581f
)
and
c
:
IsCanOverlay
()
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