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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
e7efc73f
Commit
e7efc73f
authored
Oct 18, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
82a0f83f
Pipeline
#6305
passed with stages
in 32 minutes and 46 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
23 deletions
+24
-23
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c10071121.lua
expansions/script/c10071121.lua
+1
-0
expansions/script/c10071211.lua
expansions/script/c10071211.lua
+8
-8
expansions/script/c10071221.lua
expansions/script/c10071221.lua
+8
-8
expansions/script/c10071231.lua
expansions/script/c10071231.lua
+4
-4
expansions/script/c10071291.lua
expansions/script/c10071291.lua
+2
-2
expansions/script/c33200421.lua
expansions/script/c33200421.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
e7efc73f
No preview for this file type
expansions/script/c10071121.lua
View file @
e7efc73f
...
...
@@ -16,6 +16,7 @@ function cm.initial_effect(c)
--tograve
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
expansions/script/c10071211.lua
View file @
e7efc73f
...
...
@@ -3,7 +3,7 @@ local m=10071211
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableCounterPermit
(
0x
6500
,
LOCATION_MZONE
)
c
:
EnableCounterPermit
(
0x
50b
,
LOCATION_MZONE
)
--changecode
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -61,19 +61,19 @@ function cm.countercost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
counterfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9501
)
and
c
:
IsCanAddCounter
(
0x
6500
,
2
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9501
)
and
c
:
IsCanAddCounter
(
0x
50b
,
2
)
end
function
cm
.
countertg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
cm
.
counterfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
6500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
50b
)
end
function
cm
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x
6500
,
2
)
tc
:
AddCounter
(
0x
50b
,
2
)
end
end
--to gave
...
...
@@ -95,8 +95,8 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
--Destroy
function
cm
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
@@ -114,7 +114,7 @@ end
--set counter
function
cm
.
countercon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetCounter
(
0x
6500
)
>
0
return
c
:
GetCounter
(
0x
50b
)
>
0
end
function
cm
.
countertg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
@@ -126,6 +126,6 @@ function cm.counterop2(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
.
GetFirstTarget
()
tc
:
AddCounter
(
0x
6500
,
c
:
GetCounter
(
0x6500
))
tc
:
AddCounter
(
0x
50b
,
c
:
GetCounter
(
0x50b
))
end
end
expansions/script/c10071221.lua
View file @
e7efc73f
...
...
@@ -3,7 +3,7 @@ local m=10071221
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableCounterPermit
(
0x
6500
,
LOCATION_MZONE
)
c
:
EnableCounterPermit
(
0x
50b
,
LOCATION_MZONE
)
--changecode
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -61,19 +61,19 @@ function cm.countercost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
counterfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9501
)
and
c
:
IsCanAddCounter
(
0x
6500
,
2
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9501
)
and
c
:
IsCanAddCounter
(
0x
50b
,
2
)
end
function
cm
.
countertg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
cm
.
counterfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
6500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
50b
)
end
function
cm
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x
6500
,
2
)
tc
:
AddCounter
(
0x
50b
,
2
)
end
end
--Search
...
...
@@ -98,8 +98,8 @@ function cm.shop(e,tp,eg,ep,ev,re,r,rp)
end
--disable
function
cm
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NegateAnyFilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
@@ -128,7 +128,7 @@ end
--set counter
function
cm
.
countercon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetCounter
(
0x
6500
)
>
0
return
c
:
GetCounter
(
0x
50b
)
>
0
end
function
cm
.
countertg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
@@ -140,6 +140,6 @@ function cm.counterop2(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
counterfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
.
GetFirstTarget
()
tc
:
AddCounter
(
0x
6500
,
c
:
GetCounter
(
0x6500
))
tc
:
AddCounter
(
0x
50b
,
c
:
GetCounter
(
0x50b
))
end
end
expansions/script/c10071231.lua
View file @
e7efc73f
...
...
@@ -3,7 +3,7 @@ local m=10071231
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableCounterPermit
(
0x
6500
,
LOCATION_MZONE
)
c
:
EnableCounterPermit
(
0x
50b
,
LOCATION_MZONE
)
--SpecialSummon limit
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -91,15 +91,15 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
--immune
function
cm
.
imcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetCounter
(
0x
6500
)
>
0
return
e
:
GetHandler
():
GetCounter
(
0x
50b
)
>
0
end
--NegateActivation
function
cm
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
6500
,
1
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
50b
,
1
,
REASON_COST
)
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
expansions/script/c10071291.lua
View file @
e7efc73f
...
...
@@ -30,11 +30,11 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
6500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x
50b
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x
6500
,
2
)
tc
:
AddCounter
(
0x
50b
,
2
)
end
end
expansions/script/c33200421.lua
View file @
e7efc73f
...
...
@@ -82,7 +82,7 @@ function c33200421.rmfilter(c)
return
c
:
IsAbleToRemove
()
end
function
c33200421
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c33200421
.
chfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c33200421
.
chfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
()
)
end
function
c33200421
.
chtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33200421
.
rmfilter
,
rp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
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