Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
f40769a8
Commit
f40769a8
authored
Aug 14, 2022
by
Chrono-Genex
Committed by
GitHub
Aug 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix destroy replace effect (#1941)
parent
db0e0555
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
77 additions
and
47 deletions
+77
-47
c10002346.lua
c10002346.lua
+2
-1
c1281505.lua
c1281505.lua
+4
-2
c16259549.lua
c16259549.lua
+5
-3
c176392.lua
c176392.lua
+6
-4
c19748583.lua
c19748583.lua
+2
-1
c20457551.lua
c20457551.lua
+2
-1
c23232295.lua
c23232295.lua
+1
-0
c23998625.lua
c23998625.lua
+5
-3
c2525268.lua
c2525268.lua
+1
-1
c25853045.lua
c25853045.lua
+5
-3
c30794966.lua
c30794966.lua
+2
-1
c31766317.lua
c31766317.lua
+1
-1
c33438666.lua
c33438666.lua
+1
-0
c39373426.lua
c39373426.lua
+1
-1
c39910367.lua
c39910367.lua
+3
-3
c4252828.lua
c4252828.lua
+2
-1
c49678559.lua
c49678559.lua
+6
-4
c50186558.lua
c50186558.lua
+2
-1
c60181553.lua
c60181553.lua
+2
-1
c66835946.lua
c66835946.lua
+1
-0
c67173574.lua
c67173574.lua
+5
-3
c675319.lua
c675319.lua
+1
-1
c72497366.lua
c72497366.lua
+2
-1
c74580251.lua
c74580251.lua
+1
-1
c76067258.lua
c76067258.lua
+5
-3
c78156759.lua
c78156759.lua
+2
-1
c8437145.lua
c8437145.lua
+1
-1
c94599451.lua
c94599451.lua
+2
-2
c95395761.lua
c95395761.lua
+2
-1
c99469936.lua
c99469936.lua
+2
-1
No files found.
c10002346.lua
View file @
f40769a8
...
...
@@ -28,7 +28,8 @@ function c10002346.val(e,c)
return
e
:
GetHandler
():
GetOverlayCount
()
*
200
end
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
)
and
not
e
:
GetHandler
():
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
function
c10002346
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1281505.lua
View file @
f40769a8
...
...
@@ -56,8 +56,10 @@ function c1281505.eqlimit(e,c)
return
c
:
IsControler
(
tp
)
end
function
c1281505
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
c
:
GetEquipTarget
():
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c1281505
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
c16259549.lua
View file @
f40769a8
...
...
@@ -60,9 +60,11 @@ function c16259549.recop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
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
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
else
return
false
end
end
...
...
c176392.lua
View file @
f40769a8
...
...
@@ -25,12 +25,14 @@ function c176392.descon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
function
c176392
.
rfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x1d
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x1d
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
eg
:
IsExists
(
c176392
.
rfilter
,
1
,
c
)
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Destroy
(
c
,
REASON_EFFECT
+
REASON_REPLACE
)
return
true
else
return
false
end
end
...
...
c19748583.lua
View file @
f40769a8
...
...
@@ -73,7 +73,8 @@ function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
tc
and
tc
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
tc
:
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
e
:
GetOwnerPlayer
(),
c
,
96
)
end
function
c19748583
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20457551.lua
View file @
f40769a8
...
...
@@ -65,7 +65,8 @@ function c20457551.atkval(e,c)
return
e
:
GetHandler
():
GetEquipTarget
():
GetLevel
()
*-
100
end
function
c20457551
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
e
:
GetHandler
():
GetEquipTarget
():
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
return
true
...
...
c23232295.lua
View file @
f40769a8
...
...
@@ -24,6 +24,7 @@ function c23232295.initial_effect(c)
end
function
c23232295
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x84
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c23998625.lua
View file @
f40769a8
...
...
@@ -51,9 +51,11 @@ 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
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
else
return
false
end
end
...
...
c2525268.lua
View file @
f40769a8
...
...
@@ -32,7 +32,7 @@ function c2525268.addc(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c2525268
.
dfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c2525268
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c25853045.lua
View file @
f40769a8
...
...
@@ -38,9 +38,11 @@ function c25853045.atkval(e,c)
return
c
:
GetOverlayCount
()
*
200
end
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
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
c
:
GetOverlayGroup
()
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
return
true
else
return
false
end
...
...
c30794966.lua
View file @
f40769a8
...
...
@@ -45,7 +45,8 @@ function c30794966.repfilter(c)
end
function
c30794966
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
c
)
end
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
CheckReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
c
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c30794966
.
repfilter
,
1
,
1
,
c
)
...
...
c31766317.lua
View file @
f40769a8
...
...
@@ -26,7 +26,7 @@ end
function
c31766317
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
dc
=
eg
:
GetFirst
()
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
not
dc
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c31766317
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
...
c33438666.lua
View file @
f40769a8
...
...
@@ -30,6 +30,7 @@ end
function
c33438666
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c33438666
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
eg
:
FilterCount
(
c33438666
.
repfilter
,
nil
,
tp
)
...
...
c39373426.lua
View file @
f40769a8
...
...
@@ -113,7 +113,7 @@ function c39373426.cnop(e,tp,eg,ep,ev,re,r,rp)
end
function
c39373426
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xee
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c39910367.lua
View file @
f40769a8
...
...
@@ -54,12 +54,12 @@ function c39910367.rop(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RemoveCounter
(
ep
,
0x1
,
ev
,
REASON_EFFECT
)
end
function
c39910367
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
e
:
GetHandler
():
GetCounter
(
0x1
)
>
0
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
+
REASON_REPLACE
)
and
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x1
,
1
,
REASON_EFFECT
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
function
c39910367
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
e
p
,
0x1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
t
p
,
0x1
,
1
,
REASON_EFFECT
)
end
function
c39910367
.
addop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
count
=
0
...
...
c4252828.lua
View file @
f40769a8
...
...
@@ -69,7 +69,8 @@ function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
ec
=
e
:
GetLabelObject
():
GetLabelObject
()
if
chk
==
0
then
return
ec
and
ec
:
IsHasCardTarget
(
c
)
and
ec
:
GetFlagEffect
(
4252828
)
~=
0
and
ec
:
IsDestructable
(
e
)
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
and
ec
:
IsDestructable
(
e
)
and
not
ec
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c4252828
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c49678559.lua
View file @
f40769a8
...
...
@@ -63,11 +63,13 @@ 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
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
c
:
GetOverlayGroup
()
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
c50186558.lua
View file @
f40769a8
...
...
@@ -58,7 +58,8 @@ function c50186558.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c50186558
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c50186558
.
tgfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGrave
()
...
...
c60181553.lua
View file @
f40769a8
...
...
@@ -26,7 +26,8 @@ function c60181553.indtg(e,c)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
end
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
)
and
not
e
:
GetHandler
():
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
function
c60181553
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c66835946.lua
View file @
f40769a8
...
...
@@ -32,6 +32,7 @@ function c66835946.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
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
)
and
not
tc
:
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
...
...
c67173574.lua
View file @
f40769a8
...
...
@@ -37,9 +37,11 @@ function c67173574.initial_effect(c)
end
aux
.
xyz_number
[
67173574
]
=
102
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
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_EFFECT
)
return
true
else
return
false
end
end
...
...
c675319.lua
View file @
f40769a8
...
...
@@ -44,7 +44,7 @@ function c675319.atlimit(e,c)
end
function
c675319
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xf1
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetFlagEffect
(
675319
)
==
0
and
c
:
IsSetCard
(
0xf1
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetFlagEffect
(
675319
)
==
0
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c675319
.
desfilter
(
c
,
e
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
c72497366.lua
View file @
f40769a8
...
...
@@ -35,7 +35,8 @@ end
function
c72497366
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
GetFirst
()
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
)
and
not
tc
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
return
true
...
...
c74580251.lua
View file @
f40769a8
...
...
@@ -36,7 +36,7 @@ function c74580251.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c74580251
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc4
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsControler
(
tp
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c76067258.lua
View file @
f40769a8
...
...
@@ -58,10 +58,12 @@ function c76067258.repfilter(c,tp)
return
c
:
IsControler
(
tp
)
and
c
:
GetFlagEffect
(
76067258
)
~=
0
end
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
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetCardTarget
():
IsExists
(
c76067258
.
repfilter
,
1
,
nil
,
tp
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
e
:
GetHandler
()
:
GetCardTarget
():
FilterSelect
(
tp
,
c76067258
.
repfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
c
:
GetCardTarget
():
FilterSelect
(
tp
,
c76067258
.
repfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
return
true
else
return
false
end
...
...
c78156759.lua
View file @
f40769a8
...
...
@@ -26,7 +26,8 @@ function c78156759.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
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
not
e
:
GetHandler
():
IsReason
(
REASON_REPLACE
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RegisterFlagEffect
(
78156759
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
c8437145.lua
View file @
f40769a8
...
...
@@ -46,7 +46,7 @@ function c8437145.efilter(e,re)
end
function
c8437145
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xbb
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsSetCard
(
0xbb
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c94599451.lua
View file @
f40769a8
...
...
@@ -86,9 +86,9 @@ function c94599451.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c94599451
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetCounter
(
0x1
)
>
0
end
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x1
,
1
,
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c94599451
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
e
p
,
0x1
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
t
p
,
0x1
,
1
,
REASON_EFFECT
)
end
c95395761.lua
View file @
f40769a8
...
...
@@ -65,7 +65,8 @@ function c95395761.eqlimit(e,c)
end
function
c95395761
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
chk
==
0
then
return
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
c
:
GetEquipTarget
():
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c95395761
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c99469936.lua
View file @
f40769a8
...
...
@@ -38,7 +38,8 @@ function c99469936.atkval(e,c)
return
c
:
GetOverlayCount
()
*
500
end
function
c99469936
.
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
not
e
:
GetHandler
():
IsReason
(
REASON_REPLACE
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
...
...
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