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
a1def3d1
Commit
a1def3d1
authored
Nov 07, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename _replace_count
parent
f3609109
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
60 additions
and
60 deletions
+60
-60
c27564031.lua
c27564031.lua
+4
-4
c27979109.lua
c27979109.lua
+4
-4
c36623431.lua
c36623431.lua
+4
-4
c45950291.lua
c45950291.lua
+4
-4
c49681811.lua
c49681811.lua
+4
-4
c49838105.lua
c49838105.lua
+4
-4
c50418970.lua
c50418970.lua
+4
-4
c56856951.lua
c56856951.lua
+4
-4
c59650656.lua
c59650656.lua
+4
-4
c64400161.lua
c64400161.lua
+4
-4
c66499018.lua
c66499018.lua
+4
-4
c70676581.lua
c70676581.lua
+4
-4
c88851326.lua
c88851326.lua
+4
-4
c91819979.lua
c91819979.lua
+4
-4
c97697678.lua
c97697678.lua
+4
-4
No files found.
c27564031.lua
View file @
a1def3d1
...
@@ -28,8 +28,8 @@ function c27564031.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,8 +28,8 @@ function c27564031.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27564031
.
filter
,
tp
,
LOCATION_DECK
,
0
,
3
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27564031
.
filter
,
tp
,
LOCATION_DECK
,
0
,
3
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -42,8 +42,8 @@ function c27564031.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,8 +42,8 @@ function c27564031.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
end
function
c27564031
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27564031
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c27564031
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c27564031
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>=
3
then
if
g
:
GetCount
()
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c27979109.lua
View file @
a1def3d1
...
@@ -41,8 +41,8 @@ function c27979109.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -41,8 +41,8 @@ function c27979109.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27979109
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27979109
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -55,8 +55,8 @@ function c27979109.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,8 +55,8 @@ function c27979109.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c27979109
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27979109
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27979109
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27979109
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c36623431.lua
View file @
a1def3d1
...
@@ -31,8 +31,8 @@ function c36623431.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,8 +31,8 @@ function c36623431.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -46,8 +46,8 @@ function c36623431.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -46,8 +46,8 @@ function c36623431.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c36623431
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36623431
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
...
...
c45950291.lua
View file @
a1def3d1
...
@@ -85,8 +85,8 @@ function c45950291.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,8 +85,8 @@ function c45950291.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -100,8 +100,8 @@ function c45950291.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -100,8 +100,8 @@ function c45950291.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c45950291
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c45950291
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
...
...
c49681811.lua
View file @
a1def3d1
...
@@ -61,8 +61,8 @@ function c49681811.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,8 +61,8 @@ function c49681811.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49681811
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49681811
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -75,8 +75,8 @@ function c49681811.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,8 +75,8 @@ function c49681811.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
end
function
c49681811
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49681811
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c49681811
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c49681811
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
~=
0
then
if
g
:
GetCount
()
~=
0
then
...
...
c49838105.lua
View file @
a1def3d1
...
@@ -54,8 +54,8 @@ function c49838105.cftg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,8 +54,8 @@ function c49838105.cftg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -69,8 +69,8 @@ end
...
@@ -69,8 +69,8 @@ end
function
c49838105
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49838105
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
then
Duel
.
ConfirmDecktop
(
tp
,
1
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
...
c50418970.lua
View file @
a1def3d1
...
@@ -93,8 +93,8 @@ function c50418970.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -93,8 +93,8 @@ function c50418970.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -108,8 +108,8 @@ function c50418970.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -108,8 +108,8 @@ function c50418970.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c50418970
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50418970
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
...
...
c56856951.lua
View file @
a1def3d1
...
@@ -48,8 +48,8 @@ function c56856951.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,8 +48,8 @@ function c56856951.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -63,8 +63,8 @@ function c56856951.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,8 +63,8 @@ function c56856951.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c56856951
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56856951
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
...
...
c59650656.lua
View file @
a1def3d1
...
@@ -62,8 +62,8 @@ function c59650656.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -62,8 +62,8 @@ function c59650656.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingTarget
(
c59650656
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c59650656
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -79,8 +79,8 @@ function c59650656.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -79,8 +79,8 @@ function c59650656.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c59650656
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59650656
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
tc
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
c64400161.lua
View file @
a1def3d1
...
@@ -39,8 +39,8 @@ function c64400161.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,8 +39,8 @@ function c64400161.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c64400161
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c64400161
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -53,8 +53,8 @@ function c64400161.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -53,8 +53,8 @@ function c64400161.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
end
function
c64400161
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64400161
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64400161
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64400161
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c66499018.lua
View file @
a1def3d1
...
@@ -20,8 +20,8 @@ function c66499018.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,8 +20,8 @@ function c66499018.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -35,8 +35,8 @@ function c66499018.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,8 +35,8 @@ function c66499018.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c66499018
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66499018
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
...
...
c70676581.lua
View file @
a1def3d1
...
@@ -70,8 +70,8 @@ function c70676581.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,8 +70,8 @@ function c70676581.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c70676581
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c70676581
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -84,8 +84,8 @@ function c70676581.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -84,8 +84,8 @@ function c70676581.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
end
function
c70676581
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70676581
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c70676581
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c70676581
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
~=
0
then
if
g
:
GetCount
()
~=
0
then
...
...
c88851326.lua
View file @
a1def3d1
...
@@ -107,8 +107,8 @@ function c88851326.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -107,8 +107,8 @@ function c88851326.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -140,8 +140,8 @@ function c88851326.checkop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -140,8 +140,8 @@ function c88851326.checkop1(e,tp,eg,ep,ev,re,r,rp)
e
:
Reset
()
e
:
Reset
()
end
end
function
c88851326
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88851326
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88851326
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c91819979.lua
View file @
a1def3d1
...
@@ -42,8 +42,8 @@ function c91819979.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,8 +42,8 @@ function c91819979.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -57,8 +57,8 @@ function c91819979.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,8 +57,8 @@ function c91819979.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c91819979
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91819979
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
<=
_replace_m
ax
and
c
:
IsRelateToEffect
(
e
)
then
if
aux
.
DrawReplaceCount
<=
aux
.
DrawReplaceM
ax
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
end
end
...
...
c97697678.lua
View file @
a1def3d1
...
@@ -22,8 +22,8 @@ function c97697678.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,8 +22,8 @@ function c97697678.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97697678
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97697678
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
dt
=
Duel
.
GetDrawCount
(
tp
)
local
dt
=
Duel
.
GetDrawCount
(
tp
)
if
dt
~=
0
then
if
dt
~=
0
then
_replace_c
ount
=
0
aux
.
DrawReplaceC
ount
=
0
_replace_m
ax
=
dt
aux
.
DrawReplaceM
ax
=
dt
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
@@ -36,8 +36,8 @@ function c97697678.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,8 +36,8 @@ function c97697678.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c97697678
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97697678
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_c
ount
+
1
aux
.
DrawReplaceCount
=
aux
.
DrawReplaceC
ount
+
1
if
_replace_count
>
_replace_m
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
if
aux
.
DrawReplaceCount
>
aux
.
DrawReplaceM
ax
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c97697678
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c97697678
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
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