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
df860ef4
Commit
df860ef4
authored
Mar 05, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
114514
parent
b60b3c0c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
126 additions
and
93 deletions
+126
-93
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12899012.lua
expansions/script/c12899012.lua
+2
-2
expansions/script/c12899017.lua
expansions/script/c12899017.lua
+45
-34
expansions/script/c12899018.lua
expansions/script/c12899018.lua
+16
-11
expansions/script/c12899019.lua
expansions/script/c12899019.lua
+24
-16
expansions/script/c12899020.lua
expansions/script/c12899020.lua
+16
-11
expansions/script/c12899021.lua
expansions/script/c12899021.lua
+23
-19
No files found.
expansions/222DIY.cdb
View file @
df860ef4
No preview for this file type
expansions/script/c12899012.lua
View file @
df860ef4
...
...
@@ -32,7 +32,7 @@ function cm.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
NOT_NEGATE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CAN
_FORBIDDEN
)
e4
:
SetCode
(
EFFECT_DISABLE
)
c
:
RegisterEffect
(
e4
)
end
...
...
@@ -61,7 +61,7 @@ end
function
cm
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
5
)
if
c
:
IsRelateToEffect
(
e
)
and
g
:
GetCount
()
==
5
then
if
c
:
IsRelateToEffect
(
e
)
and
g
:
GetCount
()
==
5
then
Duel
.
ConfirmCards
(
tp
,
g
)
local
g2
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
DisableShuffleCheck
()
...
...
expansions/script/c12899017.lua
View file @
df860ef4
--D.H.P.K.-罪天使安吉拉
function
c12899017
.
initial_effect
(
c
)
--limtcon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCondition
(
c12899017
.
limitcon
)
c
:
RegisterEffect
(
e1
)
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
if
not
s
.
global_flag
then
s
.
global_flag
=
true
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
s
.
disable
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
12899017
,
0
))
...
...
@@ -16,9 +20,9 @@ function c12899017.initial_effect(c)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
12899017
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e2
:
SetCondition
(
c12899017
.
sumcon
)
e2
:
SetTarget
(
c12899017
.
sumtg
)
e2
:
SetOperation
(
c12899017
.
sumop
)
e2
:
SetCondition
(
s
.
sumcon
)
e2
:
SetTarget
(
s
.
sumtg
)
e2
:
SetOperation
(
s
.
sumop
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -27,79 +31,86 @@ function c12899017.initial_effect(c)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
12899017
)
e3
:
SetCondition
(
c12899017
.
condition
)
e3
:
SetTarget
(
c12899017
.
target
)
e3
:
SetOperation
(
c12899017
.
operation
)
e3
:
SetCondition
(
s
.
condition
)
e3
:
SetTarget
(
s
.
target
)
e3
:
SetOperation
(
s
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c12899017
.
ndcfilter
(
c
)
s
.
limt_name_hpk
=
id
function
s
.
disable
(
e
,
c
)
if
c
.
limt_name_hpk
~=
id
then
return
end
local
tp
=
c
:
GetControler
()
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
ndcfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x5a71
)
end
function
c12899017
.
limitcon
(
e
)
function
s
.
limitcon
(
e
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
and
Duel
.
IsExistingMatchingCard
(
c12899017
.
ndcfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c12899017
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5a71
)
end
function
c12899017
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c12899017
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
function
s
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c12899017
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c12899017
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12899017
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
end
end
end
function
c12899017
.
setfilter
(
c
)
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x6a71
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
c12899017
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c12899017
.
filter1
(
c
,
e
)
function
s
.
filter1
(
c
,
e
)
return
c
:
IsOnField
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c12899017
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
gc
,
chkf
)
function
s
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
gc
,
chkf
)
return
c
:
IsSetCard
(
0xda71
)
and
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
gc
,
chkf
)
end
function
c12899017
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsOnField
,
nil
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c12899017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
local
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
res
=
Duel
.
IsExistingMatchingCard
(
c12899017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
end
end
return
res
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c12899017
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c12899017
.
filter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c12899017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
filter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
@@ -107,7 +118,7 @@ function c12899017.operation(e,tp,eg,ep,ev,re,r,rp)
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
c12899017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
sg2
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
end
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
local
sg
=
sg1
:
Clone
()
...
...
expansions/script/c12899018.lua
View file @
df860ef4
--D.H.P.K.-奈娜
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetRange
(
0xff
)
e1
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e1
)
if
not
s
.
global_flag
then
s
.
global_flag
=
true
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
s
.
disable
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
1109
)
...
...
@@ -34,9 +36,12 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e3
)
end
function
s
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
s
.
limt_name_hpk
=
id
function
s
.
disable
(
e
,
c
)
if
c
.
limt_name_hpk
~=
id
then
return
end
local
tp
=
c
:
GetControler
()
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
ndcfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x5a71
)
...
...
expansions/script/c12899019.lua
View file @
df860ef4
...
...
@@ -4,22 +4,23 @@ function s.initial_effect(c)
--Synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetRange
(
0xff
)
e1
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e2
)
if
not
s
.
global_flag
then
s
.
global_flag
=
true
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
s
.
disable
)
Duel
.
RegisterEffect
(
e1
,
0
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTarget
(
s
.
disable
)
e2
:
SetCode
(
EFFECT_DISABLE
)
Duel
.
RegisterEffect
(
e2
,
0
)
end
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -41,10 +42,17 @@ function s.initial_effect(c)
e4
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e4
)
end
s
.
limt_name_hpk
=
id
function
s
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
disable
(
e
,
c
)
if
c
.
limt_name_hpk
~=
id
then
return
end
local
tp
=
c
:
GetControler
()
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
ndcfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x5a71
)
end
...
...
expansions/script/c12899020.lua
View file @
df860ef4
...
...
@@ -14,14 +14,6 @@ function s.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e2
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e2
)
--act limit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetRange
(
0xff
)
e3
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e3
)
--flip
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
1131
)
...
...
@@ -43,10 +35,23 @@ function s.initial_effect(c)
e5
:
SetTarget
(
s
.
sptg
)
e5
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e5
)
if
not
s
.
global_flag
then
s
.
global_flag
=
true
--act limit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
s
.
disable
)
Duel
.
RegisterEffect
(
e3
,
0
)
end
end
function
s
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
s
.
limt_name_hpk
=
id
function
s
.
disable
(
e
,
c
)
if
c
.
limt_name_hpk
~=
id
then
return
end
local
tp
=
c
:
GetControler
()
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
ndcfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x5a71
)
...
...
expansions/script/c12899021.lua
View file @
df860ef4
...
...
@@ -4,22 +4,23 @@ function s.initial_effect(c)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
114
,
514
,
s
.
ovfilter
,
aux
.
Stringid
(
id
,
0
),
1919
,
s
.
xyzop
)
c
:
EnableReviveLimit
()
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetRange
(
0xff
)
e1
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCondition
(
s
.
actcon
)
c
:
RegisterEffect
(
e2
)
if
not
s
.
global_flag
then
s
.
global_flag
=
true
--act limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
s
.
disable
)
Duel
.
RegisterEffect
(
e1
,
0
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTarget
(
s
.
disable
)
e2
:
SetCode
(
EFFECT_DISABLE
)
Duel
.
RegisterEffect
(
e2
,
0
)
end
--atk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -44,12 +45,15 @@ function s.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
id
,
ACTIVITY_SUMMON
,
s
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
id
,
ACTIVITY_SPSUMMON
,
s
.
counterfilter
)
end
s
.
limt_name_hpk
=
id
function
s
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0x5a71
)
end
function
s
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
function
s
.
disable
(
e
,
c
)
if
c
.
limt_name_hpk
~=
id
then
return
end
local
tp
=
c
:
GetControler
()
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ndcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
ndcfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x5a71
)
...
...
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