Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
pre-release-database-cdb
Commits
df2a449f
Commit
df2a449f
authored
Feb 13, 2026
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
460e5002
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
74 additions
and
57 deletions
+74
-57
CORI.cdb
CORI.cdb
+0
-0
script/c101305001.lua
script/c101305001.lua
+7
-4
script/c101305002.lua
script/c101305002.lua
+3
-3
script/c101305003.lua
script/c101305003.lua
+11
-8
script/c101305004.lua
script/c101305004.lua
+8
-11
script/c101305027.lua
script/c101305027.lua
+1
-1
script/c101305028.lua
script/c101305028.lua
+3
-3
script/c101305044.lua
script/c101305044.lua
+10
-7
script/c101305045.lua
script/c101305045.lua
+10
-7
script/c101305046.lua
script/c101305046.lua
+14
-8
script/c101305065.lua
script/c101305065.lua
+7
-5
No files found.
CORI.cdb
View file @
df2a449f
No preview for this file type
script/c101305001.lua
View file @
df2a449f
...
...
@@ -74,6 +74,9 @@ function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_HAND
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
))
end
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)
then
Duel
.
HintSelection
(
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
))
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_SPSUMMON
)
g
:
DeleteGroup
()
end
...
...
@@ -96,9 +99,8 @@ function s.tfop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
pfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
function
s
.
cfilter
(
c
)
return
c
:
Is
Type
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
Is
AllTypes
(
TYPE_RITUAL
+
TYPE_SPELL
)
end
function
s
.
imcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
1
,
nil
)
...
...
@@ -112,8 +114,9 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
2
,
0
,
0
)
end
function
s
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
nil
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
1
,
nil
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
if
#
sg
>
0
then
Duel
.
HintSelection
(
sg
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
script/c101305002.lua
View file @
df2a449f
--混沌の魔王
ー
スカル・デーモン
--混沌の魔王
-
スカル・デーモン
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
101305044
)
...
...
@@ -81,7 +81,7 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c101305003.lua
View file @
df2a449f
...
...
@@ -32,19 +32,21 @@ function s.cfilter(c)
return
aux
.
IsCodeListed
(
c
,
101305044
)
end
function
s
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsPublic
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
3
)
end
end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsPublic
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
and
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
==
3
then
if
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
and
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
BreakEffect
()
Duel
.
DiscardHand
(
tp
,
nil
,
2
,
2
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -53,7 +55,8 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
c
,
REASON_COST
)
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsAllTypes
(
TYPE_MONSTER
+
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
true
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsAllTypes
(
TYPE_MONSTER
+
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
@@ -64,6 +67,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP
)
end
end
script/c101305004.lua
View file @
df2a449f
...
...
@@ -5,11 +5,12 @@ function s.initial_effect(c)
--effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SSET
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetHintTiming
(
TIMING_D
AMAGE_STEP
+
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
TIMING_D
RAW_PHASE
,
TIMING_DRAW_PHASE
+
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCost
(
s
.
effcost
)
e1
:
SetTarget
(
s
.
efftg
)
...
...
@@ -30,9 +31,6 @@ end
function
s
.
tgfilter
(
c
)
return
(
c
:
IsRace
(
RACE_SPELLCASTER
)
or
c
:
IsType
(
TYPE_SPELL
))
and
c
:
IsAbleToGrave
()
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x128
,
0x150
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
setfilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
(
c
:
IsType
(
TYPE_QUICKPLAY
)
or
c
:
IsType
(
TYPE_TRAP
))
and
c
:
IsSSetable
()
end
...
...
@@ -48,9 +46,9 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
0
)
elseif
op
==
2
then
e
:
SetCategory
(
CATEGORY_SSET
)
end
end
function
s
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -77,10 +75,9 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
if
d
c
:
IsType
(
TYPE_QUICKPLAY
)
then
if
t
c
:
IsType
(
TYPE_QUICKPLAY
)
then
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
end
if
dc
:
IsType
(
TYPE_TRAP
)
then
elseif
tc
:
IsType
(
TYPE_TRAP
)
then
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
end
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
...
...
script/c101305027.lua
View file @
df2a449f
...
...
@@ -27,7 +27,7 @@ function s.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_REMOVE
)
e3
:
SetRange
(
LOCATION_
S
ZONE
)
e3
:
SetRange
(
LOCATION_
M
ZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTarget
(
s
.
rmlimit
)
...
...
script/c101305028.lua
View file @
df2a449f
...
...
@@ -35,16 +35,16 @@ function s.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetCondition
(
aux
.
bdo
g
con
)
e4
:
SetCondition
(
aux
.
bdocon
)
e4
:
SetOperation
(
s
.
atkop
)
e4
:
SetCountLimit
(
1
,
id
+
o
)
c
:
RegisterEffect
(
e4
)
end
function
s
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
s
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101305044.lua
View file @
df2a449f
...
...
@@ -2,7 +2,7 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
101305044
,
101305027
,
101305028
)
aux
.
AddRitualProc
Equal2
(
c
,
s
.
rfilter
,
nil
,
aux
.
TURE
,
nil
,
true
)
aux
.
AddRitualProc
Greater2
(
c
,
s
.
rfilter
,
LOCATION_HAND
+
LOCATION_GRAVE
,
s
.
grfilter
,
nil
,
true
)
--salvage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
...
...
@@ -17,22 +17,25 @@ end
function
s
.
rfilter
(
c
)
return
c
:
IsCode
(
101305027
,
101305028
)
end
function
s
.
grfilter
(
c
)
return
c
:
IsAbleToRemove
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
s
.
thfilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_GRAVE
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
and
aux
.
NecroValleyFilter
()(
c
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
g
:
AddCard
(
c
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c101305045.lua
View file @
df2a449f
...
...
@@ -28,6 +28,7 @@ function s.cfilter(c,tp)
return
c
:
IsAbleToHand
()
and
c
:
IsControler
(
tp
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandlerPlayer
()
~=
1
-
tp
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
tp
)
and
not
g
:
IsContains
(
e
:
GetHandler
())
...
...
@@ -41,23 +42,25 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
s
.
spfilter
(
c
,
e
,
tp
,
ec
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
fals
e
,
false
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
tru
e
,
false
)
and
not
c
:
IsCode
(
ec
:
GetCode
())
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToChain
,
nil
):
Filter
(
s
.
cfilter
,
nil
,
tp
)
local
c
=
aux
.
ExceptThisCard
(
e
)
local
g
=
Duel
.
GetTargetsRelateToChain
():
Filter
(
s
.
cfilter
,
c
,
tp
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
tc
then
Duel
.
HintSelection
(
sg
)
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
aux
.
ExceptThisCard
(
e
)
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
c
)
if
dg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
dg
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
~=
0
then
...
...
@@ -80,7 +83,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
spfilter2
(
c
,
e
,
tp
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsAllTypes
(
TYPE_MONSTER
+
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
tru
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
fals
e
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
...
...
@@ -92,6 +95,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
end
end
script/c101305046.lua
View file @
df2a449f
...
...
@@ -15,8 +15,9 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandlerPlayer
()
~=
1
-
tp
then
return
false
end
local
rc
=
re
:
GetHandler
()
return
(
rc
:
GetType
()
==
TYPE_TRAP
or
rc
:
GetType
()
==
TYPE_SPELL
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
or
re
:
IsActiveType
(
TYPE_MONSTER
)
return
(
(
rc
:
GetType
()
==
TYPE_TRAP
or
rc
:
GetType
()
==
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
or
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
s
.
filter
(
c
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
GetSequence
()
<
5
and
c
:
IsCanTurnSet
()
...
...
@@ -39,18 +40,19 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
3
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
<
3
then
return
end
if
not
g
:
CheckSubGroup
(
aux
.
dncheck
,
3
,
3
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g2
:
GetFirst
()
if
not
tc
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
if
not
sg
or
sg
:
GetCount
()
~=
3
then
return
end
if
tc
:
IsFaceup
()
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
tc
:
ClearEffectRelation
()
end
local
tg
=
sg
:
GetFirst
(
)
Duel
.
HintSelection
(
g2
)
for
sc
in
aux
.
Next
(
sg
)
do
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEDOWN_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
sc
)
...
...
@@ -58,7 +60,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
sc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
@@ -77,16 +79,20 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetValue
(
0
)
sc
:
RegisterEffect
(
e5
,
true
)
local
e6
=
e1
:
Clone
()
e6
:
SetCode
(
EFFECT_SET_BASE_
ATTACK
)
e6
:
SetCode
(
EFFECT_SET_BASE_
DEFENSE
)
e6
:
SetValue
(
0
)
sc
:
RegisterEffect
(
e6
,
true
)
local
e7
=
e1
:
Clone
()
e7
:
SetCode
(
EFFECT_CHANGE_CODE
)
e7
:
SetValue
(
id
)
sc
:
RegisterEffect
(
e7
,
true
)
end
Duel
.
SpecialSummonComplete
()
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
sg
:
AddCard
(
tc
)
Duel
.
ShuffleSetCard
(
sg
)
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
local
t
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
t
g
)
Duel
.
ChangeChainOperation
(
ev
,
s
.
repop
)
end
function
s
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101305065.lua
View file @
df2a449f
...
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
TIMING_DRAW_PHASE
,
TIMING_DRAW_PHASE
+
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetTarget
(
s
.
thtg
)
...
...
@@ -25,7 +26,6 @@ function s.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetCondition
(
s
.
spcon
)
e3
:
SetCost
(
s
.
spcost
)
e3
:
SetTarget
(
s
.
sptg
)
...
...
@@ -65,14 +65,16 @@ function s.cfilter(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
t
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
t
p
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
t
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
t
p
)
Duel
.
HintSelection
(
g
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
s
.
spfilter
(
c
,
e
,
tp
,
code
)
return
aux
.
IsCodeListed
(
c
,
101305044
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
not
code
or
c
:
GetCode
()
~=
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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