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
Ai
ygopro-222DIY-cards
Commits
63043605
Commit
63043605
authored
Dec 12, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sjb
parent
50cdbbfb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
156 additions
and
69 deletions
+156
-69
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c60150810.lua
expansions/script/c60150810.lua
+16
-1
expansions/script/c60150811.lua
expansions/script/c60150811.lua
+39
-18
expansions/script/c60150812.lua
expansions/script/c60150812.lua
+21
-0
expansions/script/c60150817.lua
expansions/script/c60150817.lua
+64
-49
expansions/script/c60150819.lua
expansions/script/c60150819.lua
+16
-1
No files found.
expansions/222DIY.cdb
View file @
63043605
No preview for this file type
expansions/script/c60150810.lua
View file @
63043605
...
...
@@ -29,10 +29,25 @@ function c60150810.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
if
tc
:
IsAbleToRemove
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
0
,
LOCATION_DECK
)
if
(
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
else
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
elseif
(
tc
:
IsAbleToRemove
()
and
not
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
elseif
(
not
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
expansions/script/c60150811.lua
View file @
63043605
...
...
@@ -11,16 +11,16 @@ function c60150811.initial_effect(c)
e1
:
SetOperation
(
c60150811
.
spop
)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCondition
(
aux
.
exccon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c60150811
.
target
)
e2
:
SetOperation
(
c60150811
.
activate2
)
c
:
RegisterEffect
(
e2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCondition
(
aux
.
exccon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c60150811
.
target
)
e2
:
SetOperation
(
c60150811
.
activate2
)
c
:
RegisterEffect
(
e2
)
end
function
c60150811
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3b23
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsFaceup
()
...
...
@@ -60,6 +60,27 @@ function c60150811.spop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetOperation
(
c60150811
.
tdop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
tc3
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
0
,
LOCATION_DECK
)
if
(
tc3
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
else
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc3
,
POS_FACEUP
,
REASON_EFFECT
)
end
elseif
(
tc3
:
IsAbleToRemove
()
and
not
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc3
,
POS_FACEUP
,
REASON_EFFECT
)
elseif
(
not
tc3
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
function
c60150811
.
valcon
(
e
,
re
,
r
,
rp
)
...
...
@@ -74,16 +95,16 @@ function c60150811.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
function
c60150811
.
tgfilter
(
c
)
return
c
:
IsAbleToRemove
()
return
c
:
IsAbleToRemove
()
end
function
c60150811
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60150811
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60150811
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c60150811
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60150811
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60150811
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c60150812.lua
View file @
63043605
...
...
@@ -53,5 +53,26 @@ function c60150812.activate2(e,tp,eg,ep,ev,re,r,rp)
elseif
tc
:
IsAbleToRemove
()
and
not
tc
:
IsAbleToGrave
()
then
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
local
tc3
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
0
,
LOCATION_DECK
)
if
(
tc3
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
else
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc3
,
POS_FACEUP
,
REASON_EFFECT
)
end
elseif
(
tc3
:
IsAbleToRemove
()
and
not
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc3
,
POS_FACEUP
,
REASON_EFFECT
)
elseif
(
not
tc3
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
expansions/script/c60150817.lua
View file @
63043605
--爱莎-窒息的痛楚
function
c60150817
.
initial_effect
(
c
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c60150817
.
spcon
)
e2
:
SetOperation
(
c60150817
.
spop
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60150817
,
1
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
,
60150817
)
e1
:
SetCondition
(
c60150817
.
rmcon
)
e1
:
SetTarget
(
c60150817
.
sptg2
)
e1
:
SetOperation
(
c60150817
.
spop2
)
c
:
RegisterEffect
(
e1
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c60150817
.
spcon
)
e2
:
SetOperation
(
c60150817
.
spop
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60150817
,
1
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
,
60150817
)
e1
:
SetCondition
(
c60150817
.
rmcon
)
e1
:
SetTarget
(
c60150817
.
sptg2
)
e1
:
SetOperation
(
c60150817
.
spop2
)
c
:
RegisterEffect
(
e1
)
end
function
c60150817
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeckOrExtraAsCost
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
2
,
nil
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeckOrExtraAsCost
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
2
,
nil
)
end
function
c60150817
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeckOrExtraAsCost
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
2
,
2
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeckOrExtraAsCost
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
2
,
2
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c60150817
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3b23
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3b23
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c60150817
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
c60150817
.
afilter
(
c
)
return
c
:
IsAbleToRemove
()
return
c
:
IsAbleToRemove
()
end
function
c60150817
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60150817
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
local
g
=
Duel
.
GetMatchingGroup
(
c60150817
.
afilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60150817
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
local
g
=
Duel
.
GetMatchingGroup
(
c60150817
.
afilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
c60150817
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60150817
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
if
tc
:
IsAbleToRemove
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60150817
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
0
,
LOCATION_DECK
)
if
(
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
else
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
elseif
(
tc
:
IsAbleToRemove
()
and
not
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
elseif
(
not
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
expansions/script/c60150819.lua
View file @
63043605
...
...
@@ -39,10 +39,25 @@ function c60150819.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
if
tc
:
IsAbleToRemove
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
local
tc2
=
Duel
.
GetFieldCard
(
tp
,
0
,
LOCATION_DECK
)
if
(
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
else
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
elseif
(
tc
:
IsAbleToRemove
()
and
not
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
elseif
(
not
tc
:
IsAbleToRemove
()
and
tc2
:
IsAbleToRemove
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60150810
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc2
,
POS_FACEUP
,
REASON_EFFECT
)
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