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
b4418ed3
Commit
b4418ed3
authored
Aug 27, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wadashimo
parent
8881fdf3
Pipeline
#640
passed with stages
in 40 minutes and 35 seconds
Changes
8
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
51 additions
and
32 deletions
+51
-32
expansions/script/c12004023.lua
expansions/script/c12004023.lua
+3
-1
expansions/script/c12008010.lua
expansions/script/c12008010.lua
+1
-0
expansions/script/c12008020.lua
expansions/script/c12008020.lua
+1
-3
expansions/script/c12026020.lua
expansions/script/c12026020.lua
+3
-3
expansions/script/c16200000.lua
expansions/script/c16200000.lua
+1
-1
expansions/script/c33330100.lua
expansions/script/c33330100.lua
+3
-3
expansions/script/c81005016.lua
expansions/script/c81005016.lua
+20
-10
expansions/script/c81005021.lua
expansions/script/c81005021.lua
+19
-11
No files found.
expansions/script/c12004023.lua
View file @
b4418ed3
...
...
@@ -98,8 +98,10 @@ function c12004023.fsfilter2(c)
end
function
c12004023
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
local
g
=
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c12004023
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c12008010.lua
View file @
b4418ed3
...
...
@@ -73,6 +73,7 @@ function c12008010.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12008010
.
spfilter
(
c
,
e
,
tp
)
if
not
c
:
GetReasonEffect
()
then
return
false
end
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonEffect
():
GetHandler
():
IsSetCard
(
0x1fb3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c12008010
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c12008020.lua
View file @
b4418ed3
...
...
@@ -121,9 +121,7 @@ function c12008020.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12008020
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
99
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
SetChainLimit
(
c12008020
.
chainlimit
)
end
end
function
c12008020
.
chainlimit
(
e
,
rp
,
tp
)
return
tp
==
rp
or
not
(
e
:
GetHandler
():
IsFacedown
()
and
e
:
GetHandler
():
IsOnField
())
...
...
expansions/script/c12026020.lua
View file @
b4418ed3
...
...
@@ -6,7 +6,7 @@ function c12026020.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
1202602
1
)
e1
:
SetCountLimit
(
1
,
1202602
0
)
e1
:
SetCondition
(
c12026020
.
descon
)
e1
:
SetTarget
(
c12026020
.
target
)
e1
:
SetOperation
(
c12026020
.
activate
)
...
...
@@ -18,7 +18,7 @@ function c12026020.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetCountLimit
(
1
,
1202602
1
+
100
)
e2
:
SetCountLimit
(
1
,
1202602
0
+
100
)
e2
:
SetTarget
(
c12026020
.
rmtg
)
e2
:
SetOperation
(
c12026020
.
rmop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -92,7 +92,7 @@ function c12026020.rmop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
if
e
:
GetLabel
()
==
1
and
Duel
.
IsExisting
Target
(
c12026020
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12026020
,
2
))
then
if
e
:
GetLabel
()
==
1
and
Duel
.
IsExisting
MatchingCard
(
c12026020
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12026020
,
2
))
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12026020
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
c
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
expansions/script/c16200000.lua
View file @
b4418ed3
...
...
@@ -117,5 +117,5 @@ function c16200000.chop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16200000
.
chfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
Duel
.
GetControl
(
tc
,
tp
)
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
end
\ No newline at end of file
expansions/script/c33330100.lua
View file @
b4418ed3
...
...
@@ -3,18 +3,18 @@ if not pcall(function() require("expansions/script/c10199990") end) then require
local
m
,
cm
=
rscf
.
DefineCard
(
33330100
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
)
local
e2
=
rsef
.
QO
(
c
,
nil
,{
m
,
0
},
1
,
"sp"
,
nil
,
LOCATION_SZONE
,
nil
,
rscost
.
cost
(
cm
.
cfilter
,
"tg"
,
LOCATION_
MZONE
,
0
,
true
),
rsop
.
target
(
rscf
.
spfilter2
(
Card
.
IsSetCard
,
0x550
),
"sp"
,
LOCATION_EXTRA
),
cm
.
spop
)
local
e2
=
rsef
.
QO
(
c
,
nil
,{
m
,
0
},
1
,
"sp"
,
nil
,
LOCATION_SZONE
,
nil
,
rscost
.
cost
(
cm
.
cfilter
,
"tg"
,
LOCATION_
ONFIELD
,
0
,
true
,
true
,
c
),
rsop
.
target
(
rscf
.
spfilter2
(
Card
.
IsSetCard
,
0x550
),
"sp"
,
LOCATION_EXTRA
),
cm
.
spop
)
local
e3
=
rsef
.
QO
(
c
,
nil
,{
m
,
1
},
nil
,
"se,th,td,ga"
,
nil
,
LOCATION_GRAVE
,
nil
,
aux
.
bfgcost
,
rsop
.
target
(
cm
.
thfilter
,
"th"
,
LOCATION_DECK
),
cm
.
thop
)
end
function
cm
.
cfilter
(
c
,
e
,
tp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
0
)
return
#
g
==
g
:
FilterCount
(
Card
.
IsAbleToGraveAsCost
,
e
:
GetHandler
()
)
return
#
g
==
g
:
FilterCount
(
Card
.
IsAbleToGraveAsCost
,
nil
)
end
function
cm
.
spop
(
e
,
tp
)
if
aux
.
ExceptThisCard
(
e
)
then
rsop
.
SelectSpecialSummon
(
tp
,
rscf
.
spfilter2
(
Card
.
IsSetCard
,
0x550
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,{},
e
,
tp
)
end
local
e1
=
rsef
.
FV_LIMIT_PLAYER
({
e
:
GetHandler
(),
tp
},
"sp"
,
nil
,
aux
.
TargetBoolFunction
(
Card
.
Is
Type
,
TYPE_MONSTER
),{
1
,
0
},
nil
,
rsreset
.
pend
)
local
e1
=
rsef
.
FV_LIMIT_PLAYER
({
e
:
GetHandler
(),
tp
},
"sp"
,
nil
,
aux
.
TargetBoolFunction
(
Card
.
Is
Location
,
LOCATION_EXTRA
),{
1
,
0
},
nil
,
rsreset
.
pend
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x550
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c81005016.lua
View file @
b4418ed3
...
...
@@ -4,7 +4,6 @@ local cm=_G["c"..m]
xpcall
(
function
()
require
(
"expansions/script/c1110198"
)
end
,
function
()
require
(
"script/c1110198"
)
end
)
cm
.
named_with_Urban
=
true
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
81011027
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
...
...
@@ -46,10 +45,17 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
cm
.
desop
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
cm
.
checkop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetOperation
(
cm
.
desop
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
...
@@ -74,6 +80,8 @@ function cm.tfop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tffilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
0
)
e
:
GetHandler
():
SetCardTarget
(
tc
)
if
not
(
muxu
.
check_set_Soul
(
tc
)
or
muxu
.
check_set_Urban
(
tc
))
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -132,13 +140,15 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
eg
,
REASON_EFFECT
)
end
end
function
cm
.
desfilter
(
c
,
rc
)
return
rc
:
GetCardTarget
():
IsContains
(
c
)
and
rc
:
GetFlagEffect
(
m
)
>
0
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetCardTargetCount
()
>
0
then
local
dg
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
c
)
Duel
.
Remove
(
dg
,
POS_FACEDOWN
,
REASON_EFFECT
)
if
e
:
GetLabelObject
():
GetLabel
()
~=
0
then
return
end
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_SZONE
)
then
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
expansions/script/c81005021.lua
View file @
b4418ed3
...
...
@@ -4,7 +4,6 @@ local cm=_G["c"..m]
xpcall
(
function
()
require
(
"expansions/script/c1110198"
)
end
,
function
()
require
(
"script/c1110198"
)
end
)
cm
.
named_with_Urban
=
true
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
81011027
)
--code
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -37,13 +36,20 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
cm
.
desop
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
cm
.
checkop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetOperation
(
cm
.
desop
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
tffilter
(
c
,
tp
)
return
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
(
muxu
.
check_set_Soul
(
tc
)
or
muxu
.
check_set_Urban
(
t
c
))
and
not
c
:
IsForbidden
()
and
not
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
c
:
GetCode
())
return
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
(
muxu
.
check_set_Soul
(
c
)
or
muxu
.
check_set_Urban
(
c
))
and
not
c
:
IsForbidden
()
and
not
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
cm
.
dfilter
(
c
,
code
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
code
)
...
...
@@ -63,14 +69,16 @@ function cm.tfop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
SetCardTarget
(
tc
)
end
end
function
cm
.
desfilter
(
c
,
rc
)
return
rc
:
GetCardTarget
():
IsContains
(
c
)
and
rc
:
GetFlagEffect
(
m
)
>
0
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetCardTargetCount
()
>
0
then
local
dg
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
c
)
Duel
.
SendtoHand
(
dg
,
nil
,
REASON_EFFECT
)
if
e
:
GetLabelObject
():
GetLabel
()
~=
0
then
return
end
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_SZONE
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
end
function
cm
.
filter
(
c
)
...
...
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