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
赤子奈落
ygopro
Commits
4d3341fd
Commit
4d3341fd
authored
Jul 25, 2012
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix script
parent
5431ae83
Changes
55
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
120 additions
and
118 deletions
+120
-118
ocgcore/processor.cpp
ocgcore/processor.cpp
+2
-2
script/c102380.lua
script/c102380.lua
+1
-1
script/c10925955.lua
script/c10925955.lua
+6
-3
script/c11136371.lua
script/c11136371.lua
+5
-2
script/c12174035.lua
script/c12174035.lua
+1
-1
script/c12624008.lua
script/c12624008.lua
+1
-1
script/c13846680.lua
script/c13846680.lua
+1
-1
script/c14472500.lua
script/c14472500.lua
+2
-2
script/c15150365.lua
script/c15150365.lua
+4
-5
script/c15313433.lua
script/c15313433.lua
+3
-4
script/c15893860.lua
script/c15893860.lua
+1
-0
script/c1644289.lua
script/c1644289.lua
+1
-1
script/c16550875.lua
script/c16550875.lua
+1
-1
script/c16678947.lua
script/c16678947.lua
+2
-1
script/c18060565.lua
script/c18060565.lua
+1
-1
script/c1896112.lua
script/c1896112.lua
+1
-1
script/c20457551.lua
script/c20457551.lua
+1
-1
script/c21507589.lua
script/c21507589.lua
+1
-1
script/c21702241.lua
script/c21702241.lua
+1
-1
script/c22339232.lua
script/c22339232.lua
+2
-2
script/c22842214.lua
script/c22842214.lua
+2
-1
script/c23327298.lua
script/c23327298.lua
+1
-1
script/c23557835.lua
script/c23557835.lua
+1
-1
script/c2362787.lua
script/c2362787.lua
+1
-1
script/c25173686.lua
script/c25173686.lua
+6
-5
script/c25401880.lua
script/c25401880.lua
+1
-1
script/c27174286.lua
script/c27174286.lua
+1
-1
script/c29424328.lua
script/c29424328.lua
+0
-18
script/c29590752.lua
script/c29590752.lua
+4
-4
script/c3072808.lua
script/c3072808.lua
+7
-6
script/c31828916.lua
script/c31828916.lua
+1
-1
script/c33248692.lua
script/c33248692.lua
+5
-4
script/c36733451.lua
script/c36733451.lua
+1
-1
script/c36931229.lua
script/c36931229.lua
+1
-1
script/c41077745.lua
script/c41077745.lua
+4
-4
script/c43586926.lua
script/c43586926.lua
+1
-1
script/c46508640.lua
script/c46508640.lua
+1
-1
script/c49514333.lua
script/c49514333.lua
+4
-4
script/c5014629.lua
script/c5014629.lua
+6
-3
script/c51281878.lua
script/c51281878.lua
+1
-1
script/c56514812.lua
script/c56514812.lua
+1
-1
script/c5817857.lua
script/c5817857.lua
+1
-1
script/c61592395.lua
script/c61592395.lua
+1
-1
script/c6343408.lua
script/c6343408.lua
+3
-3
script/c64379430.lua
script/c64379430.lua
+6
-3
script/c65422840.lua
script/c65422840.lua
+1
-1
script/c72056560.lua
script/c72056560.lua
+1
-1
script/c75198893.lua
script/c75198893.lua
+1
-1
script/c81254059.lua
script/c81254059.lua
+2
-2
script/c84653834.lua
script/c84653834.lua
+1
-1
script/c8487449.lua
script/c8487449.lua
+1
-2
script/c91895091.lua
script/c91895091.lua
+6
-3
script/c94283662.lua
script/c94283662.lua
+1
-1
script/c9622164.lua
script/c9622164.lua
+6
-4
script/c98147766.lua
script/c98147766.lua
+1
-1
No files found.
ocgcore/processor.cpp
View file @
4d3341fd
...
@@ -1734,7 +1734,7 @@ int32 field::process_point_event(int16 step, int32 special, int32 skip_new) {
...
@@ -1734,7 +1734,7 @@ int32 field::process_point_event(int16 step, int32 special, int32 skip_new) {
if
(
tp
==
infos
.
turn_player
)
{
if
(
tp
==
infos
.
turn_player
)
{
for
(
auto
tpit
=
core
.
tpchain
.
begin
();
tpit
!=
core
.
tpchain
.
end
();
++
tpit
)
{
for
(
auto
tpit
=
core
.
tpchain
.
begin
();
tpit
!=
core
.
tpchain
.
end
();
++
tpit
)
{
if
(
!
(
clit
->
triggering_effect
->
flag
&
EFFECT_FLAG_MULTIACT_HAND
))
{
if
(
!
(
clit
->
triggering_effect
->
flag
&
EFFECT_FLAG_MULTIACT_HAND
))
{
if
(
tp
it
->
triggering_location
==
LOCATION_HAND
)
{
if
(
cl
it
->
triggering_location
==
LOCATION_HAND
)
{
if
(
tpit
->
triggering_location
==
LOCATION_HAND
||
tpit
->
triggering_effect
->
handler
->
data
.
code
==
clit
->
triggering_effect
->
handler
->
data
.
code
)
{
if
(
tpit
->
triggering_location
==
LOCATION_HAND
||
tpit
->
triggering_effect
->
handler
->
data
.
code
==
clit
->
triggering_effect
->
handler
->
data
.
code
)
{
act
=
false
;
act
=
false
;
break
;
break
;
...
@@ -1755,7 +1755,7 @@ int32 field::process_point_event(int16 step, int32 special, int32 skip_new) {
...
@@ -1755,7 +1755,7 @@ int32 field::process_point_event(int16 step, int32 special, int32 skip_new) {
}
else
{
}
else
{
for
(
auto
ntpit
=
core
.
ntpchain
.
begin
();
ntpit
!=
core
.
ntpchain
.
end
();
++
ntpit
)
{
for
(
auto
ntpit
=
core
.
ntpchain
.
begin
();
ntpit
!=
core
.
ntpchain
.
end
();
++
ntpit
)
{
if
(
!
(
clit
->
triggering_effect
->
flag
&
EFFECT_FLAG_MULTIACT_HAND
))
{
if
(
!
(
clit
->
triggering_effect
->
flag
&
EFFECT_FLAG_MULTIACT_HAND
))
{
if
(
ntp
it
->
triggering_location
==
LOCATION_HAND
)
{
if
(
cl
it
->
triggering_location
==
LOCATION_HAND
)
{
if
(
ntpit
->
triggering_location
==
LOCATION_HAND
||
ntpit
->
triggering_effect
->
handler
->
data
.
code
==
clit
->
triggering_effect
->
handler
->
data
.
code
)
{
if
(
ntpit
->
triggering_location
==
LOCATION_HAND
||
ntpit
->
triggering_effect
->
handler
->
data
.
code
==
clit
->
triggering_effect
->
handler
->
data
.
code
)
{
act
=
false
;
act
=
false
;
break
;
break
;
...
...
script/c102380.lua
View file @
4d3341fd
...
@@ -66,7 +66,7 @@ function c102380.spcop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function c102380.spcop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
script/c10925955.lua
View file @
4d3341fd
...
@@ -15,13 +15,16 @@ end
...
@@ -15,13 +15,16 @@ end
function
c10925955
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10925955
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c10925955
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c10925955
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c10925955
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
~=
5
end
function
c10925955
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10925955
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
1
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
1
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
1
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
1
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
or
Duel
.
IsExistingMatchingCard
(
c10925955
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
local
sel
=
0
local
sel
=
0
local
ac
=
0
local
ac
=
0
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
then
sel
=
sel
+
1
end
if
Duel
.
IsExistingMatchingCard
(
c10925955
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
then
sel
=
sel
+
1
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
1
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
1
then
sel
=
sel
+
2
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
1
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
1
then
sel
=
sel
+
2
end
if
sel
==
1
then
if
sel
==
1
then
ac
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10925955
,
0
))
ac
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10925955
,
0
))
...
@@ -37,7 +40,7 @@ end
...
@@ -37,7 +40,7 @@ end
function
c10925955
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10925955
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
e
:
GetLabel
()
local
ac
=
e
:
GetLabel
()
if
ac
==
0
or
ac
==
2
then
if
ac
==
0
or
ac
==
2
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c10925955
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
end
end
if
ac
==
1
or
ac
==
2
then
if
ac
==
1
or
ac
==
2
then
...
...
script/c11136371.lua
View file @
4d3341fd
...
@@ -9,9 +9,12 @@ function c11136371.initial_effect(c)
...
@@ -9,9 +9,12 @@ function c11136371.initial_effect(c)
e1
:
SetOperation
(
c11136371
.
plop
)
e1
:
SetOperation
(
c11136371
.
plop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c11136371
.
plfilter
(
c
)
return
c
:
GetSequence
()
~=
5
and
c
:
IsAbleToGraveAsCost
()
end
function
c11136371
.
plcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11136371
.
plcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_SZONE
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11136371
.
plfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_SZONE
,
0
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c11136371
.
plfilter
,
tp
,
LOCATION_SZONE
,
0
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c11136371
.
pltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11136371
.
pltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c12174035.lua
View file @
4d3341fd
...
@@ -31,7 +31,7 @@ end
...
@@ -31,7 +31,7 @@ end
function
c12174035
.
eqlimit
(
e
,
c
)
function
c12174035
.
eqlimit
(
e
,
c
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
end
function
c12174035
.
filter
(
c
,
tp
)
function
c12174035
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
end
function
c12174035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c12174035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c12624008.lua
View file @
4d3341fd
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c12624008
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12624008
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
end
end
function
c12624008
.
filter
(
c
,
e
,
tp
)
function
c12624008
.
filter
(
c
)
return
(
c
:
IsFacedown
()
or
c
:
IsAttribute
(
0xff
-
ATTRIBUTE_LIGHT
))
and
c
:
IsDestructable
()
return
(
c
:
IsFacedown
()
or
c
:
IsAttribute
(
0xff
-
ATTRIBUTE_LIGHT
))
and
c
:
IsDestructable
()
end
end
function
c12624008
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12624008
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c13846680.lua
View file @
4d3341fd
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c13846680
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c13846680
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
end
end
function
c13846680
.
filter
(
c
,
e
,
tp
)
function
c13846680
.
filter
(
c
)
return
(
c
:
IsFacedown
()
or
c
:
IsAttribute
(
0xff
-
ATTRIBUTE_FIRE
))
and
c
:
IsDestructable
()
return
(
c
:
IsFacedown
()
or
c
:
IsAttribute
(
0xff
-
ATTRIBUTE_FIRE
))
and
c
:
IsDestructable
()
end
end
function
c13846680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13846680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c14472500.lua
View file @
4d3341fd
...
@@ -22,8 +22,8 @@ function c14472500.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,8 +22,8 @@ function c14472500.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
c14472500
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14472500
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14472500
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14472500
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c15150365.lua
View file @
4d3341fd
...
@@ -4,23 +4,22 @@ function c15150365.initial_effect(c)
...
@@ -4,23 +4,22 @@ function c15150365.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
15150365
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
15150365
,
0
))
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e1
:
SetCode
(
EVENT_DAMAGE
)
e1
:
SetCondition
(
c15150365
.
condition
)
e1
:
SetCondition
(
c15150365
.
condition
)
e1
:
SetTarget
(
c15150365
.
target
)
e1
:
SetTarget
(
c15150365
.
target
)
e1
:
SetOperation
(
c15150365
.
operation
)
e1
:
SetOperation
(
c15150365
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c15150365
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15150365
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
r
==
REASON_BATTLE
and
eg
:
GetFirst
()
==
e
:
GetHandler
()
return
ep
~=
tp
end
end
function
c15150365
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15150365
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
end
end
function
c15150365
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15150365
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
)
local
sg
=
g
:
RandomSelect
(
ep
,
1
)
local
sg
=
g
:
RandomSelect
(
ep
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_EFFECT
)
end
end
script/c15313433.lua
View file @
4d3341fd
...
@@ -17,11 +17,11 @@ function c15313433.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,11 +17,11 @@ function c15313433.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c15313433
.
filter
(
c
,
e
,
tp
)
function
c15313433
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xb
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsSetCard
(
0xb
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c15313433
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c15313433
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
end
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c15313433
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
eg
:
IsExists
(
c15313433
.
filter
,
1
,
nil
,
e
,
tp
)
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
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
eg
:
FilterSelect
(
tp
,
c15313433
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
eg
:
FilterSelect
(
tp
,
c15313433
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -30,8 +30,7 @@ function c15313433.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -30,8 +30,7 @@ function c15313433.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
1
,
1
-
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
1
,
1
-
tp
,
1000
)
end
end
function
c15313433
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15313433
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
g
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
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
...
...
script/c15893860.lua
View file @
4d3341fd
...
@@ -36,6 +36,7 @@ function c15893860.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,6 +36,7 @@ function c15893860.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
if
ct
>=
3
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
15893860
,
2
))
then
if
ct
>=
3
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
15893860
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
...
...
script/c1644289.lua
View file @
4d3341fd
...
@@ -41,7 +41,7 @@ function c1644289.tglimit(e,re)
...
@@ -41,7 +41,7 @@ function c1644289.tglimit(e,re)
local
rc
=
re
:
GetOwner
()
local
rc
=
re
:
GetOwner
()
return
e
:
GetHandler
():
GetControler
()
~=
rc
:
GetControler
()
and
rc
:
IsType
(
TYPE_TRAP
+
TYPE_MONSTER
)
return
e
:
GetHandler
():
GetControler
()
~=
rc
:
GetControler
()
and
rc
:
IsType
(
TYPE_TRAP
+
TYPE_MONSTER
)
end
end
function
c1644289
.
filter
(
c
,
tp
)
function
c1644289
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
end
end
function
c1644289
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1644289
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c16550875.lua
View file @
4d3341fd
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
function
c16550875
.
eqlimit
(
e
,
c
)
function
c16550875
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x56
)
return
c
:
IsSetCard
(
0x56
)
end
end
function
c16550875
.
filter
(
c
,
tp
)
function
c16550875
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x56
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x56
)
end
end
function
c16550875
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c16550875
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c16678947.lua
View file @
4d3341fd
...
@@ -15,7 +15,8 @@ end
...
@@ -15,7 +15,8 @@ end
function
c16678947
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16678947
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
local
bc
=
tc
:
GetBattleTarget
()
local
bc
=
tc
:
GetBattleTarget
()
return
tc
:
GetPreviousControler
()
==
tp
and
tc
:
IsRace
(
RACE_PSYCHO
)
and
bit
.
band
(
tc
:
GetBattlePosition
(),
POS_FACEUP
)
~=
0
return
tc
:
GetPreviousControler
()
==
tp
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsRace
(
RACE_PSYCHO
)
and
bit
.
band
(
tc
:
GetBattlePosition
(),
POS_FACEUP
)
~=
0
and
bc
:
IsRelateToBattle
()
and
bc
:
IsControler
(
1
-
tp
)
and
bc
==
Duel
.
GetAttacker
()
and
bc
:
IsRelateToBattle
()
and
bc
:
IsControler
(
1
-
tp
)
and
bc
==
Duel
.
GetAttacker
()
end
end
function
c16678947
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c16678947
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c18060565.lua
View file @
4d3341fd
...
@@ -31,7 +31,7 @@ end
...
@@ -31,7 +31,7 @@ end
function
c18060565
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c18060565
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
eq
=
Duel
.
SelectMatchingCard
(
tp
,
c18060565
.
eqfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
eq
=
Duel
.
SelectMatchingCard
(
tp
,
c18060565
.
eqfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
eqc
=
eq
:
GetFirst
()
local
eqc
=
eq
:
GetFirst
()
...
...
script/c1896112.lua
View file @
4d3341fd
...
@@ -21,7 +21,7 @@ function c1896112.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,7 +21,7 @@ function c1896112.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_COST
)
end
end
function
c1896112
.
filter
(
c
,
e
,
tp
)
function
c1896112
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
Is
Faceup
()
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c1896112
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1896112
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
...
...
script/c20457551.lua
View file @
4d3341fd
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
c20457551
.
eqlimit
(
e
,
c
)
function
c20457551
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x1d
)
return
c
:
IsSetCard
(
0x1d
)
end
end
function
c20457551
.
filter
(
c
,
tp
)
function
c20457551
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1d
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1d
)
end
end
function
c20457551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c20457551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c21507589.lua
View file @
4d3341fd
...
@@ -16,7 +16,7 @@ function c21507589.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c21507589.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c21507589
.
filter
(
c
)
function
c21507589
.
filter
(
c
)
return
c
:
IsRace
(
RACE_FISH
+
RACE_AQUA
+
RACE_SEASERPENT
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_FISH
+
RACE_AQUA
+
RACE_SEASERPENT
)
and
c
:
IsAbleToHand
()
end
end
function
c21507589
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c21507589
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c21507589
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c21507589
.
filter
(
chkc
)
end
...
...
script/c21702241.lua
View file @
4d3341fd
...
@@ -30,7 +30,7 @@ function c21702241.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c21702241.initial_effect(c)
end
end
function
c21702241
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c21702241
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAI
I
NING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
script/c22339232.lua
View file @
4d3341fd
...
@@ -37,7 +37,7 @@ function c22339232.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,7 +37,7 @@ function c22339232.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c22339232
.
tgfilter
(
c
)
function
c22339232
.
tgfilter
(
c
)
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
return
c
ode
==
32274490
or
code
==
22339232
return
c
:
IsFaceup
()
and
(
code
==
32274490
or
code
==
22339232
)
end
end
function
c22339232
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22339232
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22339232
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22339232
.
tgfilter
(
chkc
)
end
...
@@ -54,7 +54,7 @@ function c22339232.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c22339232.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c22339232
.
spfilter
(
c
,
e
,
tp
)
function
c22339232
.
spfilter
(
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
local
code
=
c
:
GetCode
()
return
(
code
==
36021814
or
code
==
40991587
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
(
code
==
36021814
or
code
==
40991587
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c22339232
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22339232
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22339232
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22339232
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
script/c22842214.lua
View file @
4d3341fd
...
@@ -31,7 +31,7 @@ function c22842214.initial_effect(c)
...
@@ -31,7 +31,7 @@ function c22842214.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c22842214
.
filter
(
c
)
function
c22842214
.
filter
(
c
)
return
c
:
IsRace
(
RACE_FISH
+
RACE_AQUA
+
RACE_SEASERPENT
)
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_FISH
+
RACE_AQUA
+
RACE_SEASERPENT
)
end
end
function
c22842214
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22842214
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22842214
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c22842214
.
filter
(
chkc
)
end
...
@@ -70,6 +70,7 @@ function c22842214.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,6 +70,7 @@ function c22842214.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
c
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22842214
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22842214
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
c
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
c
):
GetFirst
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
return
true
return
true
...
...
script/c23327298.lua
View file @
4d3341fd
...
@@ -18,7 +18,7 @@ function c23327298.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,7 +18,7 @@ function c23327298.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c23327298
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c23327298
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c23327298
.
filter
(
c
)
function
c23327298
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
end
end
function
c23327298
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23327298
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c23327298
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c23327298
.
filter
(
chkc
)
end
...
...
script/c23557835.lua
View file @
4d3341fd
...
@@ -11,7 +11,7 @@ function c23557835.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c23557835.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c23557835
.
filter
(
c
,
e
,
tp
)
function
c23557835
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
Is
Faceup
()
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23557835
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23557835
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
...
...
script/c2362787.lua
View file @
4d3341fd
...
@@ -16,7 +16,7 @@ function c2362787.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c2362787.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
800
)
Duel
.
PayLPCost
(
tp
,
800
)
end
end
function
c2362787
.
filter
(
c
)
function
c2362787
.
filter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Attribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAbleToHand
()
end
end
function
c2362787
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c2362787
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c2362787
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c2362787
.
filter
(
chkc
)
end
...
...
script/c25173686.lua
View file @
4d3341fd
...
@@ -12,17 +12,18 @@ function c25173686.initial_effect(c)
...
@@ -12,17 +12,18 @@ function c25173686.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c25173686
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25173686
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_SZONE
)
==
5
and
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
==
nil
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_SZONE
)
return
ct
==
6
or
(
ct
==
5
and
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
==
nil
)
end
end
function
c25173686
.
filter
(
c
)
function
c25173686
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
return
c
:
GetSequence
()
~=
5
and
c
:
IsDestructable
()
end
end
function
c25173686
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25173686
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
SZONE
,
1
,
nil
)
end
local
sg
=
Duel
.
GetMatchingGroup
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
ONFIELD
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
SZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
function
c25173686
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25173686
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
ONFIELD
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c25173686
.
filter
,
tp
,
0
,
LOCATION_
SZONE
,
nil
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
script/c25401880.lua
View file @
4d3341fd
...
@@ -16,7 +16,7 @@ function c25401880.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c25401880.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
800
)
Duel
.
PayLPCost
(
tp
,
800
)
end
end
function
c25401880
.
filter
(
c
)
function
c25401880
.
filter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
end
end
function
c25401880
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c25401880
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c25401880
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c25401880
.
filter
(
chkc
)
end
...
...
script/c27174286.lua
View file @
4d3341fd
...
@@ -11,7 +11,7 @@ function c27174286.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c27174286.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c27174286
.
filter
(
c
,
e
,
tp
)
function
c27174286
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
Is
Faceup
()
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c27174286
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27174286
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
script/c29424328.lua
View file @
4d3341fd
...
@@ -33,24 +33,6 @@ end
...
@@ -33,24 +33,6 @@ end
function
c29424328
.
tlimit
(
e
,
c
)
function
c29424328
.
tlimit
(
e
,
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c29424328
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c29424328
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
PLAYER_ALL
,
0
)
end
function
c29424328
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
c1
=
Duel
.
GetMatchingGroupCount
(
c29424328
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
c1
<
2
then
Duel
.
Damage
(
tp
,
1000
-
c1
*
500
,
REASON_EFFECT
)
end
local
c2
=
Duel
.
GetMatchingGroupCount
(
c29424328
.
filter
,
1
-
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
c2
<
2
then
Duel
.
Damage
(
1
-
tp
,
1000
-
c2
*
500
,
REASON_EFFECT
)
end
end
function
c29424328
.
cfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29424328
.
cfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>
0
return
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
...
...
script/c29590752.lua
View file @
4d3341fd
...
@@ -28,18 +28,18 @@ function c29590752.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,18 +28,18 @@ function c29590752.descon(e,tp,eg,ep,ev,re,r,rp)
return
st
>=
(
SUMMON_TYPE_SPECIAL
+
100
)
and
st
<
(
SUMMON_TYPE_SPECIAL
+
150
)
return
st
>=
(
SUMMON_TYPE_SPECIAL
+
100
)
and
st
<
(
SUMMON_TYPE_SPECIAL
+
150
)
end
end
function
c29590752
.
desfilter
(
c
)
function
c29590752
.
desfilter
(
c
)
return
not
c
:
IsFaceup
()
and
c
:
IsDestructable
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
~=
5
and
c
:
IsDestructable
(
)
end
end
function
c29590752
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c29590752
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
OnField
(
)
and
c29590752
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
Is
Location
(
LOCATION_SZONE
)
and
c29590752
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29590752
.
desfilter
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29590752
.
desfilter
,
tp
,
LOCATION_
SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c29590752
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29590752
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
not
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsFacedown
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
...
...
script/c3072808.lua
View file @
4d3341fd
...
@@ -5,8 +5,8 @@ function c3072808.initial_effect(c)
...
@@ -5,8 +5,8 @@ function c3072808.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
3072808
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
3072808
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_DAMAGE
)
e1
:
SetCode
(
EVENT_
BATTLE_
DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCondition
(
c3072808
.
condition
)
e1
:
SetCondition
(
c3072808
.
condition
)
e1
:
SetTarget
(
c3072808
.
target
)
e1
:
SetTarget
(
c3072808
.
target
)
...
@@ -16,25 +16,26 @@ end
...
@@ -16,25 +16,26 @@ end
c3072808
[
0
]
=
true
c3072808
[
0
]
=
true
c3072808
[
1
]
=
true
c3072808
[
1
]
=
true
function
c3072808
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3072808
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
and
ev
>=
2000
and
Duel
.
GetAttackTarget
()
==
nil
and
c3072808
[
tp
]
return
ep
==
tp
and
ev
>=
2000
and
Duel
.
GetAttackTarget
()
==
nil
and
c3072808
[
tp
]
end
end
function
c3072808
.
filter
(
c
,
e
,
tp
)
function
c3072808
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsSetCard
(
0x33
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsSetCard
(
0x33
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c3072808
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c3072808
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c3072808
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c3072808
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
0
)
>
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c3072808
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c3072808
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3072808
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3072808
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
2
,
0
,
0
)
c3072808
[
tp
]
=
false
c3072808
[
tp
]
=
false
end
end
function
c3072808
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3072808
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
0
)
<
2
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c31828916.lua
View file @
4d3341fd
...
@@ -33,7 +33,7 @@ function c31828916.check(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c31828916.check(e,tp,eg,ep,ev,re,r,rp)
dg
:
KeepAlive
()
dg
:
KeepAlive
()
end
end
function
c31828916
.
cfilter
(
c
,
cg
,
e
,
tp
)
function
c31828916
.
cfilter
(
c
,
cg
,
e
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsControler
(
tp
)
and
cg
:
IsContains
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
g
:
IsContains
(
c
)
and
Duel
.
IsExistingMatchingCard
(
c31828916
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetAttack
(),
c
:
GetAttribute
(),
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c31828916
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetAttack
(),
c
:
GetAttribute
(),
e
,
tp
)
end
end
function
c31828916
.
filter
(
c
,
atk
,
att
,
e
,
tp
)
function
c31828916
.
filter
(
c
,
atk
,
att
,
e
,
tp
)
...
...
script/c33248692.lua
View file @
4d3341fd
...
@@ -13,17 +13,18 @@ function c33248692.initial_effect(c)
...
@@ -13,17 +13,18 @@ function c33248692.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c33248692
.
filter
(
c
,
tp
)
function
c33248692
.
filter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
end
function
c33248692
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33248692
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
eg
:
IsExists
(
c33248692
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c33248692
.
filter
,
1
,
nil
,
tp
)
end
end
function
c33248692
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33248692
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
tc
=
eg
:
Filter
(
c33248692
.
filter
,
nil
,
tp
):
GetFirst
()
local
rec
=
eg
:
Filter
(
c33248692
.
filter
,
nil
,
tp
):
GetFirst
():
GetBaseAttack
()
if
rec
<
0
then
rec
=
0
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
tc
:
GetBaseAttack
()
)
Duel
.
SetTargetParam
(
rec
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
tc
:
GetBaseAttack
()
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
rec
)
end
end
function
c33248692
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33248692
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
...
...
script/c36733451.lua
View file @
4d3341fd
...
@@ -50,7 +50,7 @@ function c36733451.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c36733451.thcon(e,tp,eg,ep,ev,re,r,rp)
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
end
function
c36733451
.
filter
(
c
)
function
c36733451
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c36733451
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36733451
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c36733451
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c36733451
.
filter
(
chkc
)
end
...
...
script/c36931229.lua
View file @
4d3341fd
...
@@ -24,7 +24,7 @@ function c36931229.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c36931229.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsAttackPos
()
return
e
:
GetHandler
():
IsAttackPos
()
end
end
function
c36931229
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c36931229
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
Card
.
IsLevelBelow
,
nil
,
1
,
nil
,
5
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsLevelBelow
,
1
,
nil
,
5
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsLevelBelow
,
1
,
1
,
nil
,
5
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsLevelBelow
,
1
,
1
,
nil
,
5
)
e
:
SetLabel
(
sg
:
GetFirst
():
GetBaseAttack
())
e
:
SetLabel
(
sg
:
GetFirst
():
GetBaseAttack
())
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Release
(
sg
,
REASON_COST
)
...
...
script/c41077745.lua
View file @
4d3341fd
...
@@ -43,13 +43,13 @@ function c41077745.descon(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -43,13 +43,13 @@ function c41077745.descon(e,tp,eg,ep,ev,re,r,rp,chk)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c41077745
.
filter
(
c
)
function
c41077745
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
~=
5
and
c
:
Is
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
Is
Destructable
()
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
~=
5
and
c
:
IsDestructable
()
end
end
function
c41077745
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c41077745
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
OnField
(
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c41077745
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
Is
Location
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c41077745
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c41077745
.
filter
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c41077745
.
filter
,
tp
,
0
,
LOCATION_
SZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41077745
.
filter
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41077745
.
filter
,
tp
,
0
,
LOCATION_
SZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c41077745
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41077745
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c43586926.lua
View file @
4d3341fd
...
@@ -27,7 +27,7 @@ function c43586926.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,7 +27,7 @@ function c43586926.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c43586926
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43586926
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
c43586926
[
tp
]
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
c43586926
[
tp
]
=
false
c43586926
[
tp
]
=
false
end
end
...
...
script/c46508640.lua
View file @
4d3341fd
...
@@ -10,7 +10,7 @@ function c46508640.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c46508640.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c46508640
.
cfilter
(
c
)
function
c46508640
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
c
:
GetSequence
()
~=
5
end
end
function
c46508640
.
atkval
(
e
,
c
)
function
c46508640
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c46508640
.
cfilter
,
c
:
GetControler
(),
LOCATION_SZONE
,
0
,
nil
)
*
300
return
Duel
.
GetMatchingGroupCount
(
c46508640
.
cfilter
,
c
:
GetControler
(),
LOCATION_SZONE
,
0
,
nil
)
*
300
...
...
script/c49514333.lua
View file @
4d3341fd
...
@@ -35,19 +35,19 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,19 +35,19 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetLabelObject
(
e
)
e1
:
SetLabelObject
(
e
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c49514333
.
repfilter
(
c
)
function
c49514333
.
repfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
c
:
IsCanTurnSet
()
and
c
:
GetReasonPlayer
()
~=
tp
and
c
:
GetOwner
()
==
tp
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
c
:
IsCanTurnSet
()
end
end
function
c49514333
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49514333
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
count
=
eg
:
FilterCount
(
c49514333
.
repfilter
,
e
:
GetHandler
())
local
count
=
eg
:
FilterCount
(
c49514333
.
repfilter
,
e
:
GetHandler
()
,
tp
)
return
count
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
count
return
count
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
count
end
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
49514333
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
49514333
,
0
))
then
local
container
=
e
:
GetLabelObject
():
GetLabelObject
()
local
container
=
e
:
GetLabelObject
():
GetLabelObject
()
container
:
Clear
()
container
:
Clear
()
local
g
=
eg
:
Filter
(
c49514333
.
repfilter
,
e
:
GetHandler
())
local
g
=
eg
:
Filter
(
c49514333
.
repfilter
,
e
:
GetHandler
()
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
script/c5014629.lua
View file @
4d3341fd
...
@@ -19,15 +19,18 @@ function c5014629.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,15 +19,18 @@ function c5014629.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c5014629
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c5014629
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5014629
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c5014629
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_MONSTER
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c5014629
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
ct
*
100
)
Duel
.
SetTargetParam
(
ct
*
100
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
100
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
100
)
end
end
function
c5014629
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5014629
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_MONSTER
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c5014629
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Damage
(
p
,
ct
*
100
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
ct
*
100
,
REASON_EFFECT
)
end
end
script/c51281878.lua
View file @
4d3341fd
...
@@ -8,7 +8,7 @@ function c51281878.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c51281878.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
Set
Targe
t
(
c51281878
.
cost
)
e1
:
Set
Cos
t
(
c51281878
.
cost
)
e1
:
SetTarget
(
c51281878
.
target
)
e1
:
SetTarget
(
c51281878
.
target
)
e1
:
SetOperation
(
c51281878
.
operation
)
e1
:
SetOperation
(
c51281878
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
script/c56514812.lua
View file @
4d3341fd
...
@@ -11,7 +11,7 @@ function c56514812.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c56514812.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c56514812
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56514812
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAI
I
NING
)
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
ep
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
ep
,
1
)
end
end
function
c56514812
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56514812
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c5817857.lua
View file @
4d3341fd
--コアキメイル·グールズスレイブ
--コアキメイル·グールズスレイブ
function
c5817857
.
initial_effect
(
c
)
function
c5817857
.
initial_effect
(
c
)
--cost
--cost
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
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
script/c61592395.lua
View file @
4d3341fd
...
@@ -16,7 +16,7 @@ function c61592395.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c61592395.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterFlagEffect
(
tp
,
61592395
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
61592395
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
end
function
c61592395
.
filter
(
c
)
function
c61592395
.
filter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
GetCode
()
~=
61592395
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
GetCode
()
~=
61592395
and
c
:
IsAbleToHand
()
end
end
function
c61592395
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c61592395
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c61592395
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c61592395
.
filter
(
chkc
)
end
...
...
script/c6343408.lua
View file @
4d3341fd
...
@@ -11,12 +11,12 @@ function c6343408.initial_effect(c)
...
@@ -11,12 +11,12 @@ function c6343408.initial_effect(c)
e1
:
SetOperation
(
c6343408
.
activate
)
e1
:
SetOperation
(
c6343408
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c6343408
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_REMOVED
,
0
,
5
,
nil
,
TYPE_MONSTER
)
end
function
c6343408
.
filter
(
c
)
function
c6343408
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c6343408
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c6343408
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
5
,
nil
)
end
function
c6343408
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c6343408
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c6343408
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c6343408
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c6343408
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
3
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c6343408
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
3
,
nil
)
end
...
...
script/c64379430.lua
View file @
4d3341fd
...
@@ -25,18 +25,21 @@ function c64379430.initial_effect(c)
...
@@ -25,18 +25,21 @@ function c64379430.initial_effect(c)
e3
:
SetOperation
(
c64379430
.
retop
)
e3
:
SetOperation
(
c64379430
.
retop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c64379430
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
c64379430
.
value
(
e
,
c
)
function
c64379430
.
value
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsAttribute
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
ATTRIBUTE_DARK
)
*
300
return
Duel
.
GetMatchingGroupCount
(
c64379430
.
filter
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
*
300
end
end
function
c64379430
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64379430
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
end
function
c64379430
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64379430
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAttribute
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
ATTRIBUTE_DARK
)
local
g
=
Duel
.
GetMatchingGroup
(
c64379430
.
filter
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c64379430
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64379430
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAttribute
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
,
ATTRIBUTE_DARK
)
local
g
=
Duel
.
GetMatchingGroup
(
c64379430
.
filter
,
0
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RETURN
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RETURN
)
end
end
script/c65422840.lua
View file @
4d3341fd
...
@@ -44,7 +44,7 @@ function c65422840.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c65422840.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
function
c65422840
.
filter
(
c
)
function
c65422840
.
filter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToDeck
()
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_ZOMBIE
)
and
c
:
IsAbleToDeck
()
end
end
function
c65422840
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c65422840
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c65422840
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c65422840
.
filter
(
chkc
)
end
...
...
script/c72056560.lua
View file @
4d3341fd
...
@@ -25,7 +25,7 @@ function c72056560.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c72056560.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c72056560
.
tgfilter
(
c
)
function
c72056560
.
tgfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c72056560
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c72056560
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c72056560
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c72056560
.
tgfilter
(
chkc
)
end
...
...
script/c75198893.lua
View file @
4d3341fd
...
@@ -13,7 +13,7 @@ function c75198893.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c75198893.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c75198893
.
filter
(
c
)
function
c75198893
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsHasEffect
(
EFFECT_FORBIDDEN
)
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsHasEffect
(
EFFECT_FORBIDDEN
)
end
end
function
c75198893
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c75198893
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c75198893
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c75198893
.
filter
(
chkc
)
end
...
...
script/c81254059.lua
View file @
4d3341fd
...
@@ -52,8 +52,8 @@ function c81254059.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,8 +52,8 @@ function c81254059.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
sg
:
GetFirst
():
GetLevel
())
e
:
SetLabel
(
sg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
end
function
c81254059
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c81254059
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c81254059
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81254059
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c84653834.lua
View file @
4d3341fd
...
@@ -26,7 +26,7 @@ function c84653834.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c84653834.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
GetMatchingGroup
(
c84653834
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c84653834
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
sg
:
GetFirst
()
local
tc
=
sg
:
GetFirst
()
local
atk
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
RACE_PSYCHO
)
*
300
local
atk
=
Duel
.
GetMatchingGroupCount
(
c84653834
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
*
300
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c8487449.lua
View file @
4d3341fd
...
@@ -4,9 +4,8 @@ function c8487449.initial_effect(c)
...
@@ -4,9 +4,8 @@ function c8487449.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetProperty
(
EFFECT_FLAG_SPSUM_PARAM
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetTargetRange
(
POS_FACEUP_ATTACK
,
0
)
e1
:
SetTargetRange
(
POS_FACEUP_ATTACK
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c8487449
.
spcon
)
e1
:
SetCondition
(
c8487449
.
spcon
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
...
...
script/c91895091.lua
View file @
4d3341fd
...
@@ -33,11 +33,14 @@ function c91895091.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -33,11 +33,14 @@ function c91895091.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c91895091
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
~=
5
end
function
c91895091
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c91895091
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c
hkc
:
IsFacedown
(
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c
91895091
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c91895091
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
91895091
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
91895091
,
2
))
Duel
.
SelectTarget
(
tp
,
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c91895091
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
end
end
function
c91895091
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91895091
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c94283662.lua
View file @
4d3341fd
...
@@ -48,7 +48,7 @@ function c94283662.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c94283662.thcon(e,tp,eg,ep,ev,re,r,rp)
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
end
function
c94283662
.
filter
(
c
)
function
c94283662
.
filter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Attribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
end
end
function
c94283662
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94283662
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c94283662
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c94283662
.
filter
(
chkc
)
end
...
...
script/c9622164.lua
View file @
4d3341fd
...
@@ -21,13 +21,15 @@ function c9622164.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,13 +21,15 @@ function c9622164.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c9622164
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c9622164
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c9622164
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_REMOVED
and
chkc
:
GetControler
()
==
tp
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c9622164
.
filter
(
chkc
,
e
,
tp
)
end
and
chkc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
and
Duel
.
IsExistingTarget
(
c9622164
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9622164
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
script/c98147766.lua
View file @
4d3341fd
...
@@ -18,7 +18,7 @@ function c98147766.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c98147766.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
c98147766
.
filter
(
c
)
function
c98147766
.
filter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_PSYCHO
)
and
c
:
IsAbleToHand
()
end
end
function
c98147766
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c98147766
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c98147766
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c98147766
.
filter
(
chkc
)
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