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
9c71d738
Commit
9c71d738
authored
Jun 03, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix replace effect
parent
513f5119
Changes
40
Show whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
46 additions
and
42 deletions
+46
-42
c1580833.lua
c1580833.lua
+1
-1
c17228908.lua
c17228908.lua
+1
-1
c25231813.lua
c25231813.lua
+1
-1
c33964637.lua
c33964637.lua
+1
-1
c37752990.lua
c37752990.lua
+2
-2
c39996157.lua
c39996157.lua
+1
-1
c43175858.lua
c43175858.lua
+1
-1
c43266605.lua
c43266605.lua
+1
-1
c43577607.lua
c43577607.lua
+1
-0
c44686185.lua
c44686185.lua
+1
-1
c4545854.lua
c4545854.lua
+1
-1
c47349116.lua
c47349116.lua
+1
-1
c48739166.lua
c48739166.lua
+3
-2
c5067884.lua
c5067884.lua
+1
-1
c52665542.lua
c52665542.lua
+1
-1
c56111151.lua
c56111151.lua
+1
-1
c56889.lua
c56889.lua
+1
-1
c5817857.lua
c5817857.lua
+1
-1
c59843383.lua
c59843383.lua
+1
-1
c61156777.lua
c61156777.lua
+3
-2
c61936647.lua
c61936647.lua
+1
-1
c62541668.lua
c62541668.lua
+1
-1
c64973287.lua
c64973287.lua
+1
-1
c65305468.lua
c65305468.lua
+1
-1
c6579928.lua
c6579928.lua
+1
-1
c67511500.lua
c67511500.lua
+1
-1
c70180284.lua
c70180284.lua
+1
-1
c70458081.lua
c70458081.lua
+1
-1
c71207871.lua
c71207871.lua
+1
-1
c77610772.lua
c77610772.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
c84341431.lua
c84341431.lua
+1
-1
c88234365.lua
c88234365.lua
+1
-1
c94666032.lua
c94666032.lua
+1
-1
c97617181.lua
c97617181.lua
+2
-1
c97795930.lua
c97795930.lua
+1
-1
c98153934.lua
c98153934.lua
+1
-1
No files found.
c1580833.lua
View file @
9c71d738
...
...
@@ -24,7 +24,7 @@ function c1580833.initial_effect(c)
end
function
c1580833
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0xd8
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c1580833
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c17228908.lua
View file @
9c71d738
...
...
@@ -88,7 +88,7 @@ function c17228908.tglimit(e,c)
end
function
c17228908
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
GetFlagEffect
(
17228908
)
==
0
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
GetFlagEffect
(
17228908
)
==
0
end
function
c17228908
.
desfilter
(
c
,
e
)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsDestructable
(
e
)
...
...
c25231813.lua
View file @
9c71d738
...
...
@@ -56,7 +56,7 @@ function c25231813.indval(e,re,r,rp)
end
function
c25231813
.
reptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetEquipTarget
():
IsReason
(
REASON_EFFECT
)
if
chk
==
0
then
return
c
:
GetEquipTarget
():
IsReason
(
REASON_EFFECT
)
and
not
c
:
GetEquipTarget
():
IsReason
(
REASON_REPLACE
)
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
...
...
c33964637.lua
View file @
9c71d738
...
...
@@ -108,7 +108,7 @@ function c33964637.rmop(e,tp,eg,ep,ev,re,r,rp)
end
function
c33964637
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c33964637
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c33964637
.
repfilter
,
1
,
nil
,
tp
)
end
...
...
c37752990.lua
View file @
9c71d738
...
...
@@ -22,7 +22,7 @@ function c37752990.initial_effect(c)
end
function
c37752990
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0xd8
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c37752990
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c39996157.lua
View file @
9c71d738
...
...
@@ -71,7 +71,7 @@ function c39996157.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c39996157
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c43175858.lua
View file @
9c71d738
...
...
@@ -51,7 +51,7 @@ function c43175858.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c43175858
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TOON
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_TOON
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c43175858
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
eg
:
FilterCount
(
c43175858
.
repfilter
,
nil
,
tp
)
...
...
c43266605.lua
View file @
9c71d738
...
...
@@ -32,7 +32,7 @@ function c43266605.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c43266605
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc1
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc1
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c43577607.lua
View file @
9c71d738
...
...
@@ -73,6 +73,7 @@ function c43577607.atktg(e,c)
end
function
c43577607
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9e
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c44686185.lua
View file @
9c71d738
...
...
@@ -66,7 +66,7 @@ function c44686185.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c44686185
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c44686185
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c44686185
.
repfilter
,
1
,
nil
,
tp
)
...
...
c4545854.lua
View file @
9c71d738
...
...
@@ -39,7 +39,7 @@ function c4545854.adval(e,c)
return
c
:
GetRank
()
*
200
end
function
c4545854
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_R
UL
E
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_R
EPLAC
E
)
and
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
0
,
1
,
1
,
REASON_EFFECT
)
...
...
c47349116.lua
View file @
9c71d738
...
...
@@ -58,7 +58,7 @@ function c47349116.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c47349116
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_PZONE
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c47349116
.
tgfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAbleToGrave
()
...
...
c48739166.lua
View file @
9c71d738
...
...
@@ -50,9 +50,10 @@ 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
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
e
:
GetHandler
()
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
else
return
false
end
end
c5067884.lua
View file @
9c71d738
...
...
@@ -23,7 +23,7 @@ function c5067884.initial_effect(c)
end
function
c5067884
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0xd8
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c5067884
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c52665542.lua
View file @
9c71d738
...
...
@@ -77,7 +77,7 @@ function c52665542.acop(e,tp,eg,ep,ev,re,r,rp)
end
function
c52665542
.
dfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0x38
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x38
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c52665542
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c56111151.lua
View file @
9c71d738
...
...
@@ -63,7 +63,7 @@ function c56111151.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c56111151
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_R
UL
E
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_R
EPLAC
E
)
and
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x37
,
1
,
REASON_EFFECT
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
...
...
c56889.lua
View file @
9c71d738
...
...
@@ -67,7 +67,7 @@ function c56889.retop(e,tp,eg,ep,ev,re,r,rp)
end
function
c56889
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
83104731
,
95735217
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c56889
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c56889
.
repfilter
,
1
,
nil
,
tp
)
end
...
...
c5817857.lua
View file @
9c71d738
...
...
@@ -66,7 +66,7 @@ function c5817857.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
eg
:
GetCount
()
~=
1
then
return
false
end
local
tc
=
eg
:
GetFirst
()
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
not
tc
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
c5817857
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
...
...
c59843383.lua
View file @
9c71d738
...
...
@@ -45,7 +45,7 @@ function c59843383.tdop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c59843383
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c59843383
.
rmfilter
(
c
)
return
c
:
IsSetCard
(
0xd9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
...
...
c61156777.lua
View file @
9c71d738
...
...
@@ -56,8 +56,9 @@ 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
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c61156777
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x34
,
1
,
REASON_EFFECT
)
...
...
c61936647.lua
View file @
9c71d738
...
...
@@ -84,7 +84,7 @@ function c61936647.ctg(e,c)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c61936647
.
repfilter
(
c
,
e
)
return
c61936647
.
ctg
(
e
,
c
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c61936647
.
ctg
(
e
,
c
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c61936647
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c62541668.lua
View file @
9c71d738
...
...
@@ -59,7 +59,7 @@ function c62541668.rmop(e,tp,eg,ep,ev,re,r,rp)
end
function
c62541668
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
...
...
c64973287.lua
View file @
9c71d738
...
...
@@ -24,7 +24,7 @@ function c64973287.initial_effect(c)
end
function
c64973287
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0xd8
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c64973287
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c65305468.lua
View file @
9c71d738
...
...
@@ -57,7 +57,7 @@ function c65305468.ctop(e,tp,eg,ep,ev,re,r,rp)
end
function
c65305468
.
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
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
chk
==
0
then
return
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
return
true
...
...
c6579928.lua
View file @
9c71d738
...
...
@@ -40,7 +40,7 @@ function c6579928.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c6579928
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c6579928
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c6579928
.
repfilter
,
1
,
nil
,
tp
)
...
...
c67511500.lua
View file @
9c71d738
...
...
@@ -22,7 +22,7 @@ function c67511500.atlimit(e,c)
end
function
c67511500
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
RACE_DRAGON
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c70180284.lua
View file @
9c71d738
...
...
@@ -46,7 +46,7 @@ function c70180284.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c70180284
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c70180284
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c70180284
.
repfilter
,
1
,
nil
,
tp
)
...
...
c70458081.lua
View file @
9c71d738
...
...
@@ -23,7 +23,7 @@ function c70458081.atlimit(e,c)
end
function
c70458081
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
and
not
c
:
IsCode
(
70458081
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c71207871.lua
View file @
9c71d738
...
...
@@ -41,7 +41,7 @@ function c71207871.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c71207871
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c71207871
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c71207871
.
repfilter
,
1
,
nil
,
tp
)
...
...
c77610772.lua
View file @
9c71d738
...
...
@@ -48,7 +48,7 @@ function c77610772.incon(e)
end
function
c77610772
.
repfilter
(
c
,
tp
,
hc
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
hc
:
GetLinkedGroup
():
IsContains
(
c
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
hc
:
GetLinkedGroup
():
IsContains
(
c
)
end
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
...
...
c78437364.lua
View file @
9c71d738
...
...
@@ -33,7 +33,7 @@ function c78437364.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
g
=
c
:
GetLinkedGroup
()
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c78437364
.
repfilter
,
1
,
nil
,
e
,
tp
)
return
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
g
:
IsExists
(
c78437364
.
repfilter
,
1
,
nil
,
e
,
tp
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
c
:
GetLinkedGroup
()
...
...
c80143954.lua
View file @
9c71d738
...
...
@@ -100,7 +100,7 @@ function c80143954.negop(e,tp,eg,ep,ev,re,r,rp)
end
function
c80143954
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
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
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
...
...
c80476891.lua
View file @
9c71d738
...
...
@@ -45,7 +45,7 @@ function c80476891.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c80476891
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetFlagEffect
(
80476891
)
==
0
and
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
GetFlagEffect
(
80476891
)
==
0
end
function
c80476891
.
desfilter
(
c
,
e
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
...
...
c80566312.lua
View file @
9c71d738
...
...
@@ -13,7 +13,7 @@ function c80566312.initial_effect(c)
end
function
c80566312
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c84341431.lua
View file @
9c71d738
...
...
@@ -22,7 +22,7 @@ function c84341431.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
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
not
e
:
GetHandler
():
IsReason
(
REASON_REPLACE
)
and
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
PayLPCost
(
tp
,
500
)
return
true
...
...
c88234365.lua
View file @
9c71d738
...
...
@@ -25,7 +25,7 @@ function c88234365.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c88234365
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xef
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xef
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
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
...
...
c94666032.lua
View file @
9c71d738
...
...
@@ -85,7 +85,7 @@ function c94666032.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c94666032
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCode
(
4388680
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
c
:
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c94666032
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c94666032
.
repfilter
,
1
,
nil
,
tp
)
end
...
...
c97617181.lua
View file @
9c71d738
...
...
@@ -92,7 +92,8 @@ function c97617181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ec
=
c
:
GetEquipTarget
()
local
ph
=
Duel
.
GetCurrentPhase
()
if
chk
==
0
then
return
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
ec
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
ec
:
IsReason
(
REASON_REPLACE
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
c97617181
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c97795930.lua
View file @
9c71d738
...
...
@@ -70,7 +70,7 @@ function c97795930.handcon(e)
end
function
c97795930
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
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
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
...
...
c98153934.lua
View file @
9c71d738
...
...
@@ -53,7 +53,7 @@ function c98153934.damop(e,tp,eg,ep,ev,re,r,rp)
end
function
c98153934
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
~=
tp
))
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c98153934
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
c98153934
.
repfilter
,
1
,
nil
,
tp
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment