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
7079d436
Commit
7079d436
authored
Oct 25, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lbw
parent
aa6ab354
Pipeline
#959
passed with stages
in 46 minutes and 45 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
77 additions
and
22 deletions
+77
-22
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12013055.lua
expansions/script/c12013055.lua
+1
-1
expansions/script/c12045011.lua
expansions/script/c12045011.lua
+2
-2
expansions/script/c12045012.lua
expansions/script/c12045012.lua
+2
-1
expansions/script/c12045013.lua
expansions/script/c12045013.lua
+3
-0
expansions/script/c12045020.lua
expansions/script/c12045020.lua
+6
-4
expansions/script/c12045021.lua
expansions/script/c12045021.lua
+0
-4
expansions/script/c12045030.lua
expansions/script/c12045030.lua
+3
-3
expansions/script/c12045040.lua
expansions/script/c12045040.lua
+6
-5
expansions/script/c17061440.lua
expansions/script/c17061440.lua
+54
-2
No files found.
expansions/222DIY.cdb
View file @
7079d436
No preview for this file type
expansions/script/c12013055.lua
View file @
7079d436
...
...
@@ -102,7 +102,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
end
function
cm
.
th
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
sp
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
end
function
cm
.
thfilter
(
c
,
tp
)
...
...
expansions/script/c12045011.lua
View file @
7079d436
...
...
@@ -36,10 +36,10 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0x3fad
)
and
c
:
Is
Type
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x3fad
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3fad
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
or
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
)
end
...
...
expansions/script/c12045012.lua
View file @
7079d436
...
...
@@ -3,7 +3,8 @@ local m=12045012
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableCounterPermit
(
0x1
)
--Pendulum Summon
c
:
EnableCounterPermit
(
0x1
,
LOCATION_PZONE
+
LOCATION_MZONE
)
--destroy & summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
expansions/script/c12045013.lua
View file @
7079d436
...
...
@@ -47,6 +47,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetCategory
(
CATEGORY_TOEXTRA
)
end
end
function
cm
.
filter1
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsType
(
TYPE_PENDULUM
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
...
...
expansions/script/c12045020.lua
View file @
7079d436
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
atkcon
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--disable special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e2
:
SetCost
(
cm
.
discost
)
e2
:
SetTarget
(
cm
.
distg
)
e2
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--inactivatable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
function
(
e
,
ct
)
local
te
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
return
te
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
GetCounter
(
0x1
)
>
0
and
tc
:
IsLocation
(
LOCATION_ONFIELD
)
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
GetCounter
(
0x1
)
>
0
and
tc
:
IsLocation
(
LOCATION_ONFIELD
)
end
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -76,11 +76,13 @@ function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_COST
)
e
:
GetLabel
(
tt
)
end
function
cm
.
filter
(
c
)
return
c
:
IsCanAddCounter
(
0x1
,
1
)
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
...
...
expansions/script/c12045021.lua
View file @
7079d436
...
...
@@ -28,7 +28,6 @@ function cm.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCountLimit
(
1
,
m
)
e3
:
SetCondition
(
cm
.
thcon
)
e3
:
SetTarget
(
cm
.
thtg
)
e3
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -68,9 +67,6 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
c
:
AddCounter
(
0x1
,
lv
)
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x3fad
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
...
...
expansions/script/c12045030.lua
View file @
7079d436
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
e3
:
SetCondition
(
cm
.
thcon1
)
e3
:
SetTarget
(
cm
.
thtg1
)
e3
:
SetOperation
(
cm
.
thop1
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
3
)
--counter2
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -74,7 +74,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
c
:
AddCounter
(
0x1
,
ct
)
end
end
function
cm
.
cfilter
(
c
,
ec
)
function
cm
.
cfilter
1
(
c
,
ec
)
if
not
c
:
IsRace
(
RACE_SPELLCASTER
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
ec
:
GetLinkedGroup
():
IsContains
(
c
)
...
...
@@ -83,7 +83,7 @@ function cm.cfilter(c,ec)
end
end
function
cm
.
thcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
e
:
GetHandler
())
return
eg
:
IsExists
(
cm
.
cfilter
1
,
1
,
nil
,
e
:
GetHandler
())
end
function
cm
.
filter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsType
(
TYPE_PENDULUM
)
...
...
expansions/script/c12045040.lua
View file @
7079d436
...
...
@@ -49,8 +49,8 @@ end
function
cm
.
nmfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
dfilter
(
c
)
return
c
:
IsAbleToDeck
()
and
Duel
.
IsExistingTarget
(
cm
.
nmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
:
GetCode
())
function
cm
.
dfilter
(
c
,
mc
)
return
c
:
IsAbleToDeck
()
and
Duel
.
IsExistingTarget
(
cm
.
nmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
Group
.
FromCards
(
c
,
mc
)
,
c
:
GetCode
())
end
function
cm
.
gilter
(
g
)
return
not
aux
.
dncheck
(
g
)
...
...
@@ -59,10 +59,11 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
dfilter
(
chkc
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
c
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
and
Duel
.
IsExistingTarget
(
cm
.
dfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
0
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tt
=
g
:
SelectTarget
(
tp
,
cm
.
gilter
,
2
,
2
,
nil
)
local
tt
=
g
:
SelectSubGroup
(
tp
,
cm
.
gilter
,
true
,
2
,
2
)
Duel
.
SetTargetCard
(
tt
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
3
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
end
...
...
expansions/script/c17061440.lua
View file @
7079d436
--梅杜希亚娜
function
c17061430
.
initial_effect
(
c
)
local
m
=
17061440
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon limit
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
c
:
RegisterEffect
(
ea
)
local
eb
=
ea
:
Clone
()
eb
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
eb
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
--attack twice
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
e4
:
SetValue
(
2
)
c
:
RegisterEffect
(
e4
)
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
e
:
SetLabelObject
(
bc
)
return
bc
and
bc
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
bc
:
IsRelateToBattle
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabelObject
():
IsAbleToRemove
()
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
e
:
GetLabelObject
(),
1
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
and
bc
:
IsControler
(
1
-
tp
)
then
Duel
.
Destroy
(
bc
,
REASON_EFFECT
)
end
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