Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
a1b05cf9
Commit
a1b05cf9
authored
Oct 13, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
54188
parent
bdd77b4e
Pipeline
#30392
passed with stage
in 28 minutes and 9 seconds
Changes
21
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
0 additions
and
777 deletions
+0
-777
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/lflist.conf
expansions/lflist.conf
+0
-5
expansions/pics/98622201.jpg
expansions/pics/98622201.jpg
+0
-0
expansions/pics/98622202.jpg
expansions/pics/98622202.jpg
+0
-0
expansions/pics/98622203.jpg
expansions/pics/98622203.jpg
+0
-0
expansions/pics/98628100.jpg
expansions/pics/98628100.jpg
+0
-0
expansions/pics/98628107.jpg
expansions/pics/98628107.jpg
+0
-0
expansions/pics/98628110.jpg
expansions/pics/98628110.jpg
+0
-0
expansions/pics/98628111.jpg
expansions/pics/98628111.jpg
+0
-0
expansions/pics/98628112.jpg
expansions/pics/98628112.jpg
+0
-0
expansions/pics/98628113.jpg
expansions/pics/98628113.jpg
+0
-0
expansions/script/c98622201.lua
expansions/script/c98622201.lua
+0
-70
expansions/script/c98622202.lua
expansions/script/c98622202.lua
+0
-91
expansions/script/c98622203.lua
expansions/script/c98622203.lua
+0
-57
expansions/script/c98628100.lua
expansions/script/c98628100.lua
+0
-53
expansions/script/c98628107.lua
expansions/script/c98628107.lua
+0
-62
expansions/script/c98628110.lua
expansions/script/c98628110.lua
+0
-68
expansions/script/c98628111.lua
expansions/script/c98628111.lua
+0
-111
expansions/script/c98628112.lua
expansions/script/c98628112.lua
+0
-158
expansions/script/c98628113.lua
expansions/script/c98628113.lua
+0
-101
expansions/strings.conf
expansions/strings.conf
+0
-1
No files found.
expansions/FiNALE.cdb
View file @
a1b05cf9
No preview for this file type
expansions/lflist.conf
View file @
a1b05cf9
...
@@ -2058,12 +2058,7 @@
...
@@ -2058,12 +2058,7 @@
98600004
1
--情书
98600004
1
--情书
98600005
0
--夜樱之宴
98600005
0
--夜樱之宴
98610007
1
--少女分形·冻结之世
98610007
1
--少女分形·冻结之世
98628100
0
--星系守护神 长蛇星神
98628107
0
--禁忌万物的一滴
98628109
0
--承载万物的一滴
98628109
0
--承载万物的一滴
98628110
0
--万用同调降神术
98628111
0
--连锁奔袭士
98628112
0
--时秒观测者
98628114
0
--超级沼气前辈 野兽形态
98628114
0
--超级沼气前辈 野兽形态
98630701
1
--萝莉控诱捕器
98630701
1
--萝莉控诱捕器
98639500
0
--被打扰的冬眠
98639500
0
--被打扰的冬眠
...
...
expansions/pics/98622201.jpg
deleted
100644 → 0
View file @
bdd77b4e
38.1 KB
expansions/pics/98622202.jpg
deleted
100644 → 0
View file @
bdd77b4e
14 KB
expansions/pics/98622203.jpg
deleted
100644 → 0
View file @
bdd77b4e
11.6 KB
expansions/pics/98628100.jpg
deleted
100644 → 0
View file @
bdd77b4e
13.3 KB
expansions/pics/98628107.jpg
deleted
100644 → 0
View file @
bdd77b4e
10.3 KB
expansions/pics/98628110.jpg
deleted
100644 → 0
View file @
bdd77b4e
13 KB
expansions/pics/98628111.jpg
deleted
100644 → 0
View file @
bdd77b4e
19 KB
expansions/pics/98628112.jpg
deleted
100644 → 0
View file @
bdd77b4e
14.6 KB
expansions/pics/98628113.jpg
deleted
100644 → 0
View file @
bdd77b4e
14 KB
expansions/script/c98622201.lua
deleted
100644 → 0
View file @
bdd77b4e
--子虚之罠
function
c98622201
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c98622201
.
target
)
e1
:
SetOperation
(
c98622201
.
activate
)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c98622201
.
handcon
)
c
:
RegisterEffect
(
e2
)
end
function
c98622201
.
filter
(
c
)
return
c
:
IsFacedown
()
and
c
:
GetSequence
()
<
5
end
function
c98622201
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
a
=
Duel
.
GetMatchingGroupCount
(
c98622201
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
if
chk
==
0
then
return
a
>
0
end
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
SetChainLimit
(
c98622201
.
chainlimit
)
end
end
function
c98622201
.
chainlimit
(
e
,
rp
,
tp
)
return
not
(
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
IsType
(
TYPE_TRAP
))
end
function
c98622201
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
if
g1
:
GetCount
()
<
1
then
return
end
Duel
.
ConfirmCards
(
tp
,
g1
)
local
g
=
g1
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_TRAP
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
while
tc
do
local
code
=
tc
:
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c98622201
.
aclimit
)
e1
:
SetLabel
(
code
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
=
g
:
GetNext
()
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
98622201
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
dg
:
GetCount
()
>
0
then
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
else
Duel
.
Draw
(
1
-
tp
,
2
,
REASON_EFFECT
)
end
end
function
c98622201
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c98622201
.
handcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
for
i
=
0
,
4
do
if
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
i
)
then
return
false
end
end
return
true
end
\ No newline at end of file
expansions/script/c98622202.lua
deleted
100644 → 0
View file @
bdd77b4e
--狂风骤雨
function
c98622202
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
c98622202
.
target
)
e1
:
SetCost
(
c98622202
.
cost
)
e1
:
SetOperation
(
c98622202
.
activate
)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
end
function
c98622202
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
c
:
IsLocation
(
LOCATION_HAND
)
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
else
return
true
end
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c98622202
.
filter1
(
c
,
ec
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
~=
ec
and
c
:
IsAbleToDeck
()
end
function
c98622202
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
c
:
IsAbleToDeck
()
end
function
c98622202
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c98622202
.
filter1
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c98622202
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98622202
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
if
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
then
local
b1
=
Duel
.
IsExistingTarget
(
c98622202
.
filter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
tc
,
e
:
GetHandler
())
local
b2
=
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
local
b3
=
true
if
chk
==
0
then
return
b1
or
b2
or
b3
end
local
off
=
1
local
ops
=
{}
local
opval
=
{}
if
b1
then
ops
[
off
]
=
aux
.
Stringid
(
98622202
,
0
)
opval
[
off
-
1
]
=
1
off
=
off
+
1
end
if
b2
then
ops
[
off
]
=
aux
.
Stringid
(
98622202
,
1
)
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
if
b3
then
ops
[
off
]
=
aux
.
Stringid
(
98622202
,
2
)
opval
[
off
-
1
]
=
3
off
=
off
+
1
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
local
sel
=
opval
[
op
]
e
:
SetLabel
(
sel
)
if
sel
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
Duel
.
SelectTarget
(
tp
,
c98622202
.
filter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
tc
,
e
:
GetHandler
())
g
:
AddCard
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
elseif
sel
==
2
then
Duel
.
SetChainLimit
(
c98622202
.
chlimit
)
elseif
sel
==
3
then
end
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c98622202
.
chlimit
(
e
,
ep
,
tp
)
return
tp
==
ep
end
function
c98622202
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c98622203.lua
deleted
100644 → 0
View file @
bdd77b4e
--强制突破
function
c98622203
.
initial_effect
(
c
)
--negate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c98622203
.
con
)
e1
:
SetCost
(
c98622203
.
cost
)
e1
:
SetOperation
(
c98622203
.
op
)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
end
function
c98622203
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasCategory
(
CATEGORY_NEGATE
)
or
re
:
IsHasCategory
(
CATEGORY_DISABLE
)
or
re
:
IsHasCategory
(
CATEGORY_DISABLE_SUMMON
)
end
function
c98622203
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
c
:
IsLocation
(
LOCATION_HAND
)
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
else
return
true
end
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c98622203
.
filter
(
c
,
rtype
)
return
c
:
IsType
(
rtype
)
and
c
:
IsAbleToGrave
()
end
function
c98622203
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rtype
=
bit
.
band
(
re
:
GetActiveType
(),
0x7
)
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
c98622203
.
repop
)
if
Duel
.
IsExistingMatchingCard
(
c98622203
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
rtype
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
98622203
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c98622203
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
rtype
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
end
end
end
function
c98622203
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
c
:
CancelToGrave
(
false
)
end
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c98628100.lua
deleted
100644 → 0
View file @
bdd77b4e
--星系守护神 长蛇星神
--2022/05/15
local
m
=
98628100
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--special summon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e0
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
0x14000
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
0
)
return
#
g
==
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_SZONE
,
0
)
==
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
20
,
nil
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
GetCustomActivityCount
(
m
,
1
-
tp
,
ACTIVITY_CHAIN
)
>=
10
then
Duel
.
SetChainLimit
(
function
(
e
,
ep
,
tp
)
return
tp
==
ep
end
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_GRAVE
,
LOCATION_DECK
+
LOCATION_EXTRA
+
LOCATION_GRAVE
,
aux
.
ExceptThisCard
(
e
))
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_RULE
)
c
:
CompleteProcedure
()
end
end
expansions/script/c98628107.lua
deleted
100644 → 0
View file @
bdd77b4e
--星辰之外的一滴
local
m
=
98628107
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMINGS_CHECK_MONSTER
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
if
not
aux
.
hackchainlimit_ove
then
aux
.
hackchainlimit_ove
=
true
_hack_fusion_chain_false
=
Duel
.
SetChainLimit
function
Duel
.
SetChainLimit
(
bool_function
,
e
,
ep
,
tp
)
return
_hack_fusion_chain_false
(
function
(
e
,
rp
,
tp
)
return
e
:
GetHandler
():
IsOriginalCodeRule
(
155601
)
end
)
end
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetValue
(
RESET_TURN_SET
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
cm
.
efilter
)
tc
:
RegisterEffect
(
e1
)
end
end
function
cm
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
expansions/script/c98628110.lua
deleted
100644 → 0
View file @
bdd77b4e
--万用同调降神术
local
m
=
98628110
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
function
cm
.
counterfilter
(
c
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
or
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
m
,
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
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetLevel
()
>
0
and
c
:
IsAbleToGrave
()
and
c
:
IsFaceupEx
()
end
function
cm
.
fselect
(
g
,
e
,
tp
)
return
aux
.
gffcheck
(
g
,
Card
.
IsType
,
TYPE_TUNER
,
aux
.
NOT
(
Card
.
IsType
),
TYPE_TUNER
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
:
GetSum
(
Card
.
GetLevel
))
end
function
cm
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLevel
(
lv
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
cm
.
fselect
,
2
,
2
,
e
,
tp
)
and
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
false
,
2
,
2
,
e
,
tp
)
local
lv
=
sg
:
GetSum
(
Card
.
GetLevel
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
lv
):
GetFirst
()
if
tc
then
tc
:
SetMaterial
(
nil
)
if
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
tc
:
CompleteProcedure
()
end
end
end
\ No newline at end of file
expansions/script/c98628111.lua
deleted
100644 → 0
View file @
bdd77b4e
--连锁奔袭士
local
m
=
98628111
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
i
=
1
,
ev
do
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
if
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
rp
~=
tp
and
Duel
.
IsChainNegatable
(
i
)
and
Duel
.
GetCurrentChain
()
>=
4
then
return
true
end
end
return
false
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ng
=
Group
.
CreateGroup
()
local
dg
=
Group
.
CreateGroup
()
for
i
=
1
,
ev
do
local
te
,
tgp
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
if
i
%
2
~=
0
then
if
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
i
)
then
local
tc
=
te
:
GetHandler
()
ng
:
AddCard
(
tc
)
end
else
if
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
then
local
tc
=
te
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
te
)
and
tc
:
IsAbleToRemove
()
then
dg
:
AddCard
(
tc
)
end
end
end
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
ng
or
dg
)
end
local
off
=
1
local
ops
,
opval
=
{},{}
if
ng
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
]
=
0
off
=
off
+
1
end
if
dg
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
2
)
opval
[
off
]
=
1
off
=
off
+
1
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
+
1
local
sel
=
opval
[
op
]
e
:
SetLabel
(
sel
)
if
sel
==
0
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_NEGATE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
ng
,
ng
:
GetCount
(),
0
,
0
)
else
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
local
c
=
e
:
GetHandler
()
local
sel
=
e
:
GetLabel
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
for
i
=
1
,
ev
do
local
te
,
tgp
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
if
sel
==
0
then
if
i
%
2
~=
0
and
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
then
Duel
.
NegateActivation
(
i
)
end
else
if
i
%
2
==
0
and
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
then
local
tc
=
te
:
GetHandler
()
if
tc
:
IsAbleToRemove
()
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
expansions/script/c98628112.lua
deleted
100644 → 0
View file @
bdd77b4e
--时秒观测者
local
m
=
98628112
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetCurrentChain
()
return
rp
~=
tp
and
not
ct
or
ct
>=
3
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
num
=
Duel
.
GetCurrentChain
()
-
1
local
numex
=
num
//
2
local
b1_1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
b1_2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
b2_1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_EXTRA
,
0
)
local
b2_2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
((
b1_1
and
b1_2
)
or
(
b2_1
and
b2_2
))
end
local
off
=
1
local
ops
,
opval
=
{},{}
if
b1_1
:
GetCount
()
>=
numex
and
b1_2
:
GetCount
()
>=
numex
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
]
=
0
off
=
off
+
1
end
if
b2_1
:
GetCount
()
>=
numex
and
b2_2
:
GetCount
()
>=
numex
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
2
)
opval
[
off
]
=
1
off
=
off
+
1
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
+
1
local
sel
=
opval
[
op
]
e
:
SetLabel
(
sel
)
if
sel
==
0
then
e
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
num
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
num
,
1
-
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
else
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
local
c
=
e
:
GetHandler
()
local
num
=
Duel
.
GetCurrentChain
()
-
1
local
numex
=
num
//
2
local
num2
=
numex
*
2
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
local
sel
=
e
:
GetLabel
()
if
sel
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
ga
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
numex
,
numex
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
gb
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
TRUE
,
1
-
tp
,
LOCATION_HAND
,
0
,
numex
,
numex
,
nil
)
ga
:
Merge
(
gb
)
if
ga
:
GetCount
()
==
num2
then
Duel
.
HintSelection
(
ga
)
Duel
.
Remove
(
ga
,
POS_FACEDOWN
,
REASON_EFFECT
)
local
tc1
=
ga
:
GetFirst
()
while
tc1
do
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
tc1
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
cm
.
retcon
)
e1
:
SetOperation
(
cm
.
retop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc1
=
ga
:
GetNext
()
end
end
else
local
gt1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
Duel
.
ConfirmCards
(
tp
,
gt1
)
local
gt2
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_EXTRA
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
gt2
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_EXTRA
,
numex
,
numex
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_OPERATECARD
)
local
g2
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
TRUE
,
1
-
tp
,
0
,
LOCATION_EXTRA
,
numex
,
numex
,
nil
)
g1
:
Merge
(
g2
)
if
g1
:
GetCount
()
==
num2
then
Duel
.
HintSelection
(
g1
)
local
tc
=
g1
:
GetFirst
()
while
tc
do
local
codes
=
tc
:
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
tc
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetTarget
(
cm
.
splimit1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
=
g1
:
GetNext
()
end
end
Duel
.
ShuffleExtra
(
tp
)
Duel
.
ShuffleExtra
(
1
-
tp
)
end
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
cm
.
splimit1
(
e
,
c
)
local
tc
=
e
:
GetLabelObject
()
return
c
==
tc
end
function
cm
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
m
)
==
0
then
e
:
Reset
()
return
false
else
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
tc
:
GetControler
(),
REASON_EFFECT
)
end
expansions/script/c98628113.lua
deleted
100644 → 0
View file @
bdd77b4e
--“孩子,不要惧怕”
local
m
=
98628113
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
3
)
c
:
EnableReviveLimit
()
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
synlimit
)
c
:
RegisterEffect
(
e1
)
--immune
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCondition
(
cm
.
imcon
)
e2
:
SetOperation
(
cm
.
imop
)
c
:
RegisterEffect
(
e2
)
--atk/def
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
cm
.
adval
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e4
)
--Cannot activate
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetValue
(
cm
.
aclimit
)
c
:
RegisterEffect
(
e5
)
--disable
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTargetRange
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_REMOVED
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_REMOVED
)
e6
:
SetCode
(
EFFECT_DISABLE
)
e6
:
SetTarget
(
cm
.
distg
)
c
:
RegisterEffect
(
e6
)
end
cm
.
material_type
=
TYPE_SYNCHRO
function
cm
.
imcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
cm
.
imop
(
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_IMMUNE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
cm
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
3
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
3
,
0
,
aux
.
Stringid
(
m
,
0
))
end
function
cm
.
efilter
(
e
,
te
)
if
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
return
true
elseif
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
IsActivated
()
then
local
lv
=
e
:
GetHandler
():
GetLevel
()
local
ec
=
te
:
GetOwner
()
if
ec
:
IsType
(
TYPE_LINK
)
then
return
ec
:
GetLink
()
<
lv
elseif
ec
:
IsType
(
TYPE_XYZ
)
then
return
ec
:
GetOriginalRank
()
<
lv
else
return
ec
:
GetOriginalLevel
()
<
lv
end
else
return
false
end
end
function
cm
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
end
function
cm
.
adval
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
return
(
g
:
GetSum
(
Card
.
GetLevel
)
+
g
:
GetSum
(
Card
.
GetLink
)
+
g
:
GetSum
(
Card
.
GetRank
))
*
800
end
function
cm
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
re
:
GetHandler
()
return
tc
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_REMOVED
)
and
tc
:
IsFaceupEx
()
and
tc
:
IsRace
(
RACE_FAIRY
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
cm
.
distg
(
e
,
c
)
return
c
:
IsRace
(
RACE_FIEND
)
end
expansions/strings.conf
View file @
a1b05cf9
...
@@ -1519,7 +1519,6 @@
...
@@ -1519,7 +1519,6 @@
!
setname
0
x870
少女分形
!
setname
0
x870
少女分形
!
setname
0
x871
濑名歌铃
!
setname
0
x871
濑名歌铃
##持剑者 380518667 221
##持剑者 380518667 221
##◇兔锅 1874883039 222
##◇星空璀璨之地 3077843411 280-281
##◇星空璀璨之地 3077843411 280-281
#cm.Koyuki 三水小雪(仅魔陷)
#cm.Koyuki 三水小雪(仅魔陷)
##◇識之梦 1073149304 307
##◇識之梦 1073149304 307
...
...
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