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
ddbde5d5
Commit
ddbde5d5
authored
Jun 17, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iidx goooooooooooooooold
parent
d6977a84
Pipeline
#144
failed with stages
in 27 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
expansions/script/c81010033.lua
expansions/script/c81010033.lua
+27
-27
No files found.
expansions/script/c81010033.lua
View file @
ddbde5d5
--幸福论诞生
--幸福论诞生
function
c810100
57
.
initial_effect
(
c
)
function
c810100
33
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c810100
57
.
cost
)
e1
:
SetCost
(
c810100
33
.
cost
)
e1
:
SetTarget
(
c810100
57
.
target
)
e1
:
SetTarget
(
c810100
33
.
target
)
e1
:
SetOperation
(
c810100
57
.
activate
)
e1
:
SetOperation
(
c810100
33
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
AddCustomActivityCounter
(
810100
57
,
ACTIVITY_SUMMON
,
c81010057
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
33
,
ACTIVITY_SUMMON
,
c81010033
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
57
,
ACTIVITY_SPSUMMON
,
c81010057
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
33
,
ACTIVITY_SPSUMMON
,
c81010033
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
57
,
ACTIVITY_FLIPSUMMON
,
c81010057
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
33
,
ACTIVITY_FLIPSUMMON
,
c81010033
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
810100
57
,
ACTIVITY_CHAIN
,
c81010057
.
chainfilter
)
Duel
.
AddCustomActivityCounter
(
810100
33
,
ACTIVITY_CHAIN
,
c81010033
.
chainfilter
)
end
end
function
c810100
57
.
chainfilter
(
re
,
tp
)
function
c810100
33
.
chainfilter
(
re
,
tp
)
return
not
re
:
IsActiveType
(
TYPE_MONSTER
)
return
not
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c810100
57
.
counterfilter
(
c
)
function
c810100
33
.
counterfilter
(
c
)
return
not
c
:
IsType
(
TYPE_EFFECT
)
return
not
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c810100
57
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c810100
33
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
810100
57
,
tp
,
ACTIVITY_SUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
810100
33
,
tp
,
ACTIVITY_SUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
810100
57
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
810100
33
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
810100
57
,
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
81010057
,
tp
,
ACTIVITY_CHAIN
)
==
0
end
and
Duel
.
GetCustomActivityCount
(
810100
33
,
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
81010033
,
tp
,
ACTIVITY_CHAIN
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c810100
57
.
sumlimit
)
e1
:
SetTarget
(
c810100
33
.
sumlimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
...
@@ -44,38 +44,38 @@ function c81010057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,38 +44,38 @@ function c81010057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetValue
(
c810100
57
.
aclimit
)
e4
:
SetValue
(
c810100
33
.
aclimit
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
function
c810100
57
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c810100
33
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c810100
57
.
aclimit
(
e
,
re
,
tp
)
function
c810100
33
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c810100
57
.
tgfilter
(
c
,
e
,
tp
)
function
c810100
33
.
tgfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
8
)
and
c
:
IsCanBeFusionMaterial
()
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
8
)
and
c
:
IsCanBeFusionMaterial
()
and
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
and
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
c810100
57
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c810100
33
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
end
function
c810100
57
.
spfilter
(
c
,
e
,
tp
,
tc
)
function
c810100
33
.
spfilter
(
c
,
e
,
tp
,
tc
)
return
aux
.
IsMaterialListCode
(
c
,
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
return
aux
.
IsMaterialListCode
(
c
,
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
tc
,
c
)
>
0
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
tc
,
c
)
>
0
end
end
function
c810100
57
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c810100
33
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
==
0
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c810100
57
.
tgfilter
(
chkc
,
e
,
tp
)
end
if
chkc
==
0
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c810100
33
.
tgfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c810100
57
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c810100
33
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c810100
57
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SelectTarget
(
tp
,
c810100
33
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c810100
57
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c810100
33
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
aux
.
MustMaterialCheck
(
tc
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
end
if
not
aux
.
MustMaterialCheck
(
tc
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeFusionMaterial
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeFusionMaterial
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c810100
57
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c810100
33
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
if
sc
then
if
sc
then
sc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
sc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
...
...
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