Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
5d6c1ffb
Commit
5d6c1ffb
authored
Mar 12, 2026
by
Amiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
b480aaf3
Pipeline
#43681
passed with stages
in 3 minutes and 10 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
117 additions
and
9 deletions
+117
-9
CORI.cdb
CORI.cdb
+0
-0
LOCR.cdb
LOCR.cdb
+0
-0
script/c100257018.lua
script/c100257018.lua
+106
-0
script/c101305011.lua
script/c101305011.lua
+2
-2
script/c101305012.lua
script/c101305012.lua
+2
-1
script/c101305013.lua
script/c101305013.lua
+2
-2
script/c101305014.lua
script/c101305014.lua
+2
-2
script/c101305051.lua
script/c101305051.lua
+3
-2
No files found.
CORI.cdb
View file @
5d6c1ffb
No preview for this file type
LOCR.cdb
View file @
5d6c1ffb
No preview for this file type
script/c100257018.lua
0 → 100644
View file @
5d6c1ffb
--トリプル・ヴァレル・リボルブ
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
+
CATEGORY_DECKDES
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
s
.
tdfilter
(
c
,
e
,
tp
,
res
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeck
()
end
function
s
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
end
function
s
.
tdfilter2
(
c
,
e
,
tp
,
res
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
(
not
e
:
IsCostChecked
()
or
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
(
not
e
:
IsCostChecked
()
or
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter2
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
(
not
e
:
IsCostChecked
()
or
Duel
.
GetFlagEffect
(
tp
,
id
+
o
*
2
)
==
0
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
{
b1
,
aux
.
Stringid
(
id
,
1
),
1
},
{
b1
,
aux
.
Stringid
(
id
,
2
),
2
},
{
b2
,
aux
.
Stringid
(
id
,
3
),
3
})
e
:
SetLabel
(
op
)
if
op
==
1
then
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
+
CATEGORY_DECKDES
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
elseif
op
==
2
then
if
e
:
IsCostChecked
()
then
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_TOHAND
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
2
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
elseif
op
==
3
then
if
e
:
IsCostChecked
()
then
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
*
2
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetCategory
(
CATEGORY_TODECK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
4
,
PLAYER_ALL
,
LOCATION_GRAVE
)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
,
code
)
return
not
c
:
IsCode
(
id
)
and
c
:
IsSetCard
(
0x102
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
elseif
e
:
GetLabel
()
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
elseif
e
:
GetLabel
()
==
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
s
.
tdfilter2
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter2
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
script/c101305011.lua
View file @
5d6c1ffb
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
tc
:
IsRelateToChain
()
and
tc
:
IsType
(
TYPE_MONSTER
)
if
tc
and
tc
:
IsRelateToChain
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -73,7 +73,7 @@ function s.cfilter(c)
...
@@ -73,7 +73,7 @@ function s.cfilter(c)
return
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_EFFECT
)
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
not
c
:
IsCode
(
id
)
and
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
not
c
:
IsCode
(
id
)
and
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
script/c101305012.lua
View file @
5d6c1ffb
...
@@ -30,6 +30,7 @@ end
...
@@ -30,6 +30,7 @@ end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetHandler
():
IsOnField
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
return
re
:
GetHandler
():
IsOnField
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
rp
==
1
-
tp
end
end
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
...
@@ -70,7 +71,7 @@ function s.cfilter(c)
...
@@ -70,7 +71,7 @@ function s.cfilter(c)
return
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_EFFECT
)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
end
function
s
.
tgfilter
(
c
)
function
s
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToGrave
()
...
...
script/c101305013.lua
View file @
5d6c1ffb
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToChain
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
tc
and
tc
:
IsRelateToChain
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -73,7 +73,7 @@ function s.cfilter(c)
...
@@ -73,7 +73,7 @@ function s.cfilter(c)
return
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_EFFECT
)
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
(
c
:
IsCode
(
101305050
)
or
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_SPELL
))
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
101305050
)
or
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_SPELL
))
and
c
:
IsAbleToHand
()
...
...
script/c101305014.lua
View file @
5d6c1ffb
...
@@ -55,7 +55,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
tc
:
IsRelateToChain
()
and
tc
:
IsOnField
()
if
tc
and
tc
:
IsRelateToChain
()
and
tc
:
IsOnField
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -77,7 +77,7 @@ function s.cfilter(c)
...
@@ -77,7 +77,7 @@ function s.cfilter(c)
return
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_EFFECT
)
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
e
:
GetHandler
()
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x2df
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
script/c101305051.lua
View file @
5d6c1ffb
...
@@ -36,8 +36,9 @@ function s.cfilter(c,ec,tp)
...
@@ -36,8 +36,9 @@ function s.cfilter(c,ec,tp)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
Group
.
FromCards
(
c
,
ec
))
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
Group
.
FromCards
(
c
,
ec
))
end
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
and
Duel
.
IsExistingMatchingCard
(
s
.
pfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
then
ct
=
ct
-
1
end
local
b1
=
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
pfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
:
GetHandler
(),
tp
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
:
GetHandler
(),
tp
)
if
chk
==
0
then
return
b1
or
b2
end
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
aux
.
SelectFromOptions
(
tp
,
local
op
=
aux
.
SelectFromOptions
(
tp
,
...
...
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