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
7ae86161
Commit
7ae86161
authored
Dec 12, 2019
by
nekrozar
Committed by
GitHub
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duel.SSet (#1265)
* fix sset * Update c25629622.lua
parent
c34f4d37
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
43 additions
and
68 deletions
+43
-68
c15939229.lua
c15939229.lua
+1
-1
c1948619.lua
c1948619.lua
+1
-1
c20618081.lua
c20618081.lua
+1
-1
c24010609.lua
c24010609.lua
+1
-1
c24425055.lua
c24425055.lua
+1
-2
c25629622.lua
c25629622.lua
+2
-3
c29649320.lua
c29649320.lua
+1
-1
c35498188.lua
c35498188.lua
+1
-1
c36429703.lua
c36429703.lua
+1
-2
c38363525.lua
c38363525.lua
+1
-2
c43930492.lua
c43930492.lua
+1
-1
c44133040.lua
c44133040.lua
+1
-1
c44640691.lua
c44640691.lua
+1
-2
c45803070.lua
c45803070.lua
+1
-2
c48086335.lua
c48086335.lua
+1
-3
c494922.lua
c494922.lua
+1
-2
c50237654.lua
c50237654.lua
+1
-1
c51339637.lua
c51339637.lua
+1
-2
c52240819.lua
c52240819.lua
+1
-1
c56920308.lua
c56920308.lua
+1
-2
c59054773.lua
c59054773.lua
+1
-1
c60990740.lua
c60990740.lua
+1
-2
c645794.lua
c645794.lua
+1
-2
c64961254.lua
c64961254.lua
+2
-2
c65330383.lua
c65330383.lua
+1
-2
c65357623.lua
c65357623.lua
+4
-5
c67829249.lua
c67829249.lua
+1
-2
c70564929.lua
c70564929.lua
+1
-1
c74003290.lua
c74003290.lua
+1
-2
c799183.lua
c799183.lua
+1
-2
c80101899.lua
c80101899.lua
+1
-2
c85800949.lua
c85800949.lua
+1
-2
c88332693.lua
c88332693.lua
+1
-2
c91742238.lua
c91742238.lua
+1
-2
c93294869.lua
c93294869.lua
+1
-2
c96704974.lua
c96704974.lua
+1
-2
c97064649.lua
c97064649.lua
+1
-2
c99004583.lua
c99004583.lua
+1
-1
No files found.
c15939229.lua
View file @
7ae86161
...
@@ -88,7 +88,7 @@ function c15939229.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -88,7 +88,7 @@ function c15939229.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c15939229
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15939229
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
c1948619.lua
View file @
7ae86161
...
@@ -52,7 +52,7 @@ function c1948619.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -52,7 +52,7 @@ function c1948619.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c1948619
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1948619
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
...
...
c20618081.lua
View file @
7ae86161
...
@@ -34,7 +34,7 @@ function c20618081.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -34,7 +34,7 @@ function c20618081.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c20618081
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20618081
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
...
...
c24010609.lua
View file @
7ae86161
...
@@ -109,7 +109,7 @@ function c24010609.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,7 +109,7 @@ function c24010609.setop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
or
ct
==
0
then
return
end
if
#
g
==
0
or
ct
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
c24010609
.
gselect
,
false
,
1
,
math.min
(
ct
,
ft
+
1
),
ft
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
c24010609
.
gselect
,
false
,
1
,
math.min
(
ct
,
ft
+
1
),
ft
)
Duel
.
SSet
(
tp
,
tg
)
if
Duel
.
SSet
(
tp
,
tg
)
==
0
then
return
end
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c24425055.lua
View file @
7ae86161
...
@@ -23,8 +23,7 @@ function c24425055.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,8 +23,7 @@ function c24425055.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24425055
.
filter2
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c24425055
.
filter2
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c25629622.lua
View file @
7ae86161
...
@@ -83,11 +83,10 @@ end
...
@@ -83,11 +83,10 @@ end
function
c25629622
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25629622
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25629622
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25629622
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
g
:
GetFirst
()
local
fid
=
c
:
GetFieldID
()
local
fid
=
c
:
GetFieldID
()
Duel
.
SSet
(
tp
,
tc
)
tc
:
RegisterFlagEffect
(
25629622
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
tc
:
RegisterFlagEffect
(
25629622
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
c29649320.lua
View file @
7ae86161
...
@@ -74,7 +74,7 @@ function c29649320.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +74,7 @@ function c29649320.setop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
local
sg
=
Group
.
FromCards
(
c
,
tc
)
local
sg
=
Group
.
FromCards
(
c
,
tc
)
Duel
.
SSet
(
tp
,
sg
)
if
Duel
.
SSet
(
tp
,
sg
)
==
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c35498188.lua
View file @
7ae86161
...
@@ -65,7 +65,7 @@ function c35498188.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -65,7 +65,7 @@ function c35498188.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c35498188
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35498188
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
c
)
Duel
.
SSet
(
tp
,
c
)
end
end
end
end
c36429703.lua
View file @
7ae86161
...
@@ -84,8 +84,7 @@ function c36429703.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,8 +84,7 @@ function c36429703.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c36429703
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c36429703
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
if
tc
:
IsType
(
TYPE_QUICKPLAY
)
then
if
tc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c38363525.lua
View file @
7ae86161
...
@@ -55,8 +55,7 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,8 +55,7 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38363525
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38363525
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c43930492.lua
View file @
7ae86161
...
@@ -59,7 +59,7 @@ function c43930492.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -59,7 +59,7 @@ function c43930492.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c43930492
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43930492
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
c44133040.lua
View file @
7ae86161
...
@@ -115,7 +115,7 @@ function c44133040.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -115,7 +115,7 @@ function c44133040.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c44133040
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44133040
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
c
)
Duel
.
SSet
(
tp
,
c
)
end
end
end
end
c44640691.lua
View file @
7ae86161
...
@@ -53,8 +53,7 @@ function c44640691.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,8 +53,7 @@ function c44640691.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c44640691
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c44640691
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
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
)
...
...
c45803070.lua
View file @
7ae86161
...
@@ -63,8 +63,7 @@ function c45803070.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -63,8 +63,7 @@ function c45803070.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c45803070
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c45803070
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
fid
=
e
:
GetHandler
():
GetFieldID
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
c48086335.lua
View file @
7ae86161
...
@@ -71,9 +71,7 @@ function c48086335.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,9 +71,7 @@ function c48086335.setop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_MONSTER_SSET
)
e1
:
SetCode
(
EFFECT_MONSTER_SSET
)
e1
:
SetValue
(
TYPE_SPELL
)
e1
:
SetValue
(
TYPE_SPELL
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
if
tc
:
IsSSetable
()
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
e1
:
Reset
()
e1
:
Reset
()
end
end
end
end
c494922.lua
View file @
7ae86161
...
@@ -41,8 +41,7 @@ function c494922.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -41,8 +41,7 @@ function c494922.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c494922
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c494922
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
(
tc
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
...
...
c50237654.lua
View file @
7ae86161
...
@@ -46,7 +46,7 @@ function c50237654.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function c50237654.drop(e,tp,eg,ep,ev,re,r,rp)
if
dc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
dc
:
IsSSetable
()
if
dc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
dc
:
IsSSetable
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
50237654
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
50237654
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SSet
(
tp
,
dc
,
tp
,
false
)
if
Duel
.
SSet
(
tp
,
dc
,
tp
,
false
)
==
0
then
return
end
if
dc
:
IsType
(
TYPE_QUICKPLAY
)
then
if
dc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c51339637.lua
View file @
7ae86161
...
@@ -71,8 +71,7 @@ function c51339637.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -71,8 +71,7 @@ function c51339637.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c51339637
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51339637
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c52240819.lua
View file @
7ae86161
...
@@ -95,7 +95,7 @@ function c52240819.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -95,7 +95,7 @@ function c52240819.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c52240819
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52240819
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
c56920308.lua
View file @
7ae86161
...
@@ -83,8 +83,7 @@ function c56920308.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -83,8 +83,7 @@ function c56920308.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c56920308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56920308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c59054773.lua
View file @
7ae86161
...
@@ -86,7 +86,7 @@ function c59054773.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -86,7 +86,7 @@ function c59054773.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c59054773
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59054773
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
c
)
Duel
.
SSet
(
tp
,
c
)
end
end
end
end
c60990740.lua
View file @
7ae86161
...
@@ -36,8 +36,7 @@ function c60990740.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,8 +36,7 @@ function c60990740.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
tp
,
1
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
tc
=
Duel
.
GetDecktopGroup
(
tp
,
1
):
GetFirst
()
local
tc
=
Duel
.
GetDecktopGroup
(
tp
,
1
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
if
tc
:
GetType
()
==
TYPE_TRAP
and
tc
:
IsSSetable
()
then
if
tc
:
GetType
()
==
TYPE_TRAP
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c645794.lua
View file @
7ae86161
...
@@ -42,8 +42,7 @@ function c645794.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,8 +42,7 @@ function c645794.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c645794
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c645794
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
...
...
c64961254.lua
View file @
7ae86161
...
@@ -57,9 +57,9 @@ function c64961254.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,9 @@ function c64961254.operation(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
then
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
,
1
-
tp
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
1
-
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
Duel
.
SpecialSummon
(
tc
,
0
,
1
-
tp
,
1
-
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
end
elseif
(
opt
==
1
and
tc
:
IsType
(
TYPE_SPELL
))
then
elseif
(
opt
==
1
and
tc
:
IsType
(
TYPE_SPELL
)
and
tc
:
IsSSetable
()
)
then
Duel
.
SSet
(
1
-
tp
,
tc
)
Duel
.
SSet
(
1
-
tp
,
tc
)
elseif
(
opt
==
2
and
tc
:
IsType
(
TYPE_TRAP
))
then
elseif
(
opt
==
2
and
tc
:
IsType
(
TYPE_TRAP
)
and
tc
:
IsSSetable
()
)
then
Duel
.
SSet
(
1
-
tp
,
tc
)
Duel
.
SSet
(
1
-
tp
,
tc
)
else
else
Duel
.
SendtoHand
(
g
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
1
-
tp
,
REASON_EFFECT
)
...
...
c65330383.lua
View file @
7ae86161
...
@@ -56,8 +56,7 @@ function c65330383.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -56,8 +56,7 @@ function c65330383.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c65330383
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65330383
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
...
...
c65357623.lua
View file @
7ae86161
...
@@ -39,11 +39,11 @@ function c65357623.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,11 +39,11 @@ function c65357623.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
atk
=
1000
local
atk
=
1000
if
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
65357623
,
1
),
aux
.
Stringid
(
65357623
,
2
))
==
1
then
atk
=-
1000
end
if
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
65357623
,
1
),
aux
.
Stringid
(
65357623
,
2
))
==
1
then
atk
=-
1000
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
atk
)
e1
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
...
@@ -61,8 +61,7 @@ function c65357623.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,8 +61,7 @@ function c65357623.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65357623
.
retfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65357623
.
retfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c67829249.lua
View file @
7ae86161
...
@@ -30,8 +30,7 @@ function c67829249.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,8 +30,7 @@ function c67829249.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67829249
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67829249
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
...
...
c70564929.lua
View file @
7ae86161
...
@@ -46,7 +46,7 @@ end
...
@@ -46,7 +46,7 @@ end
function
c70564929
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70564929
.
setop
(
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
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
Duel
.
SSet
(
tp
,
tc
)
end
end
end
end
...
...
c74003290.lua
View file @
7ae86161
...
@@ -69,8 +69,7 @@ function c74003290.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -69,8 +69,7 @@ function c74003290.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c74003290
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74003290
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c799183.lua
View file @
7ae86161
...
@@ -49,8 +49,7 @@ function c799183.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,8 +49,7 @@ function c799183.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c799183
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c799183
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c80101899.lua
View file @
7ae86161
...
@@ -30,8 +30,7 @@ function c80101899.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,8 +30,7 @@ function c80101899.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c80101899
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc1
:
GetCode
())
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c80101899
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc1
:
GetCode
())
local
tc2
=
g2
:
GetFirst
()
local
tc2
=
g2
:
GetFirst
()
if
tc2
then
if
tc2
and
Duel
.
SSet
(
tp
,
tc2
)
~=
0
then
Duel
.
SSet
(
tp
,
tc2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c85800949.lua
View file @
7ae86161
...
@@ -55,8 +55,7 @@ function c85800949.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,8 +55,7 @@ function c85800949.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c85800949
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85800949
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c88332693.lua
View file @
7ae86161
...
@@ -64,8 +64,7 @@ end
...
@@ -64,8 +64,7 @@ end
function
c88332693
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88332693
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c88332693
.
setfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c88332693
.
setfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c91742238.lua
View file @
7ae86161
...
@@ -58,8 +58,7 @@ function c91742238.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,8 +58,7 @@ function c91742238.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91742238
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91742238
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
SSet
(
tp
,
c
)
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
)
...
...
c93294869.lua
View file @
7ae86161
...
@@ -34,8 +34,7 @@ end
...
@@ -34,8 +34,7 @@ end
function
c93294869
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93294869
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93294869
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93294869
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
SSet
(
tp
,
g
)
~=
0
then
Duel
.
SSet
(
tp
,
g
)
local
sg
=
Duel
.
GetMatchingGroup
(
c93294869
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c93294869
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
e
:
GetLabel
()
==
1
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
93294869
,
1
))
then
if
e
:
GetLabel
()
==
1
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
93294869
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c96704974.lua
View file @
7ae86161
...
@@ -29,8 +29,7 @@ function c96704974.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,8 +29,7 @@ function c96704974.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c96704974
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96704974
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c97064649.lua
View file @
7ae86161
...
@@ -27,8 +27,7 @@ function c97064649.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -27,8 +27,7 @@ function c97064649.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c97064649
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97064649
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsSSetable
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
...
...
c99004583.lua
View file @
7ae86161
...
@@ -54,7 +54,7 @@ function c99004583.settg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c99004583.settg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c99004583
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99004583
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSSetable
()
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
c
)
Duel
.
SSet
(
tp
,
c
)
end
end
end
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