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
85459acc
Commit
85459acc
authored
Jun 14, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1145141919810
parent
e08c09c8
Pipeline
#13579
passed with stages
in 32 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
13 deletions
+55
-13
expansions/script/c17032430.lua
expansions/script/c17032430.lua
+50
-11
expansions/script/c71400032.lua
expansions/script/c71400032.lua
+5
-2
No files found.
expansions/script/c17032430.lua
View file @
85459acc
...
@@ -7,8 +7,8 @@ function c17032430.initial_effect(c)
...
@@ -7,8 +7,8 @@ function c17032430.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCondition
(
c17032430
.
fscondition
)
e1
:
SetCondition
(
c17032430
.
fscondition
()
)
e1
:
SetOperation
(
c17032430
.
fsoperation
)
e1
:
SetOperation
(
c17032430
.
fsoperation
()
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--summon success
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -27,16 +27,55 @@ function c17032430.initial_effect(c)
...
@@ -27,16 +27,55 @@ function c17032430.initial_effect(c)
e3
:
SetOperation
(
c17032430
.
ctop
)
e3
:
SetOperation
(
c17032430
.
ctop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c17032430
.
fscondition
(
e
,
g
,
gc
)
function
c17032430
.
fscondition
()
local
c
=
e
:
GetHandler
()
return
function
(
e
,
g
,
gc
,
chkf
)
if
g
==
nil
then
return
true
end
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
if
gc
then
return
false
end
local
c
=
e
:
GetHandler
()
return
g
:
IsExists
(
Card
.
IsCanBeFusionMaterial
,
3
,
nil
,
c
,
c
)
and
g
:
GetClassCount
(
Card
.
GetRace
)
==
g
:
GetCount
()
local
mg
=
g
:
Filter
(
Card
.
IsCanBeFusionMaterial
,
nil
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
return
mg
:
GetClassCount
(
Card
.
GetRace
)
>=
3
end
end
function
c17032430
.
racefilter
(
c
,
sg
,
fc
)
return
not
sg
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
c
:
GetRace
())
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
fc
)
>
0
end
end
function
c17032430
.
fsoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
)
function
c17032430
.
fsoperation
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
local
g
=
eg
:
FilterSelect
(
tp
,
Card
.
IsCanBeFusionMaterial
,
3
,
63
,
nil
,
c
,
c
)
local
c
=
e
:
GetHandler
()
Duel
.
SetFusionMaterial
(
g
)
local
mg
=
eg
:
Filter
(
Card
.
IsCanBeFusionMaterial
,
nil
,
c
)
if
mg
:
GetClassCount
(
Card
.
GetRace
)
<
3
then
return
end
local
sg
=
Group
.
CreateGroup
()
if
gc
then
sg
:
AddCard
(
gc
)
end
while
sg
:
GetCount
()
<
3
do
local
cg
=
mg
:
Filter
(
c17032430
.
racefilter
,
nil
,
sg
,
c
)
if
cg
:
GetCount
()
==
0
then
break
end
local
cancel_group
=
sg
:
Clone
()
if
gc
then
cancel_group
:
RemoveCard
(
gc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
tc
=
cg
:
SelectUnselect
(
cancel_group
,
tp
,
false
,
false
,
3
,
63
)
if
not
tc
then
break
end
if
sg
:
IsContains
(
tc
)
then
sg
:
RemoveCard
(
tc
)
else
sg
:
AddCard
(
tc
)
end
end
while
sg
:
GetCount
()
<
63
do
local
cg
=
mg
:
Filter
(
c17032430
.
racefilter
,
nil
,
sg
,
c
)
if
cg
:
GetCount
()
==
0
then
break
end
local
cancel_group
=
sg
:
Clone
()
if
gc
then
cancel_group
:
RemoveCard
(
gc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
tc
=
cg
:
SelectUnselect
(
cancel_group
,
tp
,
true
,
false
,
3
,
63
)
if
not
tc
then
break
end
if
sg
:
IsContains
(
tc
)
then
sg
:
RemoveCard
(
tc
)
else
sg
:
AddCard
(
tc
)
end
end
Duel
.
SetFusionMaterial
(
sg
)
end
end
end
function
c17032430
.
matcheck
(
e
,
c
)
function
c17032430
.
matcheck
(
e
,
c
)
...
...
expansions/script/c71400032.lua
View file @
85459acc
...
@@ -33,7 +33,7 @@ function c71400032.tg1(e,c)
...
@@ -33,7 +33,7 @@ function c71400032.tg1(e,c)
end
end
function
c71400032
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71400032
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
IsExistingMatchingCard
(
c71400032
.
filter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
4
,
nil
)
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
return
Duel
.
IsExistingMatchingCard
(
c71400032
.
filter2
con
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
4
,
nil
)
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
end
end
function
c71400032
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c71400032
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c71400032
.
filter2
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c71400032
.
filter2
(
chkc
)
end
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
c71400032
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71400032
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -69,6 +69,9 @@ end
...
@@ -69,6 +69,9 @@ end
function
c71400032
.
filter2
(
c
)
function
c71400032
.
filter2
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
aux
.
NegateMonsterFilter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
aux
.
NegateMonsterFilter
(
c
)
end
end
function
c71400032
.
filter2con
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
end
function
c71400032
.
filter2a
(
c
)
function
c71400032
.
filter2a
(
c
)
return
c
:
IsSetCard
(
0xd714
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xd714
)
and
c
:
IsAbleToHand
()
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