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
xiaoye
ygopro-222DIY-cards
Commits
3d32db18
Commit
3d32db18
authored
Mar 10, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suit
parent
cf1e4831
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
131 additions
and
126 deletions
+131
-126
expansions/script/c14000657.lua
expansions/script/c14000657.lua
+84
-85
expansions/script/c33310159.lua
expansions/script/c33310159.lua
+6
-5
expansions/script/c33400220.lua
expansions/script/c33400220.lua
+7
-2
expansions/script/c60151016.lua
expansions/script/c60151016.lua
+32
-32
expansions/script/c75646065.lua
expansions/script/c75646065.lua
+1
-1
expansions/script/c81010059.lua
expansions/script/c81010059.lua
+1
-1
No files found.
expansions/script/c14000657.lua
View file @
3d32db18
--抹杀立方·零点
local
m
=
14000657
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
sscon
)
e1
:
SetTarget
(
cm
.
sstg
)
e1
:
SetOperation
(
cm
.
ssop
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetReasonEffect
()
and
c
:
GetReasonEffect
():
GetOwner
()
==
c
end
function
cm
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
spcfilter
,
1
,
nil
,
tp
)
end
function
cm
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
cm
.
ssop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
if
#
g
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
end
function
cm
.
spcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
)
==
1
end
function
cm
.
xyzfilter
(
c
,
e
,
tp
,
mat
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCode
(
14000656
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mat
,
c
)
>
0
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
c
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
c
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
sc
,
mg
)
end
sc
:
SetMaterial
(
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
end
--抹杀立方·零点
local
m
=
14000657
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
sscon
)
e1
:
SetTarget
(
cm
.
sstg
)
e1
:
SetOperation
(
cm
.
ssop
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetReasonEffect
()
and
c
:
GetReasonEffect
():
GetOwner
()
==
c
end
function
cm
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
spcfilter
,
1
,
nil
,
tp
)
end
function
cm
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
cm
.
ssop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
if
#
g
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
end
function
cm
.
spcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
)
==
1
end
function
cm
.
xyzfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCode
(
14000656
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
e
:
GetHandler
())
>
0
and
aux
.
MustMaterialCheck
(
e
:
GetHandler
(),
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
<=
0
or
not
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
c
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
sc
,
mg
)
end
sc
:
SetMaterial
(
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
end
end
\ No newline at end of file
expansions/script/c33310159.lua
View file @
3d32db18
...
...
@@ -4,7 +4,6 @@ function c33310159.initial_effect(c)
aux
.
AddXyzProcedure
(
c
,
aux
.
TRUE
,
5
,
2
)
--linmo
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
...
...
@@ -24,14 +23,16 @@ function c33310159.initial_effect(c)
c33310159
[
c
]
=
e1
end
function
c33310159
.
ltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
0x55b
)
end
end
function
c33310159
.
lop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSetCard
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
0x55b
)
if
g
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
Overlay
(
c
,
g
)
end
end
end
...
...
expansions/script/c33400220.lua
View file @
3d32db18
...
...
@@ -62,15 +62,20 @@ end
function
c33400220
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x341
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsRankAbove
(
6
)
end
function
c33400220
.
cfilter3
(
c
)
return
c
:
IsSetCard
(
0x6342
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsRankAbove
(
6
)
end
function
c33400220
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x341
)
end
function
c33400220
.
xyzop
(
e
,
tp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33400220
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33400220
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c33400220
.
cfilter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g1
=
Duel
.
GetMatchingGroup
(
c33400220
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
g1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
g1
:
SelectSubGroup
(
tp
,
c33400220
.
xyzcheck
,
false
,
2
,
99
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c33400220
.
macon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
...
...
@@ -133,7 +138,7 @@ function c33400220.dmop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetLabelObject
(
tc1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
if
tc
:
IsCode
(
ac
)
then
...
...
expansions/script/c60151016.lua
View file @
3d32db18
--叛逆的魔女 晓美焰
function
c60151016
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x5b23
),
3
,
3
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x5b23
),
3
,
3
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c60151016
.
linklimit
)
c
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c60151016
.
linklimit
)
c
:
RegisterEffect
(
e1
)
--disable and destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
...
@@ -38,20 +38,20 @@ function c60151016.initial_effect(c)
e5
:
SetCondition
(
c60151016
.
immcon
)
e5
:
SetValue
(
c60151016
.
efilter
)
c
:
RegisterEffect
(
e5
)
--effect gain
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetCondition
(
c60151016
.
regcon
)
e4
:
SetOperation
(
c60151016
.
regop
)
c
:
RegisterEffect
(
e4
)
--effect gain
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetCondition
(
c60151016
.
regcon
)
e4
:
SetOperation
(
c60151016
.
regop
)
c
:
RegisterEffect
(
e4
)
end
function
c60151016
.
linklimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_LINK
)
==
SUMMON_TYPE_LINK
end
function
c60151016
.
ccfilter2
(
c
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c60151016
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
>
1
and
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter2
,
nil
)
>
0
...
...
@@ -62,7 +62,7 @@ function c60151016.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
end
function
c60151016
.
ccfilter3
(
c
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsType
(
TYPE_LINK
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsType
(
TYPE_LINK
)
end
function
c60151016
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
tp
~=
ep
...
...
@@ -86,27 +86,27 @@ function c60151016.disop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c60151016
.
ccfilter
(
c
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
c
:
IsSetCard
(
0x5b23
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
c60151016
.
immcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
<
2
and
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter
,
nil
)
>
0
end
function
c60151016
.
efilter
(
e
,
te
)
if
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
true
end
if
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
return
true
end
if
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
IsActivated
()
then
return
true
end
end
function
c60151016
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c60151016
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
0
))
end
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter2
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
1
))
end
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter3
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
2
))
end
local
c
=
e
:
GetHandler
()
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
0
))
end
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter2
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
1
))
end
if
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
c60151016
.
ccfilter3
,
nil
)
>
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60151016
,
2
))
end
end
\ No newline at end of file
expansions/script/c75646065.lua
View file @
3d32db18
...
...
@@ -27,7 +27,7 @@ function c75646065.lkfilter(c)
return
c
:
IsLinkSetCard
(
0x2c0
)
or
c
:
IsLinkSetCard
(
0xa2c2
)
end
function
c75646065
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
c75646065
.
lkfilter
,
1
)
return
g
:
IsExists
(
c75646065
.
lkfilter
,
1
,
nil
)
end
function
c75646065
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x2c0
)
or
c
:
IsSetCard
(
0xa2c2
))
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsAbleToDeck
()
...
...
expansions/script/c81010059.lua
View file @
3d32db18
...
...
@@ -11,7 +11,7 @@ function c81010059.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c81010059
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
tp
return
rp
==
tp
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
function
c81010059
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
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