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
a7213ead
Commit
a7213ead
authored
Aug 21, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
d620e14b
Pipeline
#15956
passed with stages
in 29 minutes and 23 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
16 deletions
+37
-16
expansions/script/c10702075.lua
expansions/script/c10702075.lua
+11
-8
expansions/script/c10703061.lua
expansions/script/c10703061.lua
+1
-1
expansions/script/c33400810.lua
expansions/script/c33400810.lua
+1
-5
expansions/script/c33400903.lua
expansions/script/c33400903.lua
+1
-1
expansions/script/c33401324.lua
expansions/script/c33401324.lua
+1
-1
expansions/script/c33401630.lua
expansions/script/c33401630.lua
+22
-0
No files found.
expansions/script/c10702075.lua
View file @
a7213ead
...
...
@@ -19,13 +19,14 @@ function cm.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCondition
(
cm
.
pcon
)
e4
:
SetCondition
(
cm
.
s
pcon
)
e4
:
SetCountLimit
(
1
,
m
+
1
)
e4
:
SetTarget
(
cm
.
sptg
)
e4
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e4
)
--self spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -36,14 +37,13 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--spsummon success
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22923081
,
1
))
e2
:
SetCategory
(
CATEGORY_
COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_
TOGRAVE
+
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
cm
.
addcon
)
e2
:
SetTarget
(
cm
.
addtg
)
e2
:
SetOperation
(
cm
.
addop
)
e2
:
SetLabel
(
3
)
e2
:
SetCondition
(
cm
.
drcon
)
e2
:
SetTarget
(
cm
.
drtg
)
e2
:
SetOperation
(
cm
.
drop
)
c
:
RegisterEffect
(
e2
)
end
--tohand
...
...
@@ -66,6 +66,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
--SpecialSummon
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsSetCard
(
0x482
)
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
...
...
expansions/script/c10703061.lua
View file @
a7213ead
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
+
LOCATION_ONFIELD
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
IsRace
(
RACE_FAIRY
)
and
not
c
:
IsType
(
TYPE_FUSION
+
TYPE_XYZ
)
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
+
LOCATION_ONFIELD
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsRace
(
RACE_FAIRY
)
and
not
c
:
IsType
(
TYPE_FUSION
+
TYPE_XYZ
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
...
...
expansions/script/c33400810.lua
View file @
a7213ead
...
...
@@ -142,11 +142,7 @@ function cm.stop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
)
~=
0
then
local
sg
=
Duel
.
GetOperatedGroup
()
local
sc
=
sg
:
GetFirst
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
if
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
sc
:
IsSetCard
(
0xa341
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
expansions/script/c33400903.lua
View file @
a7213ead
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x341
,
0x340
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x341
,
0x340
)
and
c
:
IsType
(
TYPE_CONTINUOUS
+
TYPE_FIELD
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
...
...
expansions/script/c33401324.lua
View file @
a7213ead
...
...
@@ -88,7 +88,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
:
IsType
(
TYPE_RITUAL
)
then
Duel
.
SpecialSummon
(
tc
2
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
if
tc
:
IsType
(
TYPE_RITUAL
)
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
expansions/script/c33401630.lua
View file @
a7213ead
...
...
@@ -37,8 +37,30 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
fid
=
e
:
GetHandler
():
GetFieldID
()
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
cm
.
thcon
)
e1
:
SetOperation
(
cm
.
thop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffectLabel
(
m
)
~=
e
:
GetLabel
()
then
e
:
Reset
()
return
false
else
return
true
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetLabelObject
(),
nil
,
REASON_EFFECT
)
end
function
cm
.
filter0
(
c
)
return
c
:
IsAbleToRemove
()
...
...
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