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
24508008
Commit
24508008
authored
Sep 15, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mopemope
parent
a387ffc8
Pipeline
#734
failed with stages
in 23 minutes and 27 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
7 deletions
+71
-7
expansions/script/c26818021.lua
expansions/script/c26818021.lua
+12
-3
expansions/script/c26818022.lua
expansions/script/c26818022.lua
+13
-0
expansions/script/c26818023.lua
expansions/script/c26818023.lua
+20
-0
expansions/script/c26818036.lua
expansions/script/c26818036.lua
+13
-0
expansions/script/c26818051.lua
expansions/script/c26818051.lua
+13
-4
No files found.
expansions/script/c26818021.lua
View file @
24508008
...
...
@@ -29,10 +29,16 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetCondition
(
cm
.
spcon1
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCode
(
26818000
,
26818001
)
and
c
:
IsAbleToHand
()
...
...
@@ -67,8 +73,11 @@ end
function
cm
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
26818000
,
26818001
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
filter
(
c
,
e
,
sp
)
return
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
...
...
expansions/script/c26818022.lua
View file @
24508008
...
...
@@ -27,10 +27,17 @@ function cm.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
spcon1
)
e3
:
SetCost
(
cm
.
thcost
)
e3
:
SetTarget
(
cm
.
thtg
)
e3
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e4
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
tsfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
aux
.
IsCodeListed
(
c
,
26818000
)
or
aux
.
IsCodeListed
(
c
,
26818001
))
and
c
:
IsLevel
(
3
)
and
c
:
IsAbleToHand
()
...
...
@@ -45,6 +52,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
...
...
expansions/script/c26818023.lua
View file @
24508008
...
...
@@ -18,9 +18,16 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
spcon1
)
e2
:
SetTarget
(
cm
.
destg
)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
local
e4
=
e2
:
Clone
()
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e4
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e4
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
...
...
@@ -29,9 +36,16 @@ function cm.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
spcon1
)
e3
:
SetTarget
(
cm
.
tgtg
)
e3
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e3
)
local
e7
=
e3
:
Clone
()
e7
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e7
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e7
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e7
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
3
)
and
(
aux
.
IsCodeListed
(
c
,
26818000
)
or
aux
.
IsCodeListed
(
c
,
26818001
))
and
(
c
:
IsAbleToHand
()
or
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
...
...
@@ -67,6 +81,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevel
(
3
)
end
...
...
expansions/script/c26818036.lua
View file @
24508008
...
...
@@ -28,9 +28,16 @@ function cm.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
spcon1
)
e3
:
SetTarget
(
cm
.
target
)
e3
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e4
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
tsfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
aux
.
IsCodeListed
(
c
,
26818000
)
or
aux
.
IsCodeListed
(
c
,
26818001
))
and
c
:
IsAbleToHand
()
...
...
@@ -76,6 +83,12 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
end
end
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevel
(
3
)
and
(
aux
.
IsCodeListed
(
c
,
26818000
)
or
aux
.
IsCodeListed
(
c
,
26818001
))
end
...
...
expansions/script/c26818051.lua
View file @
24508008
...
...
@@ -15,10 +15,16 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCo
st
(
cm
.
thcon
)
e3
:
SetCo
ndition
(
cm
.
spcon1
)
e3
:
SetTarget
(
cm
.
thtg
)
e3
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e4
:
SetCondition
(
cm
.
spcon2
)
c
:
RegisterEffect
(
e4
)
--Special Summon
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -71,12 +77,15 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
end
end
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
ffilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
ffilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26818065
)
end
function
cm
.
ffilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevel
(
9
)
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
ffilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsLevel
(
3
)
and
c
:
IsAbleToHand
()
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