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
f1d6c047
Commit
f1d6c047
authored
Jun 22, 2019
by
2924713558
Committed by
GitHub
Jun 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
7246385a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
200 additions
and
200 deletions
+200
-200
expansions/script/c1156015.lua
expansions/script/c1156015.lua
+200
-200
No files found.
expansions/script/c1156015.lua
View file @
f1d6c047
--雾雨的魔法使
--雾雨的魔法使
function
c1156015
.
initial_effect
(
c
)
function
c1156015
.
initial_effect
(
c
)
--
--
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
c1156015
.
lkcon
)
e0
:
SetCondition
(
c1156015
.
lkcon
)
e0
:
SetOperation
(
c1156015
.
lkop
)
e0
:
SetOperation
(
c1156015
.
lkop
)
e0
:
SetValue
(
SUMMON_TYPE_LINK
)
e0
:
SetValue
(
SUMMON_TYPE_LINK
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
1156015
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
1156015
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c1156015
.
con2
)
e2
:
SetCondition
(
c1156015
.
con2
)
e2
:
SetTarget
(
c1156015
.
tg2
)
e2
:
SetTarget
(
c1156015
.
tg2
)
e2
:
SetOperation
(
c1156015
.
op2
)
e2
:
SetOperation
(
c1156015
.
op2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetValue
(
c1156015
.
value3
)
e3
:
SetValue
(
c1156015
.
value3
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTarget
(
c1156015
.
tg4
)
e4
:
SetTarget
(
c1156015
.
tg4
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
--
end
end
--
--
function
c1156015
.
lkfilter
(
c
,
lc
,
tp
)
function
c1156015
.
lkfilter
(
c
,
lc
,
tp
)
local
flag
=
c
:
IsFaceup
()
and
c
:
IsCanBeLinkMaterial
(
lc
)
local
flag
=
c
:
IsFaceup
()
and
c
:
IsCanBeLinkMaterial
(
lc
)
if
c
:
IsType
(
TYPE_MONSTER
)
then
if
c
:
IsType
(
TYPE_MONSTER
)
then
return
flag
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
flag
and
c
:
IsRace
(
RACE_SPELLCASTER
)
else
else
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
end
end
end
end
function
c1156015
.
lvfilter
(
c
)
function
c1156015
.
lvfilter
(
c
)
if
c
:
IsType
(
TYPE_LINK
)
and
c
:
GetLink
()
>
1
then
if
c
:
IsType
(
TYPE_LINK
)
and
c
:
GetLink
()
>
1
then
return
1
+
0x10000
*
c
:
GetLink
()
return
1
+
0x10000
*
c
:
GetLink
()
else
else
return
1
return
1
end
end
end
end
--
--
function
c1156015
.
lcheck
(
tp
,
sg
,
lc
,
minc
,
ct
)
function
c1156015
.
lcheck
(
tp
,
sg
,
lc
,
minc
,
ct
)
return
ct
>=
minc
and
sg
:
CheckWithSumEqual
(
c1156015
.
lvfilter
,
lc
:
GetLink
(),
ct
,
ct
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
lc
)
>
0
return
ct
>=
minc
and
sg
:
CheckWithSumEqual
(
c1156015
.
lvfilter
,
lc
:
GetLink
(),
ct
,
ct
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
lc
)
>
0
end
end
function
c1156015
.
lkchenk
(
c
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
)
function
c1156015
.
lkchenk
(
c
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
ct
=
ct
+
1
ct
=
ct
+
1
local
res
=
c1156015
.
lcheck
(
tp
,
sg
,
lc
,
minc
,
ct
)
or
(
ct
<
maxc
and
mg
:
IsExists
(
c1156015
.
lkchenk
,
1
,
sg
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
))
local
res
=
c1156015
.
lcheck
(
tp
,
sg
,
lc
,
minc
,
ct
)
or
(
ct
<
maxc
and
mg
:
IsExists
(
c1156015
.
lkchenk
,
1
,
sg
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
))
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
ct
=
ct
-
1
ct
=
ct
-
1
return
res
return
res
end
end
--
--
function
c1156015
.
lkcon
(
e
,
c
)
function
c1156015
.
lkcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c1156015
.
lkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c1156015
.
lkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
,
tp
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
local
pc
=
pe
:
GetHandler
()
local
pc
=
pe
:
GetHandler
()
if
not
mg
:
IsContains
(
pc
)
then
return
false
end
if
not
mg
:
IsContains
(
pc
)
then
return
false
end
sg
:
AddCard
(
pc
)
sg
:
AddCard
(
pc
)
end
end
local
ct
=
sg
:
GetCount
()
local
ct
=
sg
:
GetCount
()
local
minc
=
3
local
minc
=
3
local
maxc
=
3
local
maxc
=
3
if
ct
>
maxc
then
return
false
end
if
ct
>
maxc
then
return
false
end
return
c1156015
.
lcheck
(
tp
,
sg
,
c
,
minc
,
ct
)
or
mg
:
IsExists
(
c1156015
.
lkchenk
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
ct
,
minc
,
maxc
)
return
c1156015
.
lcheck
(
tp
,
sg
,
c
,
minc
,
ct
)
or
mg
:
IsExists
(
c1156015
.
lkchenk
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
ct
,
minc
,
maxc
)
end
end
--
--
function
c1156015
.
lkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c1156015
.
lkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c1156015
.
lkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
c1156015
.
lkfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
,
tp
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
for
i
,
pe
in
ipairs
({
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)})
do
sg
:
AddCard
(
pe
:
GetHandler
())
sg
:
AddCard
(
pe
:
GetHandler
())
end
end
local
ct
=
sg
:
GetCount
()
local
ct
=
sg
:
GetCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
sg
:
Select
(
tp
,
ct
,
ct
,
nil
)
sg
:
Select
(
tp
,
ct
,
ct
,
nil
)
local
minc
=
3
local
minc
=
3
local
maxc
=
3
local
maxc
=
3
for
i
=
ct
,
maxc
-
1
do
for
i
=
ct
,
maxc
-
1
do
local
cg
=
mg
:
Filter
(
c1156015
.
lkchenk
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
)
local
cg
=
mg
:
Filter
(
c1156015
.
lkchenk
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
)
if
cg
:
GetCount
()
==
0
then
break
end
if
cg
:
GetCount
()
==
0
then
break
end
local
minct
=
1
local
minct
=
1
if
c1156015
.
lcheck
(
tp
,
sg
,
c
,
minc
,
i
)
then
if
c1156015
.
lcheck
(
tp
,
sg
,
c
,
minc
,
i
)
then
if
not
Duel
.
SelectYesNo
(
tp
,
210
)
then
break
end
if
not
Duel
.
SelectYesNo
(
tp
,
210
)
then
break
end
minct
=
0
minct
=
0
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
g
=
cg
:
Select
(
tp
,
minct
,
1
,
nil
)
local
g
=
cg
:
Select
(
tp
,
minct
,
1
,
nil
)
if
g
:
GetCount
()
==
0
then
break
end
if
g
:
GetCount
()
==
0
then
break
end
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
end
end
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
SendtoGrave
(
sg
,
REASON_MATERIAL
+
REASON_LINK
)
Duel
.
SendtoGrave
(
sg
,
REASON_MATERIAL
+
REASON_LINK
)
end
end
--
--
function
c1156015
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1156015
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
bit
.
band
(
re
:
GetHandler
():
GetOriginalType
(),
TYPE_PENDULUM
)
~=
0
and
not
(
bit
.
band
(
re
:
GetHandler
():
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
)
end
end
--
--
function
c1156015
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1156015
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
end
end
--
--
function
c1156015
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1156015
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
(
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
then
if
(
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
then
re
:
GetHandler
():
CancelToGrave
()
re
:
GetHandler
():
CancelToGrave
()
if
Duel
.
MoveToField
(
re
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
then
if
Duel
.
MoveToField
(
re
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
true
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
re
:
GetHandler
())
Duel
.
ConfirmCards
(
1
-
tp
,
re
:
GetHandler
())
Duel
.
RaiseEvent
(
re
:
GetHandler
(),
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
Duel
.
RaiseEvent
(
re
:
GetHandler
(),
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
end
end
end
end
end
end
--
--
function
c1156015
.
vfilter3
(
c
)
function
c1156015
.
vfilter3
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
end
end
function
c1156015
.
value3
(
e
,
c
)
function
c1156015
.
value3
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c1156015
.
vfilter3
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c1156015
.
vfilter3
,
c
:
GetControler
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
ct
=
g
:
GetCount
()
local
ct
=
g
:
GetCount
()
return
ct
*
200
return
ct
*
200
end
end
--
--
function
c1156015
.
tfilter4_1
(
c
,
e
)
function
c1156015
.
tfilter4_1
(
c
,
e
)
return
c
:
GetEquipTarget
(
e
:
GetHandler
())
and
c
:
IsAbleToGrave
()
return
c
:
GetEquipTarget
(
e
:
GetHandler
())
and
c
:
IsAbleToGrave
()
end
end
function
c1156015
.
tfilter4_2
(
c
)
function
c1156015
.
tfilter4_2
(
c
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToRemove
()
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToRemove
()
end
end
function
c1156015
.
tg4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1156015
.
tg4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
or
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
or
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1156015
,
3
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1156015
,
3
))
then
if
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
local
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
1156015
,
1
),
aux
.
Stringid
(
1156015
,
2
))
local
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
1156015
,
1
),
aux
.
Stringid
(
1156015
,
2
))
if
sel
==
0
then
if
sel
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
return
true
return
true
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
2
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
return
true
return
true
end
end
else
else
if
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
and
not
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
)
and
not
Duel
.
IsExistingMatchingCard
(
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
return
true
return
true
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
1156015
,
2
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1156015
.
tfilter4_2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
return
true
return
true
end
end
end
end
else
else
return
false
return
false
end
end
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