Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
dd8e25b2
Commit
dd8e25b2
authored
Aug 21, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ca8be720
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
247 additions
and
103 deletions
+247
-103
expansions/script/c11633000.lua
expansions/script/c11633000.lua
+7
-3
expansions/script/c11633015.lua
expansions/script/c11633015.lua
+2
-2
expansions/script/c11633040.lua
expansions/script/c11633040.lua
+120
-3
expansions/script/c11633045.lua
expansions/script/c11633045.lua
+118
-1
expansions/script/c30829071.lua
expansions/script/c30829071.lua
+0
-94
No files found.
expansions/script/c11633000.lua
View file @
dd8e25b2
--暗海
--暗海
function
Dark_Sea_counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
Duel
.
AddCustomActivityCounter
(
11633000
,
ACTIVITY_SPSUMMON
,
Dark_Sea_counterfilter
)
function
Dark_Sea_Effect
(
c
,
id
)
function
Dark_Sea_Effect
(
c
,
id
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -47,7 +51,7 @@ function Dark_Sea_splimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -47,7 +51,7 @@ function Dark_Sea_splimit(e,c,sump,sumtype,sumpos,targetp,se)
end
end
function
Dark_Sea_spfilter
(
c
,
e
,
tp
,
mg
)
function
Dark_Sea_spfilter
(
c
,
e
,
tp
,
mg
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
or
not
_G
[
"c"
..
c
:
GetCode
()].
Is_Dark_Sea
then
return
false
end
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
or
not
c
:
IsSetCard
(
0xa220
)
then
return
false
end
local
mg2
=
mg
:
Clone
()
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
c
)
mg2
:
RemoveCard
(
c
)
if
c
.
mat_filter
then
if
c
.
mat_filter
then
...
@@ -56,11 +60,11 @@ function Dark_Sea_spfilter(c,e,tp,mg)
...
@@ -56,11 +60,11 @@ function Dark_Sea_spfilter(c,e,tp,mg)
return
mg2
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
return
mg2
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
end
end
function
Dark_Sea_matfilter
(
c
)
function
Dark_Sea_matfilter
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsAbleToGrave
()
and
_G
[
"c"
..
c
:
GetCode
()].
Is_Dark_Sea
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsAbleToGrave
()
and
c
:
IsSetCard
(
0xa220
)
end
end
function
Dark_Sea_spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Dark_Sea_spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
(
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
(
e
:
GetHandler
():
GetReasonPlayer
()
==
1
-
tp
or
e
:
GetHandler
()
.
Is_Dark_Sea
))
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
(
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
(
e
:
GetHandler
():
GetReasonPlayer
()
==
1
-
tp
or
e
:
GetHandler
()
:
IsSetCard
(
0xa220
)
))
end
end
function
Dark_Sea_sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
Dark_Sea_sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
...
...
expansions/script/c11633015.lua
View file @
dd8e25b2
...
@@ -155,13 +155,13 @@ function s.initial_effect(c)
...
@@ -155,13 +155,13 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
end
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c11633040.lua
View file @
dd8e25b2
...
@@ -14,7 +14,124 @@ if not require and loadfile then
...
@@ -14,7 +14,124 @@ if not require and loadfile then
return
require_list
[
str
]
return
require_list
[
str
]
end
end
end
end
if
not
require
(
"expansions/script/c11633000"
)
then
require
(
"expansions/script/c11633000"
)
end
function
Dark_Sea_counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
Duel
.
AddCustomActivityCounter
(
11633000
,
ACTIVITY_SPSUMMON
,
Dark_Sea_counterfilter
)
function
Dark_Sea_Effect
(
c
,
id
)
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCost
(
Dark_Sea_spcost
)
e1
:
SetCondition
(
Dark_Sea_spcon
)
e1
:
SetTarget
(
Dark_Sea_sptg
)
e1
:
SetOperation
(
Dark_Sea_spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_ADJUST
)
e2
:
SetCondition
(
Dark_Sea_pucon
)
e2
:
SetOperation
(
Dark_Sea_puop
)
c
:
RegisterEffect
(
e2
)
end
function
Dark_Sea_pucon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPublic
()
end
function
Dark_Sea_puop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
function
Dark_Sea_spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
11633000
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTarget
(
Dark_Sea_splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
Dark_Sea_splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
Dark_Sea_spfilter
(
c
,
e
,
tp
,
mg
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
or
not
c
:
IsSetCard
(
0xa220
)
then
return
false
end
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
c
)
if
c
.
mat_filter
then
mg2
=
mg2
:
Filter
(
c
.
mat_filter
,
nil
,
tp
)
end
return
mg2
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
end
function
Dark_Sea_matfilter
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsAbleToGrave
()
and
c
:
IsSetCard
(
0xa220
)
end
function
Dark_Sea_spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
(
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
(
e
:
GetHandler
():
GetReasonPlayer
()
==
1
-
tp
or
e
:
GetHandler
():
IsSetCard
(
0xa220
)))
end
function
Dark_Sea_sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11633001
)
<
2
then
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
end
if
Duel
.
GetFlagEffect
(
tp
,
11633002
)
<
1
then
return
Duel
.
IsExistingMatchingCard
(
Dark_Sea_spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
else
return
Duel
.
IsExistingMatchingCard
(
Dark_Sea_spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
Dark_Sea_spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
::
cancel
::
local
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11633001
)
<
2
then
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Group
.
CreateGroup
()
if
Duel
.
GetFlagEffect
(
tp
,
11633002
)
<
1
then
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Dark_Sea_spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
else
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Dark_Sea_spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
end
if
sg
:
GetCount
()
>
0
then
local
tc
=
sg
:
GetFirst
()
mg
:
RemoveCard
(
tc
)
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
nil
,
tp
)
end
local
lv
=
tc
:
GetLevel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
aux
.
GCheckAdditional
=
function
(
sg
)
return
sg
:
GetSum
(
Card
.
GetRitualLevel
,
tc
)
<=
lv
end
local
mat
=
mg
:
SelectSubGroup
(
tp
,
aux
.
RitualCheckEqual
,
true
,
1
,
99
,
tc
,
lv
)
aux
.
GCheckAdditional
=
nil
if
not
mat
then
goto
cancel
end
tc
:
SetMaterial
(
mat
)
if
mat
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
RegisterFlagEffect
(
tp
,
11633001
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
RegisterFlagEffect
(
tp
,
11633002
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--Activate
--Activate
...
@@ -40,7 +157,7 @@ function s.initial_effect(c)
...
@@ -40,7 +157,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_TO_DECK
)
e3
:
SetCode
(
EVENT_TO_DECK
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCondition
(
Dark_Sea_spcon
)
e3
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
end
)
e3
:
SetOperation
(
s
.
addop
)
e3
:
SetOperation
(
s
.
addop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
@@ -63,7 +180,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,7 +180,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
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
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
>
0
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
>
0
then
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c11633045.lua
View file @
dd8e25b2
...
@@ -14,7 +14,124 @@ if not require and loadfile then
...
@@ -14,7 +14,124 @@ if not require and loadfile then
return
require_list
[
str
]
return
require_list
[
str
]
end
end
end
end
if
not
require
(
"expansions/script/c11633000"
)
then
require
(
"expansions/script/c11633000"
)
end
function
Dark_Sea_counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
Duel
.
AddCustomActivityCounter
(
11633000
,
ACTIVITY_SPSUMMON
,
Dark_Sea_counterfilter
)
function
Dark_Sea_Effect
(
c
,
id
)
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCost
(
Dark_Sea_spcost
)
e1
:
SetCondition
(
Dark_Sea_spcon
)
e1
:
SetTarget
(
Dark_Sea_sptg
)
e1
:
SetOperation
(
Dark_Sea_spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_ADJUST
)
e2
:
SetCondition
(
Dark_Sea_pucon
)
e2
:
SetOperation
(
Dark_Sea_puop
)
c
:
RegisterEffect
(
e2
)
end
function
Dark_Sea_pucon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPublic
()
end
function
Dark_Sea_puop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
function
Dark_Sea_spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
11633000
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTarget
(
Dark_Sea_splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
Dark_Sea_splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
Dark_Sea_spfilter
(
c
,
e
,
tp
,
mg
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
or
not
c
:
IsSetCard
(
0xa220
)
then
return
false
end
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
c
)
if
c
.
mat_filter
then
mg2
=
mg2
:
Filter
(
c
.
mat_filter
,
nil
,
tp
)
end
return
mg2
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
end
function
Dark_Sea_matfilter
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsAbleToGrave
()
and
c
:
IsSetCard
(
0xa220
)
end
function
Dark_Sea_spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
(
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
(
e
:
GetHandler
():
GetReasonPlayer
()
==
1
-
tp
or
e
:
GetHandler
():
IsSetCard
(
0xa220
)))
end
function
Dark_Sea_sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11633001
)
<
2
then
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
end
if
Duel
.
GetFlagEffect
(
tp
,
11633002
)
<
1
then
return
Duel
.
IsExistingMatchingCard
(
Dark_Sea_spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
else
return
Duel
.
IsExistingMatchingCard
(
Dark_Sea_spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
Dark_Sea_spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
::
cancel
::
local
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11633001
)
<
2
then
mg
=
Duel
.
GetMatchingGroup
(
Dark_Sea_matfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Group
.
CreateGroup
()
if
Duel
.
GetFlagEffect
(
tp
,
11633002
)
<
1
then
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Dark_Sea_spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
else
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Dark_Sea_spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
end
if
sg
:
GetCount
()
>
0
then
local
tc
=
sg
:
GetFirst
()
mg
:
RemoveCard
(
tc
)
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
nil
,
tp
)
end
local
lv
=
tc
:
GetLevel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
aux
.
GCheckAdditional
=
function
(
sg
)
return
sg
:
GetSum
(
Card
.
GetRitualLevel
,
tc
)
<=
lv
end
local
mat
=
mg
:
SelectSubGroup
(
tp
,
aux
.
RitualCheckEqual
,
true
,
1
,
99
,
tc
,
lv
)
aux
.
GCheckAdditional
=
nil
if
not
mat
then
goto
cancel
end
tc
:
SetMaterial
(
mat
)
if
mat
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
RegisterFlagEffect
(
tp
,
11633001
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
RegisterFlagEffect
(
tp
,
11633002
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c30829071.lua
deleted
100644 → 0
View file @
ca8be720
--驚楽園の大使 <Bufo>
function
c30829071
.
initial_effect
(
c
)
--equip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
30829071
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c30829071
.
eqtg1
)
e1
:
SetOperation
(
c30829071
.
eqop1
)
c
:
RegisterEffect
(
e1
)
--equip change
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
30829071
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
30829071
)
e2
:
SetTarget
(
c30829071
.
eqtg2
)
e2
:
SetOperation
(
c30829071
.
eqop2
)
c
:
RegisterEffect
(
e2
)
end
function
c30829071
.
eqfilter
(
c
)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSetCard
(
0x15c
)
end
function
c30829071
.
eqtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c30829071
.
eqfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c30829071
.
eqfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g1
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g1
,
1
,
0
,
0
)
end
function
c30829071
.
eqop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
ec
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
ec
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
Equip
(
tp
,
ec
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c30829071
.
eqlimit
)
e1
:
SetLabelObject
(
tc
)
ec
:
RegisterEffect
(
e1
)
end
end
function
c30829071
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
c30829071
.
eqfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x15c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsFaceup
()
and
c
:
GetEquipTarget
()
and
Duel
.
IsExistingMatchingCard
(
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
:
GetEquipTarget
(),
tp
)
end
function
c30829071
.
eqfilter2
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x15b
)
or
not
c
:
IsControler
(
tp
))
end
function
c30829071
.
eqtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c30829071
.
eqfilter1
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c30829071
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c30829071
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
function
c30829071
.
eqop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
tc
:
GetEquipTarget
(),
tp
)
local
ec
=
g
:
GetFirst
()
if
ec
then
Duel
.
HintSelection
(
g
)
Duel
.
Equip
(
tp
,
tc
,
ec
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c30829071
.
eqlimit
)
e1
:
SetLabelObject
(
ec
)
tc
:
RegisterEffect
(
e1
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment