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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
c8b9c0d8
Commit
c8b9c0d8
authored
May 13, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
str
parent
a2a3632c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
119 deletions
+44
-119
expansions/script/c96026035.lua
expansions/script/c96026035.lua
+44
-119
No files found.
expansions/script/c96026035.lua
View file @
c8b9c0d8
--水之魔女·觉醒 瑟莉亚
--水之魔女·觉醒 瑟莉亚
local
m
=
96026035
function
c96026035
.
initial_effect
(
c
)
local
cm
=
_G
[
"c"
..
m
]
aux
.
EnableChangeCode
(
c
,
96026004
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
96026001
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
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_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
synlimit
)
e1
:
SetValue
(
aux
.
synlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
96026035
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c
m
.
hspcon
)
e2
:
SetCondition
(
c
96026035
.
hspcon
)
e2
:
SetOperation
(
c
m
.
hspop
)
e2
:
SetOperation
(
c
96026035
.
hspop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
,
96026040
+
EFFECT_COUNT_CODE_DUEL
)
e3
:
SetTarget
(
cm
.
sptg
)
e3
:
SetCost
(
c96026035
.
cost
)
e3
:
SetOperation
(
cm
.
spop
)
e3
:
SetTarget
(
c96026035
.
tg
)
e3
:
SetOperation
(
c96026035
.
op
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--atk up
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e4
:
SetCountLimit
(
1
,
96026039
+
EFFECT_COUNT_CODE_DUEL
)
e4
:
SetOperation
(
c
m
.
operation
)
e4
:
SetOperation
(
c
96026035
.
op2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--return
aux
.
EnableNeosReturn
(
c
,
cm
.
retop
,
cm
.
set_category
)
end
end
--spsummon
function
c96026035
.
hspfilter
(
c
,
tp
,
sc
)
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsOriginalCodeRule
(
96026004
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
96026004
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
hspcon
(
e
,
c
)
function
c96026035
.
hspcon
(
e
,
c
)
local
c
=
e
:
GetHandler
()
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
1
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
local
p
=
e
:
GetHandler
():
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
c96026035
.
hspfilter
,
p
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
p
,
c
)
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c96026035
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
p
=
e
:
GetHandler
():
GetControler
()
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
hspfilter
,
1
,
1
,
REASON_SPSUMMON
,
false
,
nil
,
tp
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
c96026035
.
hspfilter
,
p
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
p
,
e
:
GetHandler
())
c
:
SetMaterial
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_SPSUMMON
)
end
function
c96026035
.
q
(
c
,
e
,
tp
)
return
c
:
IsCode
(
96026001
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
end
--special summon
function
c96026035
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
return
c
:
IsCode
(
96026001
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c
m
.
sp
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
96026035
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
m
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
96026035
.
q
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
c
m
.
sp
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
96026035
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c96026035
.
q
,
e
,
tp
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
then
if
tc
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
res
=
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
if
res
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
2500
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
end
Duel
.
SpecialSummonComplete
()
local
dg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
res
and
#
dg
>
0
then
Duel
.
BreakEffect
()
local
dc
=
dg
:
GetFirst
()
while
dc
do
local
atk
=
dc
:
GetAttack
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
math.ceil
(
atk
/
2
))
dc
:
RegisterEffect
(
e2
)
Duel
.
NegateRelatedChain
(
dc
,
RESET_TURN_SET
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
dc
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e4
:
SetValue
(
RESET_TURN_SET
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
dc
:
RegisterEffect
(
e4
)
dc
=
dg
:
GetNext
()
end
end
end
end
end
end
--atk up
function
c96026035
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
end
end
function
c
m
.
con22
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
96026035
.
con22
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
tp
and
eg
and
eg
:
Filter
(
Card
.
IsCode
,
nil
,
96026004
):
GetCount
()
>
0
return
rp
==
tp
and
eg
and
eg
:
Filter
(
Card
.
IsCode
,
nil
,
96026004
):
GetCount
()
>
0
end
end
function
c
m
.
op22
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
96026035
.
op22
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026002
,
0
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026002
,
0
,
0
,
1
)
end
end
function
c
m
.
val
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
96026035
.
val
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sum1
=
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
)
local
sum1
=
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
)
local
sum2
=
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026002
)
local
sum2
=
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026002
)
if
sum2
and
sum2
>
0
then
return
sum1
*
1500
+
sum2
*
500
if
sum2
and
sum2
>
0
then
return
sum1
*
1500
+
sum2
*
500
...
@@ -132,58 +87,28 @@ function cm.val(e,tp,eg,ep,ev,re,r,rp)
...
@@ -132,58 +87,28 @@ function cm.val(e,tp,eg,ep,ev,re,r,rp)
return
sum1
*
1500
return
sum1
*
1500
end
end
end
end
function
c
m
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
96026035
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
)
==
0
then
if
Duel
.
GetFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
)
==
0
then
Duel
.
RegisterFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
,
0
,
0
,
1
)
end
Duel
.
RegisterFlagEffect
(
e
:
GetHandler
():
GetControler
(),
96026001
,
0
,
0
,
1
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c
m
.
con22
)
e1
:
SetCondition
(
c
96026035
.
con22
)
e1
:
SetOperation
(
c
m
.
op22
)
e1
:
SetOperation
(
c
96026035
.
op22
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
end
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
end
))
e2
:
SetValue
(
c
m
.
val
)
e2
:
SetValue
(
c
96026035
.
val
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
end
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
function
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
96026001
)
end
))
e3
:
SetValue
(
c
m
.
val
)
e3
:
SetValue
(
c
96026035
.
val
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
--return
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
96026004
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
end
function
cm
.
set_category
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SPECIAL_SUMMON
)
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
if
c
:
IsLocation
(
LOCATION_EXTRA
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
~=
0
then
--atk
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
2500
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
g
:
GetFirst
():
RegisterEffect
(
e2
)
end
end
end
end
\ No newline at end of file
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