Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
nanahira
ygopro
Commits
7265bf40
Commit
7265bf40
authored
Jul 10, 2012
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing hint message
parent
fd294a70
Changes
80
Hide whitespace changes
Inline
Side-by-side
Showing
80 changed files
with
88 additions
and
9 deletions
+88
-9
script/c11047543.lua
script/c11047543.lua
+1
-0
script/c11596936.lua
script/c11596936.lua
+1
-0
script/c14289852.lua
script/c14289852.lua
+1
-0
script/c15313433.lua
script/c15313433.lua
+1
-0
script/c15471265.lua
script/c15471265.lua
+1
-0
script/c15629801.lua
script/c15629801.lua
+1
-0
script/c17241370.lua
script/c17241370.lua
+1
-0
script/c17377751.lua
script/c17377751.lua
+1
-0
script/c1802450.lua
script/c1802450.lua
+2
-0
script/c1834753.lua
script/c1834753.lua
+1
-1
script/c2377034.lua
script/c2377034.lua
+1
-0
script/c24025620.lua
script/c24025620.lua
+1
-0
script/c24104865.lua
script/c24104865.lua
+1
-0
script/c26412047.lua
script/c26412047.lua
+1
-0
script/c29515122.lua
script/c29515122.lua
+1
-0
script/c32710364.lua
script/c32710364.lua
+1
-0
script/c33455338.lua
script/c33455338.lua
+1
-0
script/c3429238.lua
script/c3429238.lua
+1
-1
script/c36565699.lua
script/c36565699.lua
+1
-0
script/c38318146.lua
script/c38318146.lua
+1
-0
script/c38522377.lua
script/c38522377.lua
+1
-0
script/c41442341.lua
script/c41442341.lua
+1
-0
script/c41705642.lua
script/c41705642.lua
+1
-1
script/c41858121.lua
script/c41858121.lua
+2
-1
script/c41930553.lua
script/c41930553.lua
+2
-0
script/c42425831.lua
script/c42425831.lua
+2
-0
script/c4290468.lua
script/c4290468.lua
+1
-1
script/c46089249.lua
script/c46089249.lua
+1
-0
script/c46384403.lua
script/c46384403.lua
+1
-0
script/c50032342.lua
script/c50032342.lua
+1
-1
script/c525110.lua
script/c525110.lua
+1
-0
script/c52684508.lua
script/c52684508.lua
+1
-0
script/c52860176.lua
script/c52860176.lua
+1
-0
script/c52971944.lua
script/c52971944.lua
+2
-0
script/c55136228.lua
script/c55136228.lua
+1
-0
script/c56223084.lua
script/c56223084.lua
+1
-0
script/c57036718.lua
script/c57036718.lua
+1
-0
script/c57662975.lua
script/c57662975.lua
+1
-0
script/c58990631.lua
script/c58990631.lua
+1
-0
script/c59965151.lua
script/c59965151.lua
+1
-0
script/c60806437.lua
script/c60806437.lua
+1
-0
script/c61807040.lua
script/c61807040.lua
+1
-0
script/c63101919.lua
script/c63101919.lua
+1
-0
script/c65303664.lua
script/c65303664.lua
+1
-0
script/c65659181.lua
script/c65659181.lua
+1
-0
script/c66729231.lua
script/c66729231.lua
+1
-0
script/c66788016.lua
script/c66788016.lua
+1
-0
script/c66957584.lua
script/c66957584.lua
+2
-0
script/c69537999.lua
script/c69537999.lua
+1
-1
script/c70391588.lua
script/c70391588.lua
+1
-0
script/c71564150.lua
script/c71564150.lua
+1
-0
script/c74825788.lua
script/c74825788.lua
+1
-1
script/c75833426.lua
script/c75833426.lua
+1
-0
script/c77334267.lua
script/c77334267.lua
+1
-0
script/c7811875.lua
script/c7811875.lua
+1
-0
script/c78586116.lua
script/c78586116.lua
+1
-1
script/c79205581.lua
script/c79205581.lua
+2
-0
script/c80033124.lua
script/c80033124.lua
+1
-0
script/c80204957.lua
script/c80204957.lua
+1
-0
script/c81443745.lua
script/c81443745.lua
+2
-0
script/c82308875.lua
script/c82308875.lua
+1
-0
script/c83812099.lua
script/c83812099.lua
+1
-0
script/c86361354.lua
script/c86361354.lua
+1
-0
script/c87313164.lua
script/c87313164.lua
+1
-0
script/c89810518.lua
script/c89810518.lua
+1
-0
script/c90011152.lua
script/c90011152.lua
+1
-0
script/c90075978.lua
script/c90075978.lua
+1
-0
script/c90887783.lua
script/c90887783.lua
+1
-0
script/c93157004.lua
script/c93157004.lua
+1
-0
script/c93542102.lua
script/c93542102.lua
+1
-0
script/c9354555.lua
script/c9354555.lua
+1
-0
script/c94681654.lua
script/c94681654.lua
+1
-0
script/c96029574.lua
script/c96029574.lua
+1
-0
script/c96383838.lua
script/c96383838.lua
+1
-0
script/c96470883.lua
script/c96470883.lua
+1
-0
script/c96631852.lua
script/c96631852.lua
+1
-0
script/c97169186.lua
script/c97169186.lua
+1
-0
script/c9744376.lua
script/c9744376.lua
+1
-0
script/c97697678.lua
script/c97697678.lua
+1
-0
script/c99267150.lua
script/c99267150.lua
+1
-0
No files found.
script/c11047543.lua
View file @
7265bf40
...
...
@@ -44,6 +44,7 @@ function c11047543.operation(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
c11047543
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
tc1
:
GetLevel
()
+
tc2
:
GetLevel
())
if
sg
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RETURN
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
ssg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
ssg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
end
script/c11596936.lua
View file @
7265bf40
...
...
@@ -16,6 +16,7 @@ function c11596936.cfilter(c)
end
function
c11596936
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11596936
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11596936
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
...
...
script/c14289852.lua
View file @
7265bf40
...
...
@@ -31,6 +31,7 @@ function c14289852.value(e,c)
return
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsReason
(
REASON_BATTLE
)
end
function
c14289852
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14289852
.
repfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
script/c15313433.lua
View file @
7265bf40
...
...
@@ -22,6 +22,7 @@ end
function
c15313433
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
eg
:
IsExists
(
c15313433
.
filter
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
eg
:
FilterSelect
(
tp
,
c15313433
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
script/c15471265.lua
View file @
7265bf40
...
...
@@ -31,6 +31,7 @@ end
function
c15471265
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
isLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c15471265
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c15471265
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15471265
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c15471265
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c15629801.lua
View file @
7265bf40
...
...
@@ -18,6 +18,7 @@ function c15629801.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c15629801
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c15629801
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15629801
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
...
...
script/c17241370.lua
View file @
7265bf40
...
...
@@ -37,6 +37,7 @@ end
function
c17241370
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c17241370
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c17241370
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c17241370
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
...
...
script/c17377751.lua
View file @
7265bf40
...
...
@@ -35,6 +35,7 @@ function c17377751.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c17377751
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c17377751
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
then
...
...
script/c1802450.lua
View file @
7265bf40
...
...
@@ -32,6 +32,7 @@ function c1802450.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
local
cg
=
Duel
.
SelectReleaseGroup
(
tp
,
c1802450
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
cg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
1802450
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -46,6 +47,7 @@ function c1802450.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
1802450
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
1802450
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c1834753.lua
View file @
7265bf40
...
...
@@ -33,9 +33,9 @@ function c1834753.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c1834753
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
GetMatchingGroup
(
c1834753
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>=
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c2377034.lua
View file @
7265bf40
...
...
@@ -45,6 +45,7 @@ end
function
c2377034
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c2377034
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c2377034
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
script/c24025620.lua
View file @
7265bf40
...
...
@@ -18,6 +18,7 @@ end
function
c24025620
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c24025620
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c24104865.lua
View file @
7265bf40
...
...
@@ -82,6 +82,7 @@ function c24104865.spop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
c24104865
.
sfilter
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
sg
:
GetCount
()
>
ft
then
sg
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
local
tc
=
sg
:
GetFirst
()
local
c
=
e
:
GetHandler
()
...
...
script/c26412047.lua
View file @
7265bf40
...
...
@@ -23,6 +23,7 @@ function c26412047.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
if
tg
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
...
...
script/c29515122.lua
View file @
7265bf40
...
...
@@ -31,6 +31,7 @@ function c29515122.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetOperatedGroup
()
local
ct
=
g
:
FilterCount
(
c29515122
.
cfilter
,
nil
)
if
ct
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
script/c32710364.lua
View file @
7265bf40
...
...
@@ -62,6 +62,7 @@ function c32710364.operation(e,tp,eg,ep,ev,re,r,rp,chk)
if
gc
<=
ct
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
ct
,
ct
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
...
...
script/c33455338.lua
View file @
7265bf40
...
...
@@ -21,6 +21,7 @@ function c33455338.filter(c)
end
function
c33455338
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33455338
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33455338
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
99
,
nil
)
e
:
SetLabel
(
g
:
GetCount
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
...
...
script/c3429238.lua
View file @
7265bf40
...
...
@@ -69,9 +69,9 @@ function c3429238.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c3429238
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
3429238
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
...
...
script/c36565699.lua
View file @
7265bf40
...
...
@@ -22,6 +22,7 @@ function c36565699.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
1
-
tp
,
3
)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
3
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToRemove
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
1
-
tp
)
...
...
script/c38318146.lua
View file @
7265bf40
...
...
@@ -39,6 +39,7 @@ function c38318146.accost(e,te,tp)
end
function
c38318146
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
c38318146
[
0
]
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38318146
.
acfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
c38318146
[
0
]
=
true
...
...
script/c38522377.lua
View file @
7265bf40
...
...
@@ -41,6 +41,7 @@ function c38522377.spcon(e,c)
end
function
c38522377
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c38522377
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c38522377
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
5
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
script/c41442341.lua
View file @
7265bf40
...
...
@@ -36,6 +36,7 @@ function c41442341.spop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
fg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
fg
:
GetCount
()
>
1
and
ft
==
1
then
fg
=
fg
:
Select
(
tp
,
1
,
1
,
nil
)
end
local
tc
=
fg
:
GetFirst
()
while
tc
do
...
...
script/c41705642.lua
View file @
7265bf40
...
...
@@ -20,11 +20,11 @@ end
function
c41705642
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c41705642
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
)
end
function
c41705642
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41705642
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c41858121.lua
View file @
7265bf40
...
...
@@ -34,8 +34,8 @@ function c41858121.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
local
op
=
0
local
b1
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
41858121
,
0
),
aux
.
Stringid
(
41858121
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
41858121
,
0
))
elseif
b2
then
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
41858121
,
1
))
op
=
1
...
...
@@ -43,6 +43,7 @@ function c41858121.activate(e,tp,eg,ep,ev,re,r,rp)
if
op
==
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
...
...
script/c41930553.lua
View file @
7265bf40
...
...
@@ -32,6 +32,7 @@ function c41930553.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
Duel
.
IsExistingMatchingCard
(
c41930553
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c41930553
.
rfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
41930553
,
0
))
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41930553
.
rfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
...
...
@@ -43,6 +44,7 @@ function c41930553.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
41930553
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c41930553
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c41930553
.
rfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41930553
.
rfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
...
...
script/c42425831.lua
View file @
7265bf40
...
...
@@ -33,6 +33,7 @@ function c42425831.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c42425831
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
cg
,
nil
,
1
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
42425831
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -48,6 +49,7 @@ function c42425831.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
42425831
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
42425831
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c4290468.lua
View file @
7265bf40
...
...
@@ -38,8 +38,8 @@ function c4290468.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c4290468
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c4290468
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c46089249.lua
View file @
7265bf40
...
...
@@ -16,6 +16,7 @@ function c46089249.cfilter(c)
end
function
c46089249
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46089249
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46089249
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
...
...
script/c46384403.lua
View file @
7265bf40
...
...
@@ -25,6 +25,7 @@ end
function
c46384403
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46384403
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
ft
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c50032342.lua
View file @
7265bf40
...
...
@@ -17,8 +17,8 @@ function c50032342.cfilter(c)
return
c
:
IsSetCard
(
0x2f
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c50032342
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50032342
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c50032342
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c525110.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ end
function
c525110
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c525110
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
ft
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
t1
=
g
:
GetFirst
()
...
...
script/c52684508.lua
View file @
7265bf40
...
...
@@ -53,6 +53,7 @@ end
function
c52684508
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c52684508
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c52684508
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52684508
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c52684508
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c52860176.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ end
function
c52860176
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52860176
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
ft
,
ft
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
...
...
script/c52971944.lua
View file @
7265bf40
...
...
@@ -33,6 +33,7 @@ function c52971944.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c52971944
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
cg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
52971944
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -48,6 +49,7 @@ function c52971944.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
52971944
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
52971944
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c55136228.lua
View file @
7265bf40
...
...
@@ -31,6 +31,7 @@ end
function
c55136228
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c55136228
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c55136228
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c55136228
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c55136228
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c56223084.lua
View file @
7265bf40
...
...
@@ -18,6 +18,7 @@ end
function
c56223084
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c56223084
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c57036718.lua
View file @
7265bf40
...
...
@@ -38,6 +38,7 @@ function c57036718.desop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
if
tg
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
...
...
script/c57662975.lua
View file @
7265bf40
...
...
@@ -19,6 +19,7 @@ function c57662975.cfilter(c)
end
function
c57662975
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c57662975
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c57662975
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c58990631.lua
View file @
7265bf40
...
...
@@ -23,6 +23,7 @@ function c58990631.cfilter(c)
end
function
c58990631
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58990631
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58990631
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
...
...
script/c59965151.lua
View file @
7265bf40
...
...
@@ -34,6 +34,7 @@ end
function
c59965151
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c59965151
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c60806437.lua
View file @
7265bf40
...
...
@@ -25,6 +25,7 @@ function c60806437.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c60806437
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60806437
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
...
...
script/c61807040.lua
View file @
7265bf40
...
...
@@ -15,6 +15,7 @@ function c61807040.cfilter(c)
end
function
c61807040
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61807040
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c61807040
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
...
...
script/c63101919.lua
View file @
7265bf40
...
...
@@ -51,6 +51,7 @@ function c63101919.addc1(e,tp,eg,ep,ev,re,r,rp)
end
function
c63101919
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
63
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetCount
())
...
...
script/c65303664.lua
View file @
7265bf40
...
...
@@ -49,6 +49,7 @@ function c65303664.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65303664
.
rfiletr
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
ConfirmCards
(
1
-
tp
,
e
:
GetHandler
())
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65303664
.
rfiletr
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
...
...
script/c65659181.lua
View file @
7265bf40
...
...
@@ -40,6 +40,7 @@ function c65659181.spop(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
SpecialSummonComplete
()
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
fg
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
local
tc
=
fg
:
GetFirst
()
while
tc
do
...
...
script/c66729231.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ function c66729231.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
tc
:
IsSetCard
(
0x3a
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
dg
,
nil
,
2
,
REASON_EFFECT
)
end
...
...
script/c66788016.lua
View file @
7265bf40
...
...
@@ -23,6 +23,7 @@ function c66788016.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
if
tg
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
...
...
script/c66957584.lua
View file @
7265bf40
...
...
@@ -37,6 +37,7 @@ function c66957584.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
0
)
end
function
c66957584
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66957584
.
disfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
...
...
@@ -71,6 +72,7 @@ function c66957584.spop(e,tp,eg,ep,ev,re,r,rp)
if
ft
>=
g
:
GetCount
()
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg2
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
Duel
.
SpecialSummon
(
sg2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c69537999.lua
View file @
7265bf40
...
...
@@ -35,8 +35,8 @@ function c69537999.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c69537999
.
disfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
script/c70391588.lua
View file @
7265bf40
...
...
@@ -17,6 +17,7 @@ end
function
c70391588
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c70391588
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
eg
:
IsExists
(
c70391588
.
filter
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
eg
:
FilterSelect
(
tp
,
c70391588
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
script/c71564150.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ end
function
c71564150
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c71564150
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
ft
,
ft
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
...
...
script/c74825788.lua
View file @
7265bf40
...
...
@@ -12,8 +12,8 @@ function c74825788.initial_effect(c)
end
function
c74825788
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
chkc
:
GetControler
()
==
tp
and
chkc
:
IsFaceup
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c74825788
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c75833426.lua
View file @
7265bf40
...
...
@@ -34,6 +34,7 @@ function c75833426.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsExistingMatchingCard
(
c75833426
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75833426
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
...
...
script/c77334267.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ end
function
c77334267
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c77334267
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c77334267
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77334267
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
end
...
...
script/c7811875.lua
View file @
7265bf40
...
...
@@ -25,6 +25,7 @@ function c7811875.cfilter(c)
end
function
c7811875
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7811875
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c7811875
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c78586116.lua
View file @
7265bf40
...
...
@@ -59,8 +59,8 @@ end
function
c78586116
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
and
chkc
~=
eq
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
if
chk
==
0
then
return
eq
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
eq
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
eq
)
end
function
c78586116
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c79205581.lua
View file @
7265bf40
...
...
@@ -22,6 +22,7 @@ function c79205581.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79205581
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
SetLabel
(
1
)
...
...
@@ -38,6 +39,7 @@ function c79205581.condition2(e,tp,eg,ep,ev,re,r,rp)
end
function
c79205581
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c80033124.lua
View file @
7265bf40
...
...
@@ -55,6 +55,7 @@ function c80033124.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleHand
(
tp
)
end
Duel
.
SendtoDeck
(
g1
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c80033124
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sg
:
GetFirst
():
CompleteProcedure
()
...
...
script/c80204957.lua
View file @
7265bf40
...
...
@@ -20,6 +20,7 @@ function c80204957.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80204957
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c80204957
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c80204957
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
...
...
script/c81443745.lua
View file @
7265bf40
...
...
@@ -33,6 +33,7 @@ function c81443745.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c81443745
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
cg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
81443745
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -48,6 +49,7 @@ function c81443745.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
81443745
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
81443745
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c82308875.lua
View file @
7265bf40
...
...
@@ -53,6 +53,7 @@ function c82308875.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
elseif
op
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
spg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
...
...
script/c83812099.lua
View file @
7265bf40
...
...
@@ -40,6 +40,7 @@ function c83812099.eqtg1(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c83812099
.
eqop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83812099
.
filter1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
c
)
local
eqc
=
g
:
GetFirst
()
if
eqc
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
...
...
script/c86361354.lua
View file @
7265bf40
...
...
@@ -22,6 +22,7 @@ function c86361354.dfilter(c,rc)
end
function
c86361354
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86361354
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86361354
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
e
:
SetLabel
(
g
:
GetFirst
():
GetRace
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
...
...
script/c87313164.lua
View file @
7265bf40
...
...
@@ -19,6 +19,7 @@ function c87313164.cfilter(c)
end
function
c87313164
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c87313164
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c87313164
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
...
...
script/c89810518.lua
View file @
7265bf40
...
...
@@ -14,6 +14,7 @@ function c89810518.initial_effect(c)
end
function
c89810518
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c90011152.lua
View file @
7265bf40
...
...
@@ -37,6 +37,7 @@ function c90011152.costfilter(c)
end
function
c90011152
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c90011152
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90011152
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c90075978.lua
View file @
7265bf40
...
...
@@ -43,6 +43,7 @@ function c90075978.setop(e,tp,eg,ep,ev,re,r,rp)
if
dt
==
0
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
sg
=
Duel
.
GetMatchingGroup
(
c90075978
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90075978
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
SpecialSummon
(
sg
:
Select
(
tp
,
1
,
1
,
nil
),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c90887783.lua
View file @
7265bf40
...
...
@@ -28,6 +28,7 @@ function c90887783.operation(e,tp,eg,ep,ev,re,r,rp)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c90887783
.
filter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
if
g1
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c90887783
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
g1
:
GetFirst
():
GetLevel
())
Duel
.
SendtoHand
(
g2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g2
)
...
...
script/c93157004.lua
View file @
7265bf40
...
...
@@ -171,6 +171,7 @@ function c93157004.discon(e,tp,eg,ep,ev,re,r,rp)
end
function
c93157004
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEquipGroup
():
IsExists
(
Card
.
IsAbleToGraveAsCost
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
e
:
GetHandler
():
GetEquipGroup
():
FilterSelect
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c93542102.lua
View file @
7265bf40
...
...
@@ -49,6 +49,7 @@ function c93542102.opa(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
tp
,
dc
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
dc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
FilterSelect
(
tp
,
c93542102
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
ShuffleDeck
(
tp
)
...
...
script/c9354555.lua
View file @
7265bf40
...
...
@@ -24,6 +24,7 @@ end
function
c9354555
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c9354555
.
filter1
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
<
3
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
SendtoDeck
(
g
:
Select
(
tp
,
3
,
3
,
nil
),
nil
,
2
,
REASON_EFFECT
)
local
sg
=
Duel
.
GetMatchingGroup
(
c9354555
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
sg
:
GetCount
()
==
0
then
return
end
...
...
script/c94681654.lua
View file @
7265bf40
...
...
@@ -16,6 +16,7 @@ function c94681654.costfilter(c)
end
function
c94681654
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94681654
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94681654
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
...
...
script/c96029574.lua
View file @
7265bf40
...
...
@@ -32,6 +32,7 @@ function c96029574.cfilter(c)
end
function
c96029574
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96029574
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96029574
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
script/c96383838.lua
View file @
7265bf40
...
...
@@ -30,6 +30,7 @@ function c96383838.activate(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
then
return
end
local
sg
=
g
:
Filter
(
c96383838
.
rfilter
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
sg
:
GetCount
()
>
ft
then
sg
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
script/c96470883.lua
View file @
7265bf40
...
...
@@ -56,6 +56,7 @@ function c96470883.desop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
if
tg
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
...
...
script/c96631852.lua
View file @
7265bf40
...
...
@@ -24,6 +24,7 @@ end
function
c96631852
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c96631852
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c97169186.lua
View file @
7265bf40
...
...
@@ -23,6 +23,7 @@ function c97169186.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetDefence
)
if
tg
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
else
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
...
...
script/c9744376.lua
View file @
7265bf40
...
...
@@ -21,6 +21,7 @@ function c9744376.activate(e,tp,eg,ep,ev,re,r,rp)
local
d
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
p
,
LOCATION_GRAVE
,
0
,
nil
,
9744376
)
+
1
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
aux
.
TRUE
,
p
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_EFFECT
)
end
script/c97697678.lua
View file @
7265bf40
...
...
@@ -38,6 +38,7 @@ end
function
c97697678
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
_replace_count
=
_replace_count
+
1
if
_replace_count
>
_replace_max
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c97697678
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
...
...
script/c99267150.lua
View file @
7265bf40
...
...
@@ -26,6 +26,7 @@ function c99267150.fscondition(e,g,gc)
return
g
:
IsExists
(
Card
.
IsRace
,
5
,
nil
,
RACE_DRAGON
)
end
function
c99267150
.
fsoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
if
gc
then
Duel
.
SetFusionMaterial
(
eg
:
FilterSelect
(
tp
,
Card
.
IsRace
,
4
,
4
,
gc
,
RACE_DRAGON
))
else
Duel
.
SetFusionMaterial
(
eg
:
FilterSelect
(
tp
,
Card
.
IsRace
,
5
,
5
,
nil
,
RACE_DRAGON
))
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