Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
d0fa0490
Commit
d0fa0490
authored
Aug 02, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d73ffc6f
Changes
99
Show whitespace changes
Inline
Side-by-side
Showing
99 changed files
with
99 additions
and
100 deletions
+99
-100
c10002346.lua
c10002346.lua
+1
-1
c1281505.lua
c1281505.lua
+1
-1
c12986807.lua
c12986807.lua
+1
-1
c14289852.lua
c14289852.lua
+1
-1
c1580833.lua
c1580833.lua
+1
-1
c16259549.lua
c16259549.lua
+1
-1
c17228908.lua
c17228908.lua
+1
-1
c176392.lua
c176392.lua
+1
-1
c1855932.lua
c1855932.lua
+1
-1
c19505896.lua
c19505896.lua
+1
-1
c19748583.lua
c19748583.lua
+1
-1
c20457551.lua
c20457551.lua
+1
-1
c20470500.lua
c20470500.lua
+1
-1
c20920083.lua
c20920083.lua
+1
-1
c22842214.lua
c22842214.lua
+1
-1
c23232295.lua
c23232295.lua
+1
-1
c23998625.lua
c23998625.lua
+1
-1
c2403771.lua
c2403771.lua
+1
-1
c25165047.lua
c25165047.lua
+1
-1
c25231813.lua
c25231813.lua
+1
-1
c2525268.lua
c2525268.lua
+1
-1
c25341652.lua
c25341652.lua
+1
-1
c25494711.lua
c25494711.lua
+1
-1
c25853045.lua
c25853045.lua
+1
-1
c27782503.lua
c27782503.lua
+1
-1
c29981921.lua
c29981921.lua
+1
-1
c30794966.lua
c30794966.lua
+1
-1
c31766317.lua
c31766317.lua
+1
-1
c31904181.lua
c31904181.lua
+1
-1
c33537328.lua
c33537328.lua
+1
-1
c34379489.lua
c34379489.lua
+1
-1
c37752990.lua
c37752990.lua
+1
-1
c3825890.lua
c3825890.lua
+1
-1
c38981606.lua
c38981606.lua
+1
-1
c39373426.lua
c39373426.lua
+1
-1
c39910367.lua
c39910367.lua
+1
-1
c39996157.lua
c39996157.lua
+1
-1
c4252828.lua
c4252828.lua
+1
-1
c43175858.lua
c43175858.lua
+1
-1
c43266605.lua
c43266605.lua
+1
-1
c43577607.lua
c43577607.lua
+1
-1
c4545854.lua
c4545854.lua
+1
-1
c45778242.lua
c45778242.lua
+1
-1
c47349116.lua
c47349116.lua
+1
-1
c48739166.lua
c48739166.lua
+1
-1
c49678559.lua
c49678559.lua
+1
-1
c50185950.lua
c50185950.lua
+1
-1
c5067884.lua
c5067884.lua
+1
-1
c51028231.lua
c51028231.lua
+1
-1
c52518793.lua
c52518793.lua
+1
-1
c52665542.lua
c52665542.lua
+1
-1
c54320860.lua
c54320860.lua
+1
-1
c56111151.lua
c56111151.lua
+1
-1
c5817857.lua
c5817857.lua
+1
-1
c59496924.lua
c59496924.lua
+1
-1
c59843383.lua
c59843383.lua
+1
-1
c60181553.lua
c60181553.lua
+1
-1
c61156777.lua
c61156777.lua
+1
-1
c6178850.lua
c6178850.lua
+1
-1
c61936647.lua
c61936647.lua
+1
-1
c62541668.lua
c62541668.lua
+1
-1
c63176202.lua
c63176202.lua
+1
-1
c63465535.lua
c63465535.lua
+1
-1
c63881033.lua
c63881033.lua
+1
-1
c64398890.lua
c64398890.lua
+1
-1
c64973287.lua
c64973287.lua
+1
-1
c65025250.lua
c65025250.lua
+1
-1
c65305468.lua
c65305468.lua
+1
-1
c66835946.lua
c66835946.lua
+1
-1
c67173574.lua
c67173574.lua
+1
-1
c67511500.lua
c67511500.lua
+1
-1
c675319.lua
c675319.lua
+1
-1
c6853254.lua
c6853254.lua
+1
-1
c69025477.lua
c69025477.lua
+1
-1
c70458081.lua
c70458081.lua
+1
-1
c72129804.lua
c72129804.lua
+1
-1
c72497366.lua
c72497366.lua
+1
-1
c74580251.lua
c74580251.lua
+1
-1
c75775867.lua
c75775867.lua
+1
-1
c76067258.lua
c76067258.lua
+1
-1
c77610772.lua
c77610772.lua
+1
-1
c77631175.lua
c77631175.lua
+1
-1
c78156759.lua
c78156759.lua
+1
-1
c78437364.lua
c78437364.lua
+1
-1
c80143954.lua
c80143954.lua
+1
-1
c80476891.lua
c80476891.lua
+1
-1
c80566312.lua
c80566312.lua
+1
-1
c83347294.lua
c83347294.lua
+1
-1
c84341431.lua
c84341431.lua
+1
-1
c8437145.lua
c8437145.lua
+1
-1
c84847656.lua
c84847656.lua
+1
-1
c88234365.lua
c88234365.lua
+1
-1
c89333528.lua
c89333528.lua
+1
-1
c90397998.lua
c90397998.lua
+1
-1
c95395761.lua
c95395761.lua
+1
-2
c95519486.lua
c95519486.lua
+1
-1
c97617181.lua
c97617181.lua
+1
-1
c97648103.lua
c97648103.lua
+1
-1
c97795930.lua
c97795930.lua
+1
-1
No files found.
c10002346.lua
View file @
d0fa0490
...
@@ -29,7 +29,7 @@ function c10002346.val(e,c)
...
@@ -29,7 +29,7 @@ function c10002346.val(e,c)
end
end
function
c10002346
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10002346
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
10002346
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c10002346
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10002346
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
...
...
c1281505.lua
View file @
d0fa0490
...
@@ -57,7 +57,7 @@ function c1281505.eqlimit(e,c)
...
@@ -57,7 +57,7 @@ function c1281505.eqlimit(e,c)
end
end
function
c1281505
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1281505
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
1281505
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c1281505
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1281505
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c12986807.lua
View file @
d0fa0490
...
@@ -41,7 +41,7 @@ function c12986807.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -41,7 +41,7 @@ function c12986807.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsReason
(
REASON_EFFECT
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
Duel
.
IsExistingMatchingCard
(
c12986807
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c12986807
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
12986807
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12986807
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12986807
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
...
...
c14289852.lua
View file @
d0fa0490
...
@@ -25,7 +25,7 @@ end
...
@@ -25,7 +25,7 @@ end
function
c14289852
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14289852
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c14289852
.
dfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c14289852
.
dfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c14289852
.
repfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c14289852
.
repfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
14289852
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c14289852
.
value
(
e
,
c
)
function
c14289852
.
value
(
e
,
c
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsReason
(
REASON_BATTLE
)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsReason
(
REASON_BATTLE
)
...
...
c1580833.lua
View file @
d0fa0490
...
@@ -28,7 +28,7 @@ function c1580833.filter(c,tp)
...
@@ -28,7 +28,7 @@ function c1580833.filter(c,tp)
end
end
function
c1580833
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1580833
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c1580833
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c1580833
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
1580833
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c1580833
.
repval
(
e
,
c
)
function
c1580833
.
repval
(
e
,
c
)
return
c1580833
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c1580833
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c16259549.lua
View file @
d0fa0490
...
@@ -61,7 +61,7 @@ function c16259549.recop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,7 @@ function c16259549.recop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c16259549
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16259549
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
16259549
,
2
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c17228908.lua
View file @
d0fa0490
...
@@ -97,7 +97,7 @@ function c17228908.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -97,7 +97,7 @@ function c17228908.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ct
=
eg
:
FilterCount
(
c17228908
.
repfilter
,
nil
,
tp
)
local
ct
=
eg
:
FilterCount
(
c17228908
.
repfilter
,
nil
,
tp
)
if
chk
==
0
then
return
ct
>
0
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
c17228908
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
ct
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c17228908
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
ct
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
17228908
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c17228908
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
ct
,
ct
,
nil
,
tp
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c17228908
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
ct
,
ct
,
nil
,
tp
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
...
...
c176392.lua
View file @
d0fa0490
...
@@ -29,7 +29,7 @@ function c176392.rfilter(c)
...
@@ -29,7 +29,7 @@ function c176392.rfilter(c)
end
end
function
c176392
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c176392
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c176392
.
rfilter
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
eg
:
IsExists
(
c176392
.
rfilter
,
1
,
e
:
GetHandler
())
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
176392
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c1855932.lua
View file @
d0fa0490
...
@@ -50,7 +50,7 @@ function c1855932.repfilter(c,tp)
...
@@ -50,7 +50,7 @@ function c1855932.repfilter(c,tp)
end
end
function
c1855932
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1855932
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c1855932
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c1855932
.
repfilter
,
1
,
nil
,
tp
)
end
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
1855932
,
1
)
)
then
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
local
g
=
eg
:
Filter
(
c1855932
.
repfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c1855932
.
repfilter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
...
...
c19505896.lua
View file @
d0fa0490
...
@@ -17,7 +17,7 @@ function c19505896.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,7 +17,7 @@ function c19505896.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c19505896
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c19505896
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
19505896
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19505896
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19505896
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c19748583.lua
View file @
d0fa0490
...
@@ -69,7 +69,7 @@ function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -69,7 +69,7 @@ function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
c
:
GetEquipTarget
():
IsAttribute
(
ATTRIBUTE_LIGHT
)
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
c
:
GetEquipTarget
():
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
e
:
GetOwnerPlayer
(),
aux
.
Stringid
(
19748583
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
e
:
GetOwnerPlayer
(),
e
:
GetHandler
(),
96
)
end
end
function
c19748583
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19748583
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c20457551.lua
View file @
d0fa0490
...
@@ -66,7 +66,7 @@ function c20457551.atkval(e,c)
...
@@ -66,7 +66,7 @@ function c20457551.atkval(e,c)
end
end
function
c20457551
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20457551
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
20457551
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c20470500.lua
View file @
d0fa0490
...
@@ -47,7 +47,7 @@ function c20470500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,7 +47,7 @@ function c20470500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c20470500
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
e
)
end
and
Duel
.
IsExistingMatchingCard
(
c20470500
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
e
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
20470500
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20470500
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20470500
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
,
e
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c20920083.lua
View file @
d0fa0490
...
@@ -56,7 +56,7 @@ function c20920083.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -56,7 +56,7 @@ function c20920083.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c20920083
.
repfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c20920083
.
repfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
20920083
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20920083
.
repfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c20920083
.
repfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c22842214.lua
View file @
d0fa0490
...
@@ -85,7 +85,7 @@ end
...
@@ -85,7 +85,7 @@ end
function
c22842214
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22842214
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
c
)
end
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
22842214
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
c
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
c
):
GetFirst
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
...
...
c23232295.lua
View file @
d0fa0490
...
@@ -27,7 +27,7 @@ function c23232295.repfilter(c,tp)
...
@@ -27,7 +27,7 @@ function c23232295.repfilter(c,tp)
end
end
function
c23232295
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23232295
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c23232295
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c23232295
.
repfilter
,
1
,
nil
,
tp
)
end
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
23232295
,
1
)
)
then
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
local
g
=
eg
:
Filter
(
c23232295
.
repfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c23232295
.
repfilter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
...
...
c23998625.lua
View file @
d0fa0490
...
@@ -52,7 +52,7 @@ function c23998625.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function c23998625.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c23998625
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23998625
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
23998625
,
2
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c2403771.lua
View file @
d0fa0490
...
@@ -50,7 +50,7 @@ function c2403771.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,7 +50,7 @@ function c2403771.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
c
:
GetEquipGroup
()
local
g
=
c
:
GetEquipGroup
()
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c2403771
.
repfilter
,
1
,
nil
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c2403771
.
repfilter
,
1
,
nil
)
end
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
2403771
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
c
:
GetEquipGroup
()
local
g
=
c
:
GetEquipGroup
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
FilterSelect
(
tp
,
c2403771
.
repfilter
,
1
,
1
,
nil
)
local
sg
=
g
:
FilterSelect
(
tp
,
c2403771
.
repfilter
,
1
,
1
,
nil
)
...
...
c25165047.lua
View file @
d0fa0490
...
@@ -49,7 +49,7 @@ function c25165047.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,7 +49,7 @@ function c25165047.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c25165047
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c25165047
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
25165047
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25165047
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25165047
.
repfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
...
...
c25231813.lua
View file @
d0fa0490
...
@@ -57,7 +57,7 @@ end
...
@@ -57,7 +57,7 @@ end
function
c25231813
.
reptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25231813
.
reptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEquipTarget
():
IsReason
(
REASON_EFFECT
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEquipTarget
():
IsReason
(
REASON_EFFECT
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
25231813
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
e
:
GetHandler
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c2525268.lua
View file @
d0fa0490
...
@@ -40,7 +40,7 @@ function c2525268.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,7 +40,7 @@ function c2525268.destg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
count
)
e
:
SetLabel
(
count
)
return
count
>
0
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x1
,
count
,
REASON_COST
)
return
count
>
0
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x1
,
count
,
REASON_COST
)
end
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
2525268
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c2525268
.
value
(
e
,
c
)
function
c2525268
.
value
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
GetLocation
()
==
LOCATION_MZONE
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
c
:
IsFaceup
()
and
c
:
GetLocation
()
==
LOCATION_MZONE
and
c
:
IsRace
(
RACE_SPELLCASTER
)
...
...
c25341652.lua
View file @
d0fa0490
...
@@ -50,7 +50,7 @@ function c25341652.repfilter(c,tp)
...
@@ -50,7 +50,7 @@ function c25341652.repfilter(c,tp)
end
end
function
c25341652
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25341652
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c25341652
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c25341652
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
25341652
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
eg
:
Filter
(
c25341652
.
repfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c25341652
.
repfilter
,
nil
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
return
true
return
true
...
...
c25494711.lua
View file @
d0fa0490
...
@@ -75,7 +75,7 @@ function c25494711.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,7 +75,7 @@ function c25494711.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c25494711
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c25494711
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
25494711
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25494711
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25494711
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
...
...
c25853045.lua
View file @
d0fa0490
...
@@ -39,7 +39,7 @@ function c25853045.atkval(e,c)
...
@@ -39,7 +39,7 @@ function c25853045.atkval(e,c)
end
end
function
c25853045
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25853045
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
25853045
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
return
true
return
true
...
...
c27782503.lua
View file @
d0fa0490
...
@@ -45,7 +45,7 @@ function c27782503.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function c27782503.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c27782503
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c27782503
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
27782503
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27782503
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27782503
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c29981921.lua
View file @
d0fa0490
...
@@ -49,7 +49,7 @@ function c29981921.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,7 +49,7 @@ function c29981921.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c29981921
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c29981921
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
29981921
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29981921
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29981921
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c30794966.lua
View file @
d0fa0490
...
@@ -46,7 +46,7 @@ end
...
@@ -46,7 +46,7 @@ end
function
c30794966
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30794966
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
c
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
30794966
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c31766317.lua
View file @
d0fa0490
...
@@ -28,7 +28,7 @@ function c31766317.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,7 +28,7 @@ function c31766317.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
dc
~=
e
:
GetHandler
()
and
dc
:
IsFaceup
()
and
dc
:
IsLocation
(
LOCATION_MZONE
)
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
dc
~=
e
:
GetHandler
()
and
dc
:
IsFaceup
()
and
dc
:
IsLocation
(
LOCATION_MZONE
)
and
dc
:
IsRace
(
RACE_FIEND
)
and
dc
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
dc
:
IsRace
(
RACE_FIEND
)
and
dc
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
Duel
.
IsExistingMatchingCard
(
c31766317
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c31766317
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
31766317
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31766317
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31766317
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c31904181.lua
View file @
d0fa0490
...
@@ -30,7 +30,7 @@ function c31904181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,7 +30,7 @@ function c31904181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c31904181
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c31904181
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
31904181
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31904181
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31904181
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c33537328.lua
View file @
d0fa0490
...
@@ -42,7 +42,7 @@ function c33537328.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,7 +42,7 @@ function c33537328.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetBattlePosition
()
~=
POS_FACEUP_DEFENSE
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetBattlePosition
()
~=
POS_FACEUP_DEFENSE
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsReleasableByEffect
,
1
,
c
)
end
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsReleasableByEffect
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
33537328
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsReleasableByEffect
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsReleasableByEffect
,
1
,
1
,
c
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
SetLP
(
1
-
tp
,
Duel
.
GetLP
(
1
-
tp
)
/
2
)
Duel
.
SetLP
(
1
-
tp
,
Duel
.
GetLP
(
1
-
tp
)
/
2
)
...
...
c34379489.lua
View file @
d0fa0490
...
@@ -26,7 +26,7 @@ function c34379489.filter(c,tp)
...
@@ -26,7 +26,7 @@ function c34379489.filter(c,tp)
end
end
function
c34379489
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34379489
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c34379489
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c34379489
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
34379489
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c34379489
.
repval
(
e
,
c
)
function
c34379489
.
repval
(
e
,
c
)
return
c34379489
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c34379489
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c37752990.lua
View file @
d0fa0490
...
@@ -26,7 +26,7 @@ function c37752990.filter(c,tp)
...
@@ -26,7 +26,7 @@ function c37752990.filter(c,tp)
end
end
function
c37752990
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c37752990
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c37752990
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c37752990
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
37752990
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c37752990
.
repval
(
e
,
c
)
function
c37752990
.
repval
(
e
,
c
)
return
c37752990
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c37752990
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c3825890.lua
View file @
d0fa0490
...
@@ -52,7 +52,7 @@ function c3825890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function c3825890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c3825890
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c3825890
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
3825890
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c3825890
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c3825890
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c38981606.lua
View file @
d0fa0490
...
@@ -28,7 +28,7 @@ end
...
@@ -28,7 +28,7 @@ end
function
c38981606
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c38981606
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
eg
:
IsContains
(
e
:
GetHandler
())
if
chk
==
0
then
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c38981606
.
dfilter
,
1
,
nil
,
tp
)
end
and
eg
:
IsExists
(
c38981606
.
dfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
38981606
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
return
true
return
true
else
return
false
end
else
return
false
end
end
end
...
...
c39373426.lua
View file @
d0fa0490
...
@@ -118,7 +118,7 @@ function c39373426.repfilter(c,tp)
...
@@ -118,7 +118,7 @@ function c39373426.repfilter(c,tp)
end
end
function
c39373426
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39373426
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c39373426
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c39373426
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
39373426
,
2
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
eg
:
Filter
(
c39373426
.
repfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c39373426
.
repfilter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c39910367.lua
View file @
d0fa0490
...
@@ -56,7 +56,7 @@ end
...
@@ -56,7 +56,7 @@ end
function
c39910367
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39910367
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
e
:
GetHandler
():
GetCounter
(
0x1
)
>
0
end
and
e
:
GetHandler
():
GetCounter
(
0x1
)
>
0
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
39910367
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c39910367
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39910367
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1
,
1
,
REASON_EFFECT
)
...
...
c39996157.lua
View file @
d0fa0490
...
@@ -75,7 +75,7 @@ function c39996157.repfilter(c,tp)
...
@@ -75,7 +75,7 @@ function c39996157.repfilter(c,tp)
end
end
function
c39996157
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39996157
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c39996157
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c39996157
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
39996157
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c39996157
.
repval
(
e
,
c
)
function
c39996157
.
repval
(
e
,
c
)
return
c39996157
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c39996157
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c4252828.lua
View file @
d0fa0490
...
@@ -72,7 +72,7 @@ function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -72,7 +72,7 @@ function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
if
chk
==
0
then
return
ec
and
ec
:
IsHasCardTarget
(
c
)
if
chk
==
0
then
return
ec
and
ec
:
IsHasCardTarget
(
c
)
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
ec
:
GetFlagEffect
(
4252828
)
~=
0
end
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
ec
:
GetFlagEffect
(
4252828
)
~=
0
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
4252828
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
end
end
function
c4252828
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4252828
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetLabelObject
():
GetLabelObject
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetLabelObject
():
GetLabelObject
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c43175858.lua
View file @
d0fa0490
...
@@ -57,7 +57,7 @@ function c43175858.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,7 +57,7 @@ function c43175858.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ct
=
eg
:
FilterCount
(
c43175858
.
repfilter
,
nil
,
tp
)
local
ct
=
eg
:
FilterCount
(
c43175858
.
repfilter
,
nil
,
tp
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
if
chk
==
0
then
return
g
:
IsExists
(
Card
.
IsAbleToRemove
,
ct
,
nil
)
end
if
chk
==
0
then
return
g
:
IsExists
(
Card
.
IsAbleToRemove
,
ct
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
43175858
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
return
true
return
true
...
...
c43266605.lua
View file @
d0fa0490
...
@@ -36,7 +36,7 @@ function c43266605.repfilter(c,tp)
...
@@ -36,7 +36,7 @@ function c43266605.repfilter(c,tp)
end
end
function
c43266605
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43266605
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
and
eg
:
IsExists
(
c43266605
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
and
eg
:
IsExists
(
c43266605
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
43266605
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c43266605
.
repval
(
e
,
c
)
function
c43266605
.
repval
(
e
,
c
)
return
c43266605
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c43266605
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c43577607.lua
View file @
d0fa0490
...
@@ -76,7 +76,7 @@ function c43577607.repfilter(c,tp)
...
@@ -76,7 +76,7 @@ function c43577607.repfilter(c,tp)
end
end
function
c43577607
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43577607
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c43577607
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c43577607
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
43577607
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c43577607
.
repval
(
e
,
c
)
function
c43577607
.
repval
(
e
,
c
)
return
c43577607
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c43577607
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c4545854.lua
View file @
d0fa0490
...
@@ -41,7 +41,7 @@ end
...
@@ -41,7 +41,7 @@ end
function
c4545854
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4545854
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_EFFECT
)
end
and
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
4545854
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
0
,
1
,
1
,
REASON_EFFECT
)
Duel
.
RemoveOverlayCard
(
tp
,
1
,
0
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c45778242.lua
View file @
d0fa0490
...
@@ -32,7 +32,7 @@ function c45778242.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,7 +32,7 @@ function c45778242.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c45778242
.
repfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c45778242
.
repfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
45778242
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c45778242
.
repfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c45778242
.
repfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
...
...
c47349116.lua
View file @
d0fa0490
...
@@ -66,7 +66,7 @@ end
...
@@ -66,7 +66,7 @@ end
function
c47349116
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47349116
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c47349116
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c47349116
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c47349116
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c47349116
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
47349116
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c47349116
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c47349116
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
...
...
c48739166.lua
View file @
d0fa0490
...
@@ -51,7 +51,7 @@ function c48739166.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c48739166.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c48739166
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c48739166
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
48739166
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c49678559.lua
View file @
d0fa0490
...
@@ -64,7 +64,7 @@ function c49678559.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,7 +64,7 @@ function c49678559.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c49678559
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49678559
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
49678559
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c50185950.lua
View file @
d0fa0490
...
@@ -36,7 +36,7 @@ function c50185950.filter(c,tp)
...
@@ -36,7 +36,7 @@ function c50185950.filter(c,tp)
end
end
function
c50185950
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50185950
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c50185950
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
if
chk
==
0
then
return
eg
:
IsExists
(
c50185950
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
50185950
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c50185950
.
repval
(
e
,
c
)
function
c50185950
.
repval
(
e
,
c
)
return
c50185950
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c50185950
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c5067884.lua
View file @
d0fa0490
...
@@ -27,7 +27,7 @@ function c5067884.repfilter(c,tp)
...
@@ -27,7 +27,7 @@ function c5067884.repfilter(c,tp)
end
end
function
c5067884
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5067884
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c5067884
.
repfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c5067884
.
repfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
5067884
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c5067884
.
repval
(
e
,
c
)
function
c5067884
.
repval
(
e
,
c
)
return
c5067884
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c5067884
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c51028231.lua
View file @
d0fa0490
...
@@ -48,7 +48,7 @@ function c51028231.filter(c,tp)
...
@@ -48,7 +48,7 @@ function c51028231.filter(c,tp)
end
end
function
c51028231
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51028231
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c51028231
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c51028231
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
51028231
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c51028231
.
repval
(
e
,
c
)
function
c51028231
.
repval
(
e
,
c
)
return
c51028231
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c51028231
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c52518793.lua
View file @
d0fa0490
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c52518793
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52518793
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
52518793
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
52518793
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
52518793
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c52518793
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52518793
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsCode
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
,
52518793
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsCode
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
,
52518793
)
...
...
c52665542.lua
View file @
d0fa0490
...
@@ -85,7 +85,7 @@ function c52665542.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,7 +85,7 @@ function c52665542.destg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
count
)
e
:
SetLabel
(
count
)
return
count
>
0
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x5
,
count
*
2
,
REASON_EFFECT
)
return
count
>
0
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x5
,
count
*
2
,
REASON_EFFECT
)
end
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
52665542
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c52665542
.
value
(
e
,
c
)
function
c52665542
.
value
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
...
...
c54320860.lua
View file @
d0fa0490
...
@@ -31,7 +31,7 @@ end
...
@@ -31,7 +31,7 @@ end
function
c54320860
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54320860
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
and
eg
:
IsExists
(
c54320860
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
and
eg
:
IsExists
(
c54320860
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
54320860
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c54320860
.
repval
(
e
,
c
)
function
c54320860
.
repval
(
e
,
c
)
return
c54320860
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c54320860
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c56111151.lua
View file @
d0fa0490
...
@@ -65,7 +65,7 @@ end
...
@@ -65,7 +65,7 @@ end
function
c56111151
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56111151
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x37
,
1
,
REASON_EFFECT
)
end
and
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x37
,
1
,
REASON_EFFECT
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
56111151
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c56111151
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56111151
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x37
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x37
,
1
,
REASON_EFFECT
)
...
...
c5817857.lua
View file @
d0fa0490
...
@@ -69,7 +69,7 @@ function c5817857.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -69,7 +69,7 @@ function c5817857.destg(e,tp,eg,ep,ev,re,r,rp,chk)
return
tc
:
IsFaceup
()
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsSetCard
(
0x1d
)
and
tc
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
tc
:
IsFaceup
()
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsSetCard
(
0x1d
)
and
tc
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
Duel
.
IsExistingMatchingCard
(
c5817857
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c5817857
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
5817857
,
3
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c5817857
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5817857
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
...
c59496924.lua
View file @
d0fa0490
...
@@ -33,7 +33,7 @@ end
...
@@ -33,7 +33,7 @@ end
function
c59496924
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59496924
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c59496924
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c59496924
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c59496924
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c59496924
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
59496924
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c59496924
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c59496924
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c59843383.lua
View file @
d0fa0490
...
@@ -53,7 +53,7 @@ end
...
@@ -53,7 +53,7 @@ end
function
c59843383
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59843383
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c59843383
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c59843383
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c59843383
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c59843383
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
59843383
,
2
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c59843383
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c59843383
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c60181553.lua
View file @
d0fa0490
...
@@ -27,7 +27,7 @@ function c60181553.indtg(e,c)
...
@@ -27,7 +27,7 @@ function c60181553.indtg(e,c)
end
end
function
c60181553
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60181553
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
60181553
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c60181553
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60181553
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
...
...
c61156777.lua
View file @
d0fa0490
...
@@ -57,7 +57,7 @@ function c61156777.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +57,7 @@ function c61156777.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c61156777
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61156777
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
61156777
,
2
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c61156777
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61156777
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
...
...
c6178850.lua
View file @
d0fa0490
...
@@ -51,7 +51,7 @@ function c6178850.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -51,7 +51,7 @@ function c6178850.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local
tg
=
c
:
GetEquipTarget
()
local
tg
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
c
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
if
chk
==
0
then
return
c
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
tg
and
tg
:
IsReason
(
REASON_BATTLE
)
end
and
tg
and
tg
:
IsReason
(
REASON_BATTLE
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
6178850
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c6178850
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6178850
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c61936647.lua
View file @
d0fa0490
...
@@ -88,7 +88,7 @@ function c61936647.repfilter(c,e)
...
@@ -88,7 +88,7 @@ function c61936647.repfilter(c,e)
end
end
function
c61936647
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61936647
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
eg
:
IsExists
(
c61936647
.
repfilter
,
1
,
nil
,
e
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
eg
:
IsExists
(
c61936647
.
repfilter
,
1
,
nil
,
e
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
61936647
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c61936647
.
repval
(
e
,
c
)
function
c61936647
.
repval
(
e
,
c
)
return
c61936647
.
repfilter
(
c
,
e
)
return
c61936647
.
repfilter
(
c
,
e
)
...
...
c62541668.lua
View file @
d0fa0490
...
@@ -62,7 +62,7 @@ function c62541668.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,7 +62,7 @@ function c62541668.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
62541668
,
3
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c63176202.lua
View file @
d0fa0490
...
@@ -56,7 +56,7 @@ function c63176202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -56,7 +56,7 @@ function c63176202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c63176202
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c63176202
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
63176202
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63176202
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63176202
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c63465535.lua
View file @
d0fa0490
...
@@ -85,7 +85,7 @@ function c63465535.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,7 +85,7 @@ function c63465535.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
ec
and
ec
:
IsHasCardTarget
(
c
)
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
ec
and
ec
:
IsHasCardTarget
(
c
)
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
ec
:
GetFlagEffect
(
63465535
)
~=
0
end
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
ec
:
GetFlagEffect
(
63465535
)
~=
0
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
63465535
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
end
end
function
c63465535
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63465535
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetLabelObject
():
GetLabelObject
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetLabelObject
():
GetLabelObject
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c63881033.lua
View file @
d0fa0490
...
@@ -95,7 +95,7 @@ function c63881033.repfilter(c,tp)
...
@@ -95,7 +95,7 @@ function c63881033.repfilter(c,tp)
end
end
function
c63881033
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63881033
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c63881033
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c63881033
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
63881033
,
2
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c63881033
.
repval
(
e
,
c
)
function
c63881033
.
repval
(
e
,
c
)
return
c63881033
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c63881033
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c64398890.lua
View file @
d0fa0490
...
@@ -62,7 +62,7 @@ function c64398890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,7 +62,7 @@ function c64398890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c64398890
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c64398890
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
64398890
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64398890
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64398890
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c64973287.lua
View file @
d0fa0490
...
@@ -28,7 +28,7 @@ function c64973287.repfilter(c,tp)
...
@@ -28,7 +28,7 @@ function c64973287.repfilter(c,tp)
end
end
function
c64973287
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64973287
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c64973287
.
repfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c64973287
.
repfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
64973287
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c64973287
.
repval
(
e
,
c
)
function
c64973287
.
repval
(
e
,
c
)
return
c64973287
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c64973287
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c65025250.lua
View file @
d0fa0490
...
@@ -37,7 +37,7 @@ function c65025250.filter(c,tp)
...
@@ -37,7 +37,7 @@ function c65025250.filter(c,tp)
end
end
function
c65025250
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65025250
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c65025250
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c65025250
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
65025250
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c65025250
.
repval
(
e
,
c
)
function
c65025250
.
repval
(
e
,
c
)
return
c65025250
.
filter
(
c
,
e
:
GetHandlerPlayer
())
return
c65025250
.
filter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c65305468.lua
View file @
d0fa0490
...
@@ -113,7 +113,7 @@ end
...
@@ -113,7 +113,7 @@ end
function
c65305468
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65305468
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
65305468
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c66835946.lua
View file @
d0fa0490
...
@@ -33,7 +33,7 @@ function c66835946.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -33,7 +33,7 @@ function c66835946.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsControler
(
tp
)
and
tc
:
IsFaceup
()
and
tc
:
IsRace
(
RACE_ZOMBIE
)
return
eg
:
GetCount
()
==
1
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsControler
(
tp
)
and
tc
:
IsFaceup
()
and
tc
:
IsRace
(
RACE_ZOMBIE
)
end
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
66835946
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c66835946
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66835946
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
...
...
c67173574.lua
View file @
d0fa0490
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
c67173574
.
xyz_number
=
102
c67173574
.
xyz_number
=
102
function
c67173574
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67173574
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
67173574
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c67511500.lua
View file @
d0fa0490
...
@@ -24,7 +24,7 @@ function c67511500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,7 +24,7 @@ function c67511500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
RACE_DRAGON
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
RACE_DRAGON
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
67511500
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
RACE_DRAGON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
RACE_DRAGON
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c675319.lua
View file @
d0fa0490
...
@@ -53,7 +53,7 @@ end
...
@@ -53,7 +53,7 @@ end
function
c675319
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c675319
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c675319
.
desfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c675319
.
desfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
and
eg
:
IsExists
(
c675319
.
repfilter
,
1
,
nil
,
tp
,
e
)
end
and
eg
:
IsExists
(
c675319
.
repfilter
,
1
,
nil
,
tp
,
e
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
675319
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
eg
:
Filter
(
c675319
.
repfilter
,
nil
,
tp
,
e
)
local
g
=
eg
:
Filter
(
c675319
.
repfilter
,
nil
,
tp
,
e
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c6853254.lua
View file @
d0fa0490
...
@@ -42,7 +42,7 @@ function c6853254.repfilter(c,tp)
...
@@ -42,7 +42,7 @@ function c6853254.repfilter(c,tp)
end
end
function
c6853254
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6853254
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c6853254
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c6853254
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
6853254
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c6853254
.
repval
(
e
,
c
)
function
c6853254
.
repval
(
e
,
c
)
return
c6853254
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c6853254
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c69025477.lua
View file @
d0fa0490
...
@@ -29,7 +29,7 @@ function c69025477.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c69025477.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c69025477
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c69025477
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
69025477
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69025477
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69025477
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c70458081.lua
View file @
d0fa0490
...
@@ -27,7 +27,7 @@ function c70458081.repfilter(c,tp)
...
@@ -27,7 +27,7 @@ function c70458081.repfilter(c,tp)
end
end
function
c70458081
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c70458081
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c70458081
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c70458081
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
70458081
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c70458081
.
repval
(
e
,
c
)
function
c70458081
.
repval
(
e
,
c
)
return
c70458081
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c70458081
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c72129804.lua
View file @
d0fa0490
...
@@ -59,7 +59,7 @@ function c72129804.repfilter(c,tp)
...
@@ -59,7 +59,7 @@ function c72129804.repfilter(c,tp)
end
end
function
c72129804
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72129804
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c72129804
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c72129804
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
72129804
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c72129804
.
repval
(
e
,
c
)
function
c72129804
.
repval
(
e
,
c
)
return
c72129804
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c72129804
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c72497366.lua
View file @
d0fa0490
...
@@ -36,7 +36,7 @@ function c72497366.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,7 +36,7 @@ function c72497366.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
tc
:
IsFaceup
()
and
tc
:
IsLocation
(
LOCATION_MZONE
)
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
tc
:
IsFaceup
()
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsRace
(
RACE_FIEND
)
and
tc
:
IsLevelAbove
(
5
)
and
tc
:
IsSummonType
(
SUMMON_TYPE_NORMAL
)
end
and
tc
:
IsRace
(
RACE_FIEND
)
and
tc
:
IsLevelAbove
(
5
)
and
tc
:
IsSummonType
(
SUMMON_TYPE_NORMAL
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
72497366
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c74580251.lua
View file @
d0fa0490
...
@@ -40,7 +40,7 @@ function c74580251.repfilter(c,tp)
...
@@ -40,7 +40,7 @@ function c74580251.repfilter(c,tp)
end
end
function
c74580251
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74580251
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
aux
.
exccon
(
e
)
and
eg
:
IsExists
(
c74580251
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
aux
.
exccon
(
e
)
and
eg
:
IsExists
(
c74580251
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
74580251
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c74580251
.
repval
(
e
,
c
)
function
c74580251
.
repval
(
e
,
c
)
return
c74580251
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c74580251
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c75775867.lua
View file @
d0fa0490
...
@@ -52,7 +52,7 @@ function c75775867.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function c75775867.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsDefensePos
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
IsDefensePos
()
and
Duel
.
IsExistingMatchingCard
(
c75775867
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c75775867
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
75775867
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75775867
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75775867
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
...
...
c76067258.lua
View file @
d0fa0490
...
@@ -63,7 +63,7 @@ function c76067258.repfilter(c,tp)
...
@@ -63,7 +63,7 @@ function c76067258.repfilter(c,tp)
end
end
function
c76067258
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76067258
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetCardTarget
():
IsExists
(
c76067258
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetCardTarget
():
IsExists
(
c76067258
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
76067258
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
e
:
GetHandler
():
GetCardTarget
():
FilterSelect
(
tp
,
c76067258
.
repfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
e
:
GetHandler
():
GetCardTarget
():
FilterSelect
(
tp
,
c76067258
.
repfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
c77610772.lua
View file @
d0fa0490
...
@@ -78,7 +78,7 @@ function c77610772.repfilter(c,tp,hc)
...
@@ -78,7 +78,7 @@ function c77610772.repfilter(c,tp,hc)
end
end
function
c77610772
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77610772
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGrave
()
and
eg
:
IsExists
(
c77610772
.
repfilter
,
1
,
nil
,
tp
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGrave
()
and
eg
:
IsExists
(
c77610772
.
repfilter
,
1
,
nil
,
tp
,
e
:
GetHandler
())
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
77610772
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c77610772
.
repval
(
e
,
c
)
function
c77610772
.
repval
(
e
,
c
)
return
c77610772
.
repfilter
(
c
,
e
:
GetHandlerPlayer
(),
e
:
GetHandler
())
return
c77610772
.
repfilter
(
c
,
e
:
GetHandlerPlayer
(),
e
:
GetHandler
())
...
...
c77631175.lua
View file @
d0fa0490
...
@@ -23,7 +23,7 @@ function c77631175.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c77631175.initial_effect(c)
end
end
function
c77631175
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77631175
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
77631175
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
77631175
,
e
,
0
,
0
,
0
,
0
)
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
77631175
,
e
,
0
,
0
,
0
,
0
)
...
...
c78156759.lua
View file @
d0fa0490
...
@@ -27,7 +27,7 @@ function c78156759.initial_effect(c)
...
@@ -27,7 +27,7 @@ function c78156759.initial_effect(c)
end
end
function
c78156759
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78156759
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
78156759
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RegisterFlagEffect
(
78156759
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
78156759
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
return
true
return
true
...
...
c78437364.lua
View file @
d0fa0490
...
@@ -34,7 +34,7 @@ function c78437364.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,7 +34,7 @@ function c78437364.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
c
:
GetLinkedGroup
()
local
g
=
c
:
GetLinkedGroup
()
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c78437364
.
repfilter
,
1
,
nil
,
tp
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c78437364
.
repfilter
,
1
,
nil
,
tp
)
end
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
78437364
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
c
:
GetLinkedGroup
()
local
g
=
c
:
GetLinkedGroup
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
sg
=
g
:
FilterSelect
(
tp
,
c78437364
.
repfilter
,
1
,
1
,
nil
,
tp
)
local
sg
=
g
:
FilterSelect
(
tp
,
c78437364
.
repfilter
,
1
,
1
,
nil
,
tp
)
...
...
c80143954.lua
View file @
d0fa0490
...
@@ -78,7 +78,7 @@ function c80143954.repfilter(c,tp)
...
@@ -78,7 +78,7 @@ function c80143954.repfilter(c,tp)
end
end
function
c80143954
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80143954
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c80143954
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c80143954
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
80143954
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c80143954
.
repval
(
e
,
c
)
function
c80143954
.
repval
(
e
,
c
)
return
c80143954
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c80143954
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c80476891.lua
View file @
d0fa0490
...
@@ -54,7 +54,7 @@ end
...
@@ -54,7 +54,7 @@ end
function
c80476891
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80476891
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80476891
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80476891
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
eg
:
IsExists
(
c80476891
.
repfilter
,
1
,
nil
,
tp
,
e
)
end
and
eg
:
IsExists
(
c80476891
.
repfilter
,
1
,
nil
,
tp
,
e
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
80476891
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
eg
:
Filter
(
c80476891
.
repfilter
,
nil
,
tp
,
e
)
local
g
=
eg
:
Filter
(
c80476891
.
repfilter
,
nil
,
tp
,
e
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c80566312.lua
View file @
d0fa0490
...
@@ -17,7 +17,7 @@ function c80566312.repfilter(c,tp)
...
@@ -17,7 +17,7 @@ function c80566312.repfilter(c,tp)
end
end
function
c80566312
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80566312
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c80566312
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c80566312
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
80566312
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c80566312
.
repval
(
e
,
c
)
function
c80566312
.
repval
(
e
,
c
)
return
c80566312
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c80566312
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c83347294.lua
View file @
d0fa0490
...
@@ -77,7 +77,7 @@ end
...
@@ -77,7 +77,7 @@ end
function
c83347294
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83347294
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c83347294
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c83347294
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c83347294
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c83347294
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
83347294
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83347294
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83347294
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c84341431.lua
View file @
d0fa0490
...
@@ -23,7 +23,7 @@ function c84341431.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c84341431.initial_effect(c)
end
end
function
c84341431
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84341431
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
84341431
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c8437145.lua
View file @
d0fa0490
...
@@ -50,7 +50,7 @@ function c8437145.repfilter(c,tp)
...
@@ -50,7 +50,7 @@ function c8437145.repfilter(c,tp)
end
end
function
c8437145
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8437145
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c8437145
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c8437145
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
8437145
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
eg
:
Filter
(
c8437145
.
repfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c8437145
.
repfilter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
if
g
:
GetCount
()
==
1
then
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c84847656.lua
View file @
d0fa0490
...
@@ -16,7 +16,7 @@ end
...
@@ -16,7 +16,7 @@ end
function
c84847656
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84847656
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
eg
:
IsContains
(
e
:
GetHandler
())
if
chk
==
0
then
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
CheckLPCost
(
tp
,
500
)
and
eg
:
IsExists
(
c84847656
.
dfilter
,
1
,
nil
)
end
and
Duel
.
CheckLPCost
(
tp
,
500
)
and
eg
:
IsExists
(
c84847656
.
dfilter
,
1
,
nil
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
84847656
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
return
true
return
true
else
return
false
end
else
return
false
end
...
...
c88234365.lua
View file @
d0fa0490
...
@@ -29,7 +29,7 @@ function c88234365.repfilter(c,tp)
...
@@ -29,7 +29,7 @@ function c88234365.repfilter(c,tp)
end
end
function
c88234365
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88234365
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
and
eg
:
IsExists
(
c88234365
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
and
eg
:
IsExists
(
c88234365
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
88234365
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c88234365
.
repval
(
e
,
c
)
function
c88234365
.
repval
(
e
,
c
)
return
c88234365
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c88234365
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c89333528.lua
View file @
d0fa0490
...
@@ -15,7 +15,7 @@ function c89333528.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -15,7 +15,7 @@ function c89333528.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c89333528
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c89333528
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
89333528
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89333528
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89333528
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
...
...
c90397998.lua
View file @
d0fa0490
...
@@ -62,7 +62,7 @@ function c90397998.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,7 +62,7 @@ function c90397998.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c90397998
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c90397998
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
90397998
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90397998
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90397998
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c95395761.lua
View file @
d0fa0490
...
@@ -67,8 +67,7 @@ function c95395761.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -67,8 +67,7 @@ function c95395761.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetEquipTarget
()
local
tc
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
95395761
,
1
))
then
return
true
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
else
return
false
end
end
end
function
c95395761
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95395761
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c95519486.lua
View file @
d0fa0490
...
@@ -44,7 +44,7 @@ function c95519486.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,7 +44,7 @@ function c95519486.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c95519486
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c95519486
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
95519486
,
1
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c95519486
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c95519486
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
...
c97617181.lua
View file @
d0fa0490
...
@@ -92,7 +92,7 @@ function c97617181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,7 +92,7 @@ function c97617181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ec
=
c
:
GetEquipTarget
()
local
ec
=
c
:
GetEquipTarget
()
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
if
chk
==
0
then
return
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
97617181
,
1
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
c
,
96
)
end
end
function
c97617181
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97617181
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c97648103.lua
View file @
d0fa0490
...
@@ -48,7 +48,7 @@ function c97648103.repfilter(c,tp)
...
@@ -48,7 +48,7 @@ function c97648103.repfilter(c,tp)
end
end
function
c97648103
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97648103
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c97648103
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c97648103
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
97648103
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c97648103
.
repval
(
e
,
c
)
function
c97648103
.
repval
(
e
,
c
)
return
c97648103
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c97648103
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
c97795930.lua
View file @
d0fa0490
...
@@ -76,7 +76,7 @@ function c97795930.repfilter(c,tp)
...
@@ -76,7 +76,7 @@ function c97795930.repfilter(c,tp)
end
end
function
c97795930
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97795930
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c97795930
.
repfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c97795930
.
repfilter
,
1
,
nil
,
tp
)
end
return
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
97795930
,
0
)
)
return
Duel
.
Select
EffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c97795930
.
repval
(
e
,
c
)
function
c97795930
.
repval
(
e
,
c
)
return
c97795930
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
return
c97795930
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
...
...
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