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
6b099546
Commit
6b099546
authored
Jul 21, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
05bad131
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
8 additions
and
752 deletions
+8
-752
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/95101143.jpg
expansions/pics/95101143.jpg
+0
-0
expansions/pics/95101144.jpg
expansions/pics/95101144.jpg
+0
-0
expansions/pics/95101145.jpg
expansions/pics/95101145.jpg
+0
-0
expansions/pics/95101148.jpg
expansions/pics/95101148.jpg
+0
-0
expansions/pics/95101151.jpg
expansions/pics/95101151.jpg
+0
-0
expansions/pics/95101153.jpg
expansions/pics/95101153.jpg
+0
-0
expansions/pics/95101155.jpg
expansions/pics/95101155.jpg
+0
-0
expansions/script/c89490021.lua
expansions/script/c89490021.lua
+3
-3
expansions/script/c89490024.lua
expansions/script/c89490024.lua
+1
-2
expansions/script/c95101138.lua
expansions/script/c95101138.lua
+2
-2
expansions/script/c95101139.lua
expansions/script/c95101139.lua
+1
-1
expansions/script/c95101140.lua
expansions/script/c95101140.lua
+1
-1
expansions/script/c95101143.lua
expansions/script/c95101143.lua
+0
-95
expansions/script/c95101144.lua
expansions/script/c95101144.lua
+0
-113
expansions/script/c95101145.lua
expansions/script/c95101145.lua
+0
-134
expansions/script/c95101148.lua
expansions/script/c95101148.lua
+0
-115
expansions/script/c95101151.lua
expansions/script/c95101151.lua
+0
-105
expansions/script/c95101153.lua
expansions/script/c95101153.lua
+0
-137
expansions/script/c95101155.lua
expansions/script/c95101155.lua
+0
-44
No files found.
expansions/no81.cdb
View file @
6b099546
No preview for this file type
expansions/pics/95101143.jpg
deleted
100644 → 0
View file @
05bad131
18.9 KB
expansions/pics/95101144.jpg
deleted
100644 → 0
View file @
05bad131
23.9 KB
expansions/pics/95101145.jpg
deleted
100644 → 0
View file @
05bad131
29.5 KB
expansions/pics/95101148.jpg
deleted
100644 → 0
View file @
05bad131
20 KB
expansions/pics/95101151.jpg
deleted
100644 → 0
View file @
05bad131
26.7 KB
expansions/pics/95101153.jpg
deleted
100644 → 0
View file @
05bad131
24.4 KB
expansions/pics/95101155.jpg
deleted
100644 → 0
View file @
05bad131
24 KB
expansions/script/c89490021.lua
View file @
6b099546
...
...
@@ -41,10 +41,10 @@ function s.eqfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc33
)
end
function
s
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
chkc
:
IsFaceup
(
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
s
.
eqfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
s
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
s
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c89490024.lua
View file @
6b099546
...
...
@@ -54,9 +54,8 @@ function s.repfilter(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xc33
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
s
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
eg
:
FilterCount
(
s
.
repfilter
,
nil
,
tp
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
if
chk
==
0
then
return
g
:
IsExists
(
Card
.
IsAbleToRemove
,
1
,
nil
)
end
if
chk
==
0
then
return
eg
:
FilterCount
(
s
.
repfilter
,
nil
,
tp
)
>
0
and
g
:
IsExists
(
Card
.
IsAbleToRemove
,
1
,
nil
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
expansions/script/c95101138.lua
View file @
6b099546
...
...
@@ -28,7 +28,7 @@ function c95101138.filter1(c,e)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c95101138
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0xbb
d
)
and
(
not
f
or
f
(
c
))
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0xbb
e
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
c95101138
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -88,7 +88,7 @@ function c95101138.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c95101138
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xbb
d
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0xbb
e
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
end
function
c95101138
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101138
.
thfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c95101139.lua
View file @
6b099546
...
...
@@ -15,7 +15,7 @@ end
function
c95101139
.
ffilter
(
c
,
tc
,
tp
)
return
c
:
IsType
(
TYPE_FUSION
)
and
Duel
.
IsExistingMatchingCard
(
c95101139
.
cfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
tc
,
c
)
end
function
c
6498706
.
cfilter
(
c
,
tc
,
fc
)
function
c
95101139
.
cfilter
(
c
,
tc
,
fc
)
return
aux
.
IsMaterialListCode
(
fc
,
c
:
GetCode
())
and
not
c
:
IsCode
(
tc
:
GetFusionCode
())
end
function
c95101139
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c95101140.lua
View file @
6b099546
...
...
@@ -13,7 +13,7 @@ function c95101140.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c95101140
.
filter
(
c
)
return
c
:
IsSetCard
(
0xbb
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0xbb
e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemoveAsCost
()
end
function
c95101140
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101140
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c95101143.lua
deleted
100644 → 0
View file @
05bad131
--牡蛎的死腐海
function
c95101143
.
initial_effect
(
c
)
--Activate
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e0
)
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_WATER
))
e1
:
SetValue
(
c95101143
.
atkval
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101143
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c95101143
.
thtg
)
e2
:
SetOperation
(
c95101143
.
thop
)
c
:
RegisterEffect
(
e2
)
--activate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
95101143
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
--e3:SetProperty(EFFECT_FLAG_DELAY)
e3
:
SetCountLimit
(
1
)
e3
:
SetTarget
(
c95101143
.
actg
)
e3
:
SetOperation
(
c95101143
.
acop
)
c
:
RegisterEffect
(
e3
)
end
function
c95101143
.
atkfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsFaceup
()
end
function
c95101143
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c95101143
.
atkfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
*
1000
end
function
c95101143
.
thfilter
(
c
,
chk
)
return
c
:
IsSetCard
(
0xbbf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
(
chk
==
0
or
aux
.
NecroValleyFilter
()(
c
))
end
function
c95101143
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101143
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c95101143
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101143
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
1
):
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c95101143
.
acfilter
(
c
,
tp
,
chk
)
return
c
:
IsCode
(
95101144
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
c
:
GetActivateEffect
()
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
and
(
chk
==
0
or
aux
.
NecroValleyFilter
()(
c
))
end
function
c95101143
.
actg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101143
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
,
0
)
end
end
function
c95101143
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c95101143
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
tp
,
1
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101143
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
,
1
):
GetFirst
()
if
tc
then
local
field
=
tc
:
IsType
(
TYPE_FIELD
)
if
field
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
else
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
local
te
=
tc
:
GetActivateEffect
()
te
:
UseCountLimit
(
tp
,
1
,
true
)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
field
then
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
end
end
end
expansions/script/c95101144.lua
deleted
100644 → 0
View file @
05bad131
--深海的水晶宫
function
c95101144
.
initial_effect
(
c
)
--Activate
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e0
)
--attribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetValue
(
ATTRIBUTE_WATER
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_GRAVE
,
LOCATION_GRAVE
)
e2
:
SetCondition
(
c95101144
.
gravecon
)
e2
:
SetValue
(
ATTRIBUTE_WATER
)
c
:
RegisterEffect
(
e2
)
--negate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c95101144
.
discon
)
e3
:
SetCost
(
c95101144
.
discost
)
e3
:
SetTarget
(
c95101144
.
distg
)
e3
:
SetOperation
(
c95101144
.
disop
)
c
:
RegisterEffect
(
e3
)
--activate
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
95101144
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
--e4:SetProperty(EFFECT_FLAG_DELAY)
e4
:
SetCountLimit
(
1
)
e4
:
SetTarget
(
c95101144
.
actg
)
e4
:
SetOperation
(
c95101144
.
acop
)
c
:
RegisterEffect
(
e4
)
end
function
c95101144
.
gravecon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
end
function
c95101144
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
attr
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_ATTRIBUTE
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
attr
&
ATTRIBUTE_DARK
>
0
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c95101144
.
xfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xbbf
)
and
c
:
IsFaceup
()
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
-- and c:IsType(TYPE_XYZ)
end
function
c95101144
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101144
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DEATTACHFROM
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101144
.
xfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
tc
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
end
function
c95101144
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
end
function
c95101144
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
function
c95101144
.
acfilter
(
c
,
tp
,
chk
)
return
c
:
IsCode
(
95101143
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
c
:
GetActivateEffect
()
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
and
(
chk
==
0
or
aux
.
NecroValleyFilter
()(
c
))
end
function
c95101144
.
actg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101144
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
,
0
)
end
end
function
c95101144
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c95101144
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
tp
,
1
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101144
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
,
1
):
GetFirst
()
if
tc
then
local
field
=
tc
:
IsType
(
TYPE_FIELD
)
if
field
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
else
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
local
te
=
tc
:
GetActivateEffect
()
te
:
UseCountLimit
(
tp
,
1
,
true
)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
field
then
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
end
end
end
expansions/script/c95101145.lua
deleted
100644 → 0
View file @
05bad131
--溟海捕食者 希伏契
function
c95101145
.
initial_effect
(
c
)
--pendulum
aux
.
EnablePendulumAttribute
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95101145
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
95101145
)
e1
:
SetCost
(
c95101145
.
spcost
)
e1
:
SetTarget
(
c95101145
.
sptg
)
e1
:
SetOperation
(
c95101145
.
spop
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101145
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
95101145
+
1
)
e2
:
SetCondition
(
c95101145
.
thcon
)
e2
:
SetTarget
(
c95101145
.
thtg
)
e2
:
SetOperation
(
c95101145
.
thop
)
c
:
RegisterEffect
(
e2
)
--activate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
95101145
,
0
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
95101145
+
1
)
e3
:
SetCost
(
c95101145
.
accost
)
e3
:
SetTarget
(
c95101145
.
actg
)
e3
:
SetOperation
(
c95101145
.
acop
)
c
:
RegisterEffect
(
e3
)
--counter
Duel
.
AddCustomActivityCounter
(
95101145
,
ACTIVITY_SPSUMMON
,
c95101145
.
counterfilter
)
end
function
c95101145
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101145
.
tgfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c95101145
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101145
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCustomActivityCount
(
95101145
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
Duel
.
DiscardHand
(
tp
,
c95101145
.
tgfilter
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTarget
(
c95101145
.
splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c95101145
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101145
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c95101145
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c95101145
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101145
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xbbd
)
and
not
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c95101145
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101145
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c95101145
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101145
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c95101145
.
disfilter
(
c
,
tp
)
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
c95101145
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
,
tp
,
0
)
end
function
c95101145
.
accost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101145
.
disfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
DiscardHand
(
tp
,
c95101145
.
disfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
,
tp
)
end
function
c95101145
.
acfilter
(
c
,
tp
,
chk
)
return
c
:
IsCode
(
95101143
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
c
:
GetActivateEffect
()
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
and
(
chk
==
0
or
aux
.
NecroValleyFilter
()(
c
))
end
function
c95101145
.
actg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101145
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
tp
,
0
)
end
end
function
c95101145
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c95101145
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
tp
,
1
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101145
.
acfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
,
1
):
GetFirst
()
if
tc
then
local
field
=
tc
:
IsType
(
TYPE_FIELD
)
if
field
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
else
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
local
te
=
tc
:
GetActivateEffect
()
te
:
UseCountLimit
(
tp
,
1
,
true
)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
field
then
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
end
end
end
expansions/script/c95101148.lua
deleted
100644 → 0
View file @
05bad131
--溟海骑士 大工
function
c95101148
.
initial_effect
(
c
)
--pendulum
aux
.
EnablePendulumAttribute
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95101148
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
95101148
)
e1
:
SetCost
(
c95101148
.
spcost
)
e1
:
SetTarget
(
c95101148
.
sptg
)
e1
:
SetOperation
(
c95101148
.
spop
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101148
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
95101148
+
1
)
e2
:
SetCondition
(
c95101148
.
thcon
)
e2
:
SetTarget
(
c95101148
.
thtg
)
e2
:
SetOperation
(
c95101148
.
thop
)
c
:
RegisterEffect
(
e2
)
--atk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
95101148
,
0
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
95101148
+
2
)
e3
:
SetCondition
(
c95101148
.
atkcon
)
e3
:
SetOperation
(
c95101148
.
atkop
)
c
:
RegisterEffect
(
e3
)
--counter
Duel
.
AddCustomActivityCounter
(
95101148
,
ACTIVITY_SPSUMMON
,
c95101148
.
counterfilter
)
end
function
c95101148
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101148
.
tgfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c95101148
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101148
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCustomActivityCount
(
95101148
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
Duel
.
DiscardHand
(
tp
,
c95101148
.
tgfilter
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTarget
(
c95101148
.
splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c95101148
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101148
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c95101148
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c95101148
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101148
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xbbf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c95101148
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101148
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c95101148
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c95101148
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c95101148
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
a
:
GetBattleTarget
()
if
a
:
IsControler
(
1
-
tp
)
then
a
,
d
=
d
,
a
end
return
a
and
a
:
IsFaceup
()
and
a
:
IsRelateToBattle
()
and
c
:
IsSetCard
(
0xbbf
)
and
d
and
d
:
IsFaceup
()
and
d
:
IsRelateToBattle
()
and
d
:
GetAttack
()
>
0
and
a
:
GetControler
()
~=
d
:
GetControler
()
end
function
c95101148
.
atkop
(
e
,
tp
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
a
:
GetBattleTarget
()
if
a
:
IsControler
(
1
-
tp
)
then
a
,
d
=
d
,
a
end
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
a
:
IsFaceup
()
and
a
:
IsRelateToBattle
()
and
d
:
IsFaceup
()
and
d
:
IsRelateToBattle
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
d
:
GetAttack
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
a
:
RegisterEffect
(
e1
)
end
end
expansions/script/c95101151.lua
deleted
100644 → 0
View file @
05bad131
--溟海姬 克缇
function
c95101151
.
initial_effect
(
c
)
--pendulum
aux
.
EnablePendulumAttribute
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95101151
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
95101151
)
e1
:
SetCost
(
c95101151
.
spcost
)
e1
:
SetTarget
(
c95101151
.
sptg
)
e1
:
SetOperation
(
c95101151
.
spop
)
c
:
RegisterEffect
(
e1
)
--control
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101151
,
0
))
e2
:
SetCategory
(
CATEGORY_CONTROL
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
95101151
+
1
)
e2
:
SetCondition
(
c95101151
.
ctcon
)
e2
:
SetTarget
(
c95101151
.
cttg
)
e2
:
SetOperation
(
c95101151
.
ctop
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0xbbf
))
e3
:
SetValue
(
2000
)
c
:
RegisterEffect
(
e3
)
--indes
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0xbbf
))
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
c
:
RegisterEffect
(
e5
)
--cannot be target
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e6
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e6
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e6
)
--counter
Duel
.
AddCustomActivityCounter
(
95101151
,
ACTIVITY_SPSUMMON
,
c95101151
.
counterfilter
)
end
function
c95101151
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101151
.
tgfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c95101151
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101151
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCustomActivityCount
(
95101151
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
Duel
.
DiscardHand
(
tp
,
c95101151
.
tgfilter
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTarget
(
c95101151
.
splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c95101151
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101151
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c95101151
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c95101151
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101151
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
nil
,
1
,
0
,
0
)
end
function
c95101151
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
Duel
.
HintSelection
(
Group
.
FromCards
(
tc
))
Duel
.
GetControl
(
tc
,
tp
)
end
end
expansions/script/c95101153.lua
deleted
100644 → 0
View file @
05bad131
--溟海姬 托娅
function
c95101153
.
initial_effect
(
c
)
--pendulum
aux
.
EnablePendulumAttribute
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95101153
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
95101153
)
e1
:
SetCost
(
c95101153
.
spcost
)
e1
:
SetTarget
(
c95101153
.
sptg
)
e1
:
SetOperation
(
c95101153
.
spop
)
c
:
RegisterEffect
(
e1
)
--set
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101153
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
95101153
+
1
)
e2
:
SetCondition
(
c95101153
.
setcon
)
e2
:
SetTarget
(
c95101153
.
settg
)
e2
:
SetOperation
(
c95101153
.
setop
)
c
:
RegisterEffect
(
e2
)
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetCondition
(
c95101153
.
actcon
)
c
:
RegisterEffect
(
e3
)
--disable
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetOperation
(
c95101153
.
disop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_DISABLE
)
e5
:
SetRange
(
LOCATION_PZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c95101153
.
distg
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e6
:
SetValue
(
RESET_TURN_SET
)
c
:
RegisterEffect
(
e6
)
--counter
Duel
.
AddCustomActivityCounter
(
95101153
,
ACTIVITY_SPSUMMON
,
c95101153
.
counterfilter
)
end
function
c95101153
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101153
.
tgfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c95101153
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95101153
.
tgfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCustomActivityCount
(
95101153
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
Duel
.
DiscardHand
(
tp
,
c95101153
.
tgfilter
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTarget
(
c95101153
.
splimit
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c95101153
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c95101153
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c95101153
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c95101153
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsAttribute
(
ATTRIBUTE_WATER
)
end
function
c51929017
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c51929017
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
):
GetFirst
()
if
not
tc
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
local
zone
=
1
<<
tc
:
GetSequence
()
local
oc
=
Duel
.
GetMatchingGroup
(
c51929017
.
seqfilter
,
tp
,
0
,
LOCATION_SZONE
,
nil
,
tc
:
GetSequence
()):
GetFirst
()
if
oc
then
Duel
.
Destroy
(
oc
,
REASON_RULE
)
end
if
Duel
.
MoveToField
(
tc
,
1
-
tp
,
1
-
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
,
zone
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
tc
:
RegisterEffect
(
e1
)
end
end
function
c95101153
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xbbf
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
end
function
c95101153
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
return
(
a
and
c95101153
.
cfilter
(
a
,
tp
))
or
(
d
and
c95101153
.
cfilter
(
d
,
tp
))
end
function
c95101153
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
AdjustInstantly
(
e
:
GetHandler
())
end
function
c95101153
.
distg
(
e
,
c
)
local
fid
=
e
:
GetHandler
():
GetFieldID
()
for
_
,
flag
in
ipairs
({
c
:
GetFlagEffectLabel
(
95101153
)})
do
if
flag
==
fid
then
return
true
end
end
local
bc
=
c
:
GetBattleTarget
()
if
c
:
IsRelateToBattle
()
and
bc
and
c95101153
.
cfilter
(
bc
,
e
:
GetHandlerPlayer
())
then
c
:
RegisterFlagEffect
(
95101153
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
return
true
end
return
false
end
expansions/script/c95101155.lua
deleted
100644 → 0
View file @
05bad131
--溟海之神 神之异鱼
function
c95101155
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_WATER
),
5
,
2
,
nil
,
nil
,
99
)
c
:
EnableReviveLimit
()
--immune
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c95101155
.
efilter
)
c
:
RegisterEffect
(
e1
)
--atk
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
95101155
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
Duel
.
IsMainPhase
)
e2
:
SetCost
(
c95101155
.
atkcost
)
e2
:
SetOperation
(
c95101155
.
atkop
)
c
:
RegisterEffect
(
e2
)
end
function
c95101155
.
efilter
(
e
,
te
)
return
not
te
:
GetOwner
():
IsSetCard
(
0xbbf
)
end
function
c95101155
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c95101155
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
c
:
GetAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
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