Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
16a07fe1
Commit
16a07fe1
authored
Mar 25, 2015
by
fluorohydride
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Ritual Foregone" cannot special summon ritual monsters with spsummon condition
parent
3a7260be
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1054 additions
and
1018 deletions
+1054
-1018
ocgcore/card.cpp
ocgcore/card.cpp
+1
-1
script/c14735698.lua
script/c14735698.lua
+2
-2
script/c21105106.lua
script/c21105106.lua
+4
-0
script/c25857246.lua
script/c25857246.lua
+77
-73
script/c26674724.lua
script/c26674724.lua
+74
-70
script/c27383110.lua
script/c27383110.lua
+84
-84
script/c46052429.lua
script/c46052429.lua
+49
-49
script/c51124303.lua
script/c51124303.lua
+139
-139
script/c52068432.lua
script/c52068432.lua
+87
-83
script/c52846880.lua
script/c52846880.lua
+82
-78
script/c64437633.lua
script/c64437633.lua
+45
-45
script/c65450690.lua
script/c65450690.lua
+63
-63
script/c74122412.lua
script/c74122412.lua
+87
-83
script/c88240999.lua
script/c88240999.lua
+91
-87
script/c89463537.lua
script/c89463537.lua
+58
-54
script/c97211663.lua
script/c97211663.lua
+3
-3
script/c99185129.lua
script/c99185129.lua
+102
-98
script/utility.lua
script/utility.lua
+6
-6
No files found.
ocgcore/card.cpp
View file @
16a07fe1
...
@@ -1924,7 +1924,7 @@ int32 card::is_can_be_special_summoned(effect * reason_effect, uint32 sumtype, u
...
@@ -1924,7 +1924,7 @@ int32 card::is_can_be_special_summoned(effect * reason_effect, uint32 sumtype, u
if
(
current
.
location
==
LOCATION_REMOVED
&&
(
current
.
position
&
POS_FACEDOWN
))
if
(
current
.
location
==
LOCATION_REMOVED
&&
(
current
.
position
&
POS_FACEDOWN
))
return
FALSE
;
return
FALSE
;
if
(
is_status
(
STATUS_REVIVE_LIMIT
)
&&
!
is_status
(
STATUS_PROC_COMPLETE
))
{
if
(
is_status
(
STATUS_REVIVE_LIMIT
)
&&
!
is_status
(
STATUS_PROC_COMPLETE
))
{
if
((
!
nolimit
&&
(
current
.
location
&
0x38
))
||
(
!
nocheck
&&
(
current
.
location
&
0x3
)))
if
((
!
nolimit
&&
(
current
.
location
&
0x38
))
||
(
!
nocheck
&&
!
nolimit
&&
(
current
.
location
&
0x3
)))
return
FALSE
;
return
FALSE
;
}
}
if
(((
sumpos
&
POS_FACEDOWN
)
==
0
)
&&
pduel
->
game_field
->
check_unique_onfield
(
this
,
toplayer
))
if
(((
sumpos
&
POS_FACEDOWN
)
==
0
)
&&
pduel
->
game_field
->
check_unique_onfield
(
this
,
toplayer
))
...
...
script/c14735698.lua
View file @
16a07fe1
...
@@ -22,7 +22,7 @@ function c14735698.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c14735698.initial_effect(c)
end
end
function
c14735698
.
filter
(
c
,
e
,
tp
,
m
)
function
c14735698
.
filter
(
c
,
e
,
tp
,
m
)
if
not
c
:
IsSetCard
(
0xb4
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
not
c
:
IsSetCard
(
0xb4
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
fals
e
)
then
return
false
end
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
tru
e
)
then
return
false
end
if
c
:
IsCode
(
21105106
)
then
return
c
:
ritual_custom_condition
(
m
)
end
if
c
:
IsCode
(
21105106
)
then
return
c
:
ritual_custom_condition
(
m
)
end
local
mg
=
nil
local
mg
=
nil
if
c
.
mat_filter
then
if
c
.
mat_filter
then
...
@@ -68,7 +68,7 @@ function c14735698.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,7 +68,7 @@ function c14735698.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
...
...
script/c21105106.lua
View file @
16a07fe1
...
@@ -6,6 +6,7 @@ function c21105106.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c21105106.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c21105106
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot spsummon
--cannot spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -27,6 +28,9 @@ function c21105106.initial_effect(c)
...
@@ -27,6 +28,9 @@ function c21105106.initial_effect(c)
e3
:
SetOperation
(
c21105106
.
rmop
)
e3
:
SetOperation
(
c21105106
.
rmop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c21105106
.
splimit
(
e
,
se
,
sp
,
st
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
and
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c21105106
.
mat_filter
(
c
)
function
c21105106
.
mat_filter
(
c
)
return
false
return
false
end
end
...
...
script/c25857246.lua
View file @
16a07fe1
--ヴァルキュルスの影霊衣
--ヴァルキュルスの影霊衣
function
c25857246
.
initial_effect
(
c
)
function
c25857246
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c25857246
.
splimit
)
--atk
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--atk
e2
:
SetDescription
(
aux
.
Stringid
(
25857246
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetDescription
(
aux
.
Stringid
(
25857246
,
0
))
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetCountLimit
(
1
,
25857246
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c25857246
.
atkcon
)
e2
:
SetCountLimit
(
1
,
25857246
)
e2
:
SetCost
(
c25857246
.
atkcost
)
e2
:
SetCondition
(
c25857246
.
atkcon
)
e2
:
SetOperation
(
c25857246
.
atkop
)
e2
:
SetCost
(
c25857246
.
atkcost
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c25857246
.
atkop
)
--draw
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--draw
e3
:
SetDescription
(
aux
.
Stringid
(
25857246
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetDescription
(
aux
.
Stringid
(
25857246
,
1
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCountLimit
(
1
,
25857247
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c25857246
.
target
)
e3
:
SetCountLimit
(
1
,
25857247
)
e3
:
SetOperation
(
c25857246
.
operation
)
e3
:
SetTarget
(
c25857246
.
target
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c25857246
.
operation
)
end
c
:
RegisterEffect
(
e3
)
function
c25857246
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
8
function
c25857246
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c25857246
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
function
c25857246
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
8
function
c25857246
.
cfilter
(
c
)
end
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsAbleToRemoveAsCost
()
function
c25857246
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
function
c25857246
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
function
c25857246
.
cfilter
(
c
)
and
Duel
.
IsExistingMatchingCard
(
c25857246
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsAbleToRemoveAsCost
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25857246
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
function
c25857246
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
and
Duel
.
IsExistingMatchingCard
(
c25857246
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
function
c25857246
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25857246
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
Duel
.
NegateAttack
()
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE
,
1
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
end
function
c25857246
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25857246
.
filter
(
c
)
if
Duel
.
NegateAttack
()
then
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasableByEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE
,
1
)
end
end
function
c25857246
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
function
c25857246
.
filter
(
c
)
and
Duel
.
CheckReleaseGroupEx
(
tp
,
c25857246
.
filter
,
1
,
nil
)
end
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasableByEffect
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c25857246
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25857246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
not
Duel
.
IsPlayerCanDraw
(
tp
)
then
return
end
and
Duel
.
CheckReleaseGroupEx
(
tp
,
c25857246
.
filter
,
1
,
nil
)
end
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
if
ct
==
0
then
ct
=
1
end
end
if
ct
>
2
then
ct
=
2
end
function
c25857246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c25857246
.
filter
,
1
,
ct
,
nil
)
if
not
Duel
.
IsPlayerCanDraw
(
tp
)
then
return
end
if
g
:
GetCount
()
>
0
then
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
Duel
.
HintSelection
(
g
)
if
ct
==
0
then
ct
=
1
end
local
rct
=
Duel
.
Release
(
g
,
REASON_EFFECT
)
if
ct
>
2
then
ct
=
2
end
Duel
.
Draw
(
tp
,
rct
,
REASON_EFFECT
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c25857246
.
filter
,
1
,
ct
,
nil
)
end
if
g
:
GetCount
()
>
0
then
end
Duel
.
HintSelection
(
g
)
local
rct
=
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
rct
,
REASON_EFFECT
)
end
end
script/c26674724.lua
View file @
16a07fe1
--ブリューナクの影霊衣
--ブリューナクの影霊衣
function
c26674724
.
initial_effect
(
c
)
function
c26674724
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c26674724
.
splimit
)
--tohand
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--tohand
e2
:
SetDescription
(
aux
.
Stringid
(
26674724
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetDescription
(
aux
.
Stringid
(
26674724
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
26674724
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCost
(
c26674724
.
thcost
)
e2
:
SetCountLimit
(
1
,
26674724
)
e2
:
SetTarget
(
c26674724
.
thtg
)
e2
:
SetCost
(
c26674724
.
thcost
)
e2
:
SetOperation
(
c26674724
.
thop
)
e2
:
SetTarget
(
c26674724
.
thtg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c26674724
.
thop
)
--todeck
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--todeck
e3
:
SetDescription
(
aux
.
Stringid
(
26674724
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TODECK
)
e3
:
SetDescription
(
aux
.
Stringid
(
26674724
,
1
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCategory
(
CATEGORY_TODECK
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
26674725
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c26674724
.
tdtg
)
e3
:
SetCountLimit
(
1
,
26674725
)
e3
:
SetOperation
(
c26674724
.
tdop
)
e3
:
SetTarget
(
c26674724
.
tdtg
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c26674724
.
tdop
)
end
c
:
RegisterEffect
(
e3
)
function
c26674724
.
mat_filter
(
c
)
end
return
not
c
:
IsCode
(
26674724
)
function
c26674724
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c26674724
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c26674724
.
mat_filter
(
c
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
not
c
:
IsCode
(
26674724
)
end
end
function
c26674724
.
thfilter
(
c
)
function
c26674724
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsSetCard
(
0xb4
)
and
not
c
:
IsCode
(
26674724
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c26674724
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26674724
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
function
c26674724
.
thfilter
(
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
return
c
:
IsSetCard
(
0xb4
)
and
not
c
:
IsCode
(
26674724
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c26674724
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26674724
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26674724
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c26674724
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
g
:
GetCount
()
>
0
then
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
function
c26674724
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c26674724
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
end
if
g
:
GetCount
()
>
0
then
function
c26674724
.
tdfilter
(
c
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsAbleToDeck
()
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c26674724
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c26674724
.
tdfilter
(
chkc
)
end
function
c26674724
.
tdfilter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26674724
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsAbleToDeck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c26674724
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
2
,
nil
)
function
c26674724
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c26674724
.
tdfilter
(
chkc
)
end
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26674724
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c26674724
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c26674724
.
tdfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
end
function
c26674724
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
end
script/c27383110.lua
View file @
16a07fe1
--宣告者の預言
--宣告者の預言
function
c27383110
.
initial_effect
(
c
)
function
c27383110
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c27383110
.
target
)
e1
:
SetTarget
(
c27383110
.
target
)
e1
:
SetOperation
(
c27383110
.
activate
)
e1
:
SetOperation
(
c27383110
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--salvage
--salvage
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetDescription
(
aux
.
Stringid
(
27383110
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
27383110
,
0
))
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
27383110
)
e2
:
SetCode
(
27383110
)
e2
:
SetCost
(
c27383110
.
thcost
)
e2
:
SetCost
(
c27383110
.
thcost
)
e2
:
SetTarget
(
c27383110
.
thtg
)
e2
:
SetTarget
(
c27383110
.
thtg
)
e2
:
SetOperation
(
c27383110
.
thop
)
e2
:
SetOperation
(
c27383110
.
thop
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c27383110
.
filter
(
c
,
e
,
tp
,
m
)
function
c27383110
.
filter
(
c
,
e
,
tp
,
m
)
local
cd
=
c
:
GetCode
()
local
cd
=
c
:
GetCode
()
if
cd
~=
44665365
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
then
return
false
end
if
cd
~=
44665365
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
if
m
:
IsContains
(
c
)
then
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
m
:
RemoveCard
(
c
)
result
=
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
6
,
1
,
99
,
c
)
result
=
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
6
,
1
,
99
,
c
)
m
:
AddCard
(
c
)
m
:
AddCard
(
c
)
else
else
result
=
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
6
,
1
,
99
,
c
)
result
=
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
6
,
1
,
99
,
c
)
end
end
return
result
return
result
end
end
function
c27383110
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27383110
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
return
Duel
.
IsExistingMatchingCard
(
c27383110
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
return
Duel
.
IsExistingMatchingCard
(
c27383110
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c27383110
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27383110
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c27383110
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c27383110
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
mg
:
RemoveCard
(
tc
)
mg
:
RemoveCard
(
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
6
,
1
,
99
,
tc
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
6
,
1
,
99
,
tc
)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
27383110
,
e
,
0
,
tp
,
tp
,
0
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
27383110
,
e
,
0
,
tp
,
tp
,
0
)
end
end
end
end
function
c27383110
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27383110
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c27383110
.
thfilter
(
c
,
e
,
tp
)
function
c27383110
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsAbleToHand
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsAbleToHand
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c27383110
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c27383110
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tc
=
e
:
GetLabelObject
():
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
():
GetLabelObject
()
local
mat
=
tc
:
GetMaterial
()
local
mat
=
tc
:
GetMaterial
()
if
chkc
then
return
mat
:
IsContains
(
chkc
)
and
c27383110
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
mat
:
IsContains
(
chkc
)
and
c27383110
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
mat
:
IsExists
(
c27383110
.
thfilter
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
mat
:
IsExists
(
c27383110
.
thfilter
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
mat
:
FilterSelect
(
tp
,
c27383110
.
thfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
mat
:
FilterSelect
(
tp
,
c27383110
.
thfilter
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c27383110
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27383110
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
script/c46052429.lua
View file @
16a07fe1
--高等儀式術
--高等儀式術
function
c46052429
.
initial_effect
(
c
)
function
c46052429
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c46052429
.
target
)
e1
:
SetTarget
(
c46052429
.
target
)
e1
:
SetOperation
(
c46052429
.
activate
)
e1
:
SetOperation
(
c46052429
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c46052429
.
filter
(
c
,
e
,
tp
,
m
)
function
c46052429
.
filter
(
c
,
e
,
tp
,
m
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
then
return
false
end
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
if
c
.
mat_filter
then
if
c
.
mat_filter
then
m
=
m
:
Filter
(
c
.
mat_filter
,
nil
)
m
=
m
:
Filter
(
c
.
mat_filter
,
nil
)
end
end
return
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
1
,
99
,
c
)
return
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
1
,
99
,
c
)
end
end
function
c46052429
.
matfilter
(
c
)
function
c46052429
.
matfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGrave
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGrave
()
end
end
function
c46052429
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46052429
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
local
mg
=
Duel
.
GetMatchingGroup
(
c46052429
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c46052429
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c46052429
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
return
Duel
.
IsExistingMatchingCard
(
c46052429
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c46052429
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46052429
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
c46052429
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c46052429
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c46052429
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c46052429
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
.
mat_filter
then
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
nil
)
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
script/c51124303.lua
View file @
16a07fe1
This diff is collapsed.
Click to expand it.
script/c52068432.lua
View file @
16a07fe1
--トリシューラの影霊衣
--トリシューラの影霊衣
function
c52068432
.
initial_effect
(
c
)
function
c52068432
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c52068432
.
splimit
)
--negate
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--negate
e2
:
SetDescription
(
aux
.
Stringid
(
52068432
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_NEGATE
)
e2
:
SetDescription
(
aux
.
Stringid
(
52068432
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCategory
(
CATEGORY_NEGATE
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCountLimit
(
1
,
52068432
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c52068432
.
negcon
)
e2
:
SetCountLimit
(
1
,
52068432
)
e2
:
SetCost
(
c52068432
.
negcost
)
e2
:
SetCondition
(
c52068432
.
negcon
)
e2
:
SetTarget
(
c52068432
.
negtg
)
e2
:
SetCost
(
c52068432
.
negcost
)
e2
:
SetOperation
(
c52068432
.
negop
)
e2
:
SetTarget
(
c52068432
.
negtg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c52068432
.
negop
)
--remove
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--remove
e3
:
SetDescription
(
aux
.
Stringid
(
52068432
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetDescription
(
aux
.
Stringid
(
52068432
,
1
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCountLimit
(
1
,
52068433
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c52068432
.
remcon
)
e3
:
SetCountLimit
(
1
,
52068433
)
e3
:
SetTarget
(
c52068432
.
remtg
)
e3
:
SetCondition
(
c52068432
.
remcon
)
e3
:
SetOperation
(
c52068432
.
remop
)
e3
:
SetTarget
(
c52068432
.
remtg
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c52068432
.
remop
)
end
c
:
RegisterEffect
(
e3
)
function
c52068432
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
9
function
c52068432
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c52068432
.
tfilter
(
c
,
tp
)
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
function
c52068432
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
9
function
c52068432
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
function
c52068432
.
tfilter
(
c
,
tp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
return
g
and
g
:
IsExists
(
c52068432
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c52068432
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52068432
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
g
and
g
:
IsExists
(
c52068432
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c52068432
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52068432
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c52068432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52068432
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
NegateActivation
(
ev
)
if
chk
==
0
then
return
true
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
function
c52068432
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
function
c52068432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
NegateActivation
(
ev
)
function
c52068432
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
function
c52068432
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
)
function
c52068432
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
function
c52068432
.
remop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_HAND
)
local
g3
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
nil
)
end
if
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
and
g3
:
GetCount
()
>
0
then
function
c52068432
.
remop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
sg1
=
g1
:
RandomSelect
(
tp
,
1
)
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g3
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
nil
)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
if
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
and
g3
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg3
=
g3
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg1
=
g1
:
RandomSelect
(
tp
,
1
)
sg1
:
Merge
(
sg2
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
sg1
:
Merge
(
sg3
)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Remove
(
sg1
,
POS_FACEUP
,
REASON_EFFECT
)
local
sg3
=
g3
:
Select
(
tp
,
1
,
1
,
nil
)
end
sg1
:
Merge
(
sg2
)
end
sg1
:
Merge
(
sg3
)
Duel
.
HintSelection
(
sg1
)
Duel
.
Remove
(
sg1
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
script/c52846880.lua
View file @
16a07fe1
--カタストルの影霊衣
--カタストルの影霊衣
function
c52846880
.
initial_effect
(
c
)
function
c52846880
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c52846880
.
splimit
)
--spsummon
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--spsummon
e2
:
SetDescription
(
aux
.
Stringid
(
52846880
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetDescription
(
aux
.
Stringid
(
52846880
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
52846880
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCost
(
c52846880
.
spcost
)
e2
:
SetCountLimit
(
1
,
52846880
)
e2
:
SetTarget
(
c52846880
.
sptg
)
e2
:
SetCost
(
c52846880
.
spcost
)
e2
:
SetOperation
(
c52846880
.
spop
)
e2
:
SetTarget
(
c52846880
.
sptg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c52846880
.
spop
)
--destroy
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--destroy
e3
:
SetDescription
(
aux
.
Stringid
(
52846880
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetDescription
(
aux
.
Stringid
(
52846880
,
1
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetCondition
(
c52846880
.
condition
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c52846880
.
target
)
e3
:
SetCondition
(
c52846880
.
condition
)
e3
:
SetOperation
(
c52846880
.
operation
)
e3
:
SetTarget
(
c52846880
.
target
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c52846880
.
operation
)
end
c
:
RegisterEffect
(
e3
)
function
c52846880
.
mat_filter
(
c
)
end
return
not
c
:
IsCode
(
52846880
)
function
c52846880
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c52846880
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c52846880
.
mat_filter
(
c
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
not
c
:
IsCode
(
52846880
)
end
end
function
c52846880
.
spfilter
(
c
,
e
,
tp
)
function
c52846880
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c52846880
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c52846880
.
spfilter
(
chkc
,
e
,
tp
)
end
function
c52846880
.
spfilter
(
c
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c52846880
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
function
c52846880
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52846880
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c52846880
.
spfilter
(
chkc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
and
Duel
.
IsExistingTarget
(
c52846880
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
function
c52846880
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
SelectTarget
(
tp
,
c52846880
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c52846880
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
tc
=
Duel
.
GetFirstTarget
()
function
c52846880
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
tc
:
IsRelateToEffect
(
e
)
then
local
tc
=
Duel
.
GetAttacker
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
bc
=
Duel
.
GetAttackTarget
()
end
if
not
bc
then
return
false
end
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
,
bc
=
bc
,
tc
end
function
c52846880
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
tc
:
IsSetCard
(
0xb4
)
and
bc
:
GetSummonLocation
()
==
LOCATION_EXTRA
then
local
tc
=
Duel
.
GetAttacker
()
e
:
SetLabelObject
(
bc
)
local
bc
=
Duel
.
GetAttackTarget
()
return
true
if
not
bc
then
return
false
end
else
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
,
bc
=
bc
,
tc
end
end
if
tc
:
IsSetCard
(
0xb4
)
and
bc
:
GetSummonLocation
()
==
LOCATION_EXTRA
then
function
c52846880
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabelObject
(
bc
)
if
chk
==
0
then
return
true
end
return
true
local
bc
=
e
:
GetLabelObject
()
else
return
false
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
bc
,
1
,
0
,
0
)
end
end
function
c52846880
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52846880
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
true
end
local
bc
=
e
:
GetLabelObject
()
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
bc
,
1
,
0
,
0
)
Duel
.
Destroy
(
bc
,
REASON_EFFECT
)
end
end
function
c52846880
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
then
Duel
.
Destroy
(
bc
,
REASON_EFFECT
)
end
end
script/c64437633.lua
View file @
16a07fe1
--儀水鏡の幻影術
--儀水鏡の幻影術
function
c64437633
.
initial_effect
(
c
)
function
c64437633
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c64437633
.
target
)
e1
:
SetTarget
(
c64437633
.
target
)
e1
:
SetOperation
(
c64437633
.
activate
)
e1
:
SetOperation
(
c64437633
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c64437633
.
filter
(
c
,
e
,
tp
)
function
c64437633
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3a
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsSetCard
(
0x3a
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
true
)
end
end
function
c64437633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64437633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c64437633
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c64437633
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_HAND
)
end
end
function
c64437633
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64437633
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64437633
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64437633
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetOperation
(
c64437633
.
retop
)
e2
:
SetOperation
(
c64437633
.
retop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
function
c64437633
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64437633
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
end
end
script/c65450690.lua
View file @
16a07fe1
--限定解除
--限定解除
function
c65450690
.
initial_effect
(
c
)
function
c65450690
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
65450690
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
65450690
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c65450690
.
cost
)
e1
:
SetCost
(
c65450690
.
cost
)
e1
:
SetTarget
(
c65450690
.
target
)
e1
:
SetTarget
(
c65450690
.
target
)
e1
:
SetOperation
(
c65450690
.
activate
)
e1
:
SetOperation
(
c65450690
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c65450690
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65450690
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
c65450690
.
filter
(
c
,
e
,
tp
)
function
c65450690
.
filter
(
c
,
e
,
tp
)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
true
)
end
end
function
c65450690
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65450690
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c65450690
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c65450690
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_HAND
)
end
end
function
c65450690
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65450690
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65450690
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65450690
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterFlagEffect
(
65450690
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc
:
RegisterFlagEffect
(
65450690
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetCondition
(
c65450690
.
descon
)
e2
:
SetCondition
(
c65450690
.
descon
)
e2
:
SetOperation
(
c65450690
.
desop
)
e2
:
SetOperation
(
c65450690
.
desop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c65450690
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65450690
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
65450690
)
~=
0
then
if
tc
:
GetFlagEffect
(
65450690
)
~=
0
then
return
true
return
true
else
else
e
:
Reset
()
e
:
Reset
()
return
false
return
false
end
end
end
end
function
c65450690
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65450690
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c74122412.lua
View file @
16a07fe1
--グングニールの影霊衣
--グングニールの影霊衣
function
c74122412
.
initial_effect
(
c
)
function
c74122412
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c74122412
.
splimit
)
--indes
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--indes
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
74122412
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCost
(
c74122412
.
indcost
)
e2
:
SetCountLimit
(
1
,
74122412
)
e2
:
SetTarget
(
c74122412
.
indtg
)
e2
:
SetCost
(
c74122412
.
indcost
)
e2
:
SetOperation
(
c74122412
.
indop
)
e2
:
SetTarget
(
c74122412
.
indtg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c74122412
.
indop
)
--destroy
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--destroy
e3
:
SetCategory
(
CATEGORY_DESTROY
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCountLimit
(
1
,
74122413
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c74122412
.
descost
)
e3
:
SetCountLimit
(
1
,
74122413
)
e3
:
SetTarget
(
c74122412
.
destg
)
e3
:
SetCost
(
c74122412
.
descost
)
e3
:
SetOperation
(
c74122412
.
desop
)
e3
:
SetTarget
(
c74122412
.
destg
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c74122412
.
desop
)
end
c
:
RegisterEffect
(
e3
)
function
c74122412
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
7
function
c74122412
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c74122412
.
indcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c74122412
.
mat_filter
(
c
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
c
:
GetLevel
()
~=
7
end
end
function
c74122412
.
filter
(
c
)
function
c74122412
.
indcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c74122412
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c74122412
.
filter
(
chkc
)
end
function
c74122412
.
filter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74122412
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
end
Duel
.
SelectTarget
(
tp
,
c74122412
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
function
c74122412
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c74122412
.
filter
(
chkc
)
end
function
c74122412
.
indop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74122412
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
SelectTarget
(
tp
,
c74122412
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
end
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
function
c74122412
.
indop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
local
tc
=
Duel
.
GetFirstTarget
()
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
e1
:
SetValue
(
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
tc
:
RegisterEffect
(
e1
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e2
=
e1
:
Clone
()
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e2
)
e1
:
SetValue
(
1
)
end
tc
:
RegisterEffect
(
e1
)
end
local
e2
=
e1
:
Clone
()
function
c74122412
.
cfilter
(
c
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsDiscardable
()
tc
:
RegisterEffect
(
e2
)
end
end
function
c74122412
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74122412
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
function
c74122412
.
cfilter
(
c
)
Duel
.
DiscardHand
(
tp
,
c74122412
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsDiscardable
()
end
end
function
c74122412
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c74122412
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74122412
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c74122412
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
function
c74122412
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
c74122412
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
function
c74122412
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c88240999.lua
View file @
16a07fe1
--ディサイシブの影霊衣
--ディサイシブの影霊衣
function
c88240999
.
initial_effect
(
c
)
function
c88240999
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c88240999
.
splimit
)
--boost
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--boost
e2
:
SetDescription
(
aux
.
Stringid
(
88240999
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e2
:
SetDescription
(
aux
.
Stringid
(
88240999
,
0
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
0x1c0
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCountLimit
(
1
,
88240999
)
e2
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
0x1c0
)
e2
:
SetCondition
(
c88240999
.
adcon
)
e2
:
SetCountLimit
(
1
,
88240999
)
e2
:
SetCost
(
c88240999
.
adcost
)
e2
:
SetCondition
(
c88240999
.
adcon
)
e2
:
SetTarget
(
c88240999
.
adtg
)
e2
:
SetCost
(
c88240999
.
adcost
)
e2
:
SetOperation
(
c88240999
.
adop
)
e2
:
SetTarget
(
c88240999
.
adtg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c88240999
.
adop
)
--destroy
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--destroy
e3
:
SetDescription
(
aux
.
Stringid
(
88240999
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
e3
:
SetDescription
(
aux
.
Stringid
(
88240999
,
1
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
88241000
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetTarget
(
c88240999
.
destg
)
e3
:
SetCountLimit
(
1
,
88241000
)
e3
:
SetOperation
(
c88240999
.
desop
)
e3
:
SetTarget
(
c88240999
.
destg
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c88240999
.
desop
)
end
c
:
RegisterEffect
(
e3
)
function
c88240999
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
10
function
c88240999
.
splimit
(
e
,
se
,
sp
,
st
)
end
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
function
c88240999
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
function
c88240999
.
mat_filter
(
c
)
end
return
c
:
GetLevel
()
~=
10
function
c88240999
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c88240999
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c88240999
.
filter
(
c
)
function
c88240999
.
adcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c88240999
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c88240999
.
filter
(
chkc
)
end
function
c88240999
.
filter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c88240999
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb4
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
end
Duel
.
SelectTarget
(
tp
,
c88240999
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
function
c88240999
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c88240999
.
filter
(
chkc
)
end
function
c88240999
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c88240999
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SelectTarget
(
tp
,
c88240999
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
end
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
function
c88240999
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
local
tc
=
Duel
.
GetFirstTarget
()
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
if
tc
:
IsRelateToEffect
(
e
)
then
e1
:
SetValue
(
1000
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
local
e2
=
e1
:
Clone
()
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e1
:
SetValue
(
1000
)
tc
:
RegisterEffect
(
e2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
end
tc
:
RegisterEffect
(
e1
)
end
local
e2
=
e1
:
Clone
()
function
c88240999
.
desfilter
(
c
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
and
c
:
IsAbleToRemove
()
tc
:
RegisterEffect
(
e2
)
end
end
function
c88240999
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c88240999
.
desfilter
(
chkc
)
end
function
c88240999
.
desfilter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c88240999
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
and
c
:
IsAbleToRemove
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c88240999
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
function
c88240999
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c88240999
.
desfilter
(
chkc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c88240999
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
function
c88240999
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c88240999
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
,
LOCATION_REMOVED
)
end
end
function
c88240999
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
,
LOCATION_REMOVED
)
end
end
script/c89463537.lua
View file @
16a07fe1
--ユニコールの影霊衣
--ユニコールの影霊衣
function
c89463537
.
initial_effect
(
c
)
function
c89463537
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c89463537
.
splimit
)
--tohand
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--tohand
e2
:
SetDescription
(
aux
.
Stringid
(
89463537
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetDescription
(
aux
.
Stringid
(
89463537
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
89463537
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCost
(
c89463537
.
cost
)
e2
:
SetCountLimit
(
1
,
89463537
)
e2
:
SetTarget
(
c89463537
.
target
)
e2
:
SetCost
(
c89463537
.
cost
)
e2
:
SetOperation
(
c89463537
.
operation
)
e2
:
SetTarget
(
c89463537
.
target
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c89463537
.
operation
)
--disable
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--disable
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c89463537
.
distg
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
e3
:
SetTarget
(
c89463537
.
distg
)
end
c
:
RegisterEffect
(
e3
)
function
c89463537
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c89463537
.
splimit
(
e
,
se
,
sp
,
st
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
end
function
c89463537
.
filter
(
c
)
function
c89463537
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsSetCard
(
0xb4
)
and
not
c
:
IsCode
(
89463537
)
and
c
:
IsAbleToHand
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c89463537
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89463537
.
filter
(
chkc
)
end
function
c89463537
.
filter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c89463537
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
return
c
:
IsSetCard
(
0xb4
)
and
not
c
:
IsCode
(
89463537
)
and
c
:
IsAbleToHand
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c89463537
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
function
c89463537
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89463537
.
filter
(
chkc
)
end
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c89463537
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
function
c89463537
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
SelectTarget
(
tp
,
c89463537
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
function
c89463537
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
tc
=
Duel
.
GetFirstTarget
()
end
if
tc
:
IsRelateToEffect
(
e
)
then
function
c89463537
.
distg
(
e
,
c
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
function
c89463537
.
distg
(
e
,
c
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
end
script/c97211663.lua
View file @
16a07fe1
...
@@ -22,8 +22,8 @@ function c97211663.initial_effect(c)
...
@@ -22,8 +22,8 @@ function c97211663.initial_effect(c)
end
end
function
c97211663
.
filter
(
c
,
e
,
tp
,
m
)
function
c97211663
.
filter
(
c
,
e
,
tp
,
m
)
if
not
c
:
IsSetCard
(
0xb4
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
not
c
:
IsSetCard
(
0xb4
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
tru
e
,
true
)
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
fals
e
,
true
)
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
if
c
:
IsCode
(
21105106
)
then
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
ritual_custom_condition
(
m
)
end
if
c
:
IsCode
(
21105106
)
then
return
c
:
ritual_custom_condition
(
m
)
end
local
mg
=
nil
local
mg
=
nil
if
c
.
mat_filter
then
if
c
.
mat_filter
then
mg
=
m
:
Filter
(
c
.
mat_filter
,
c
)
mg
=
m
:
Filter
(
c
.
mat_filter
,
c
)
...
@@ -61,7 +61,7 @@ function c97211663.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,7 @@ function c97211663.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
tru
e
,
true
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
fals
e
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
...
...
script/c99185129.lua
View file @
16a07fe1
--クラウソラスの影霊衣
--クラウソラスの影霊衣
function
c99185129
.
initial_effect
(
c
)
function
c99185129
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
c99185129
.
splimit
)
--tohand
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--tohand
e2
:
SetDescription
(
aux
.
Stringid
(
99185129
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetDescription
(
aux
.
Stringid
(
99185129
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
99185129
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCost
(
c99185129
.
thcost
)
e2
:
SetCountLimit
(
1
,
99185129
)
e2
:
SetTarget
(
c99185129
.
thtg
)
e2
:
SetCost
(
c99185129
.
thcost
)
e2
:
SetOperation
(
c99185129
.
thop
)
e2
:
SetTarget
(
c99185129
.
thtg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c99185129
.
thop
)
--atk
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--atk
e3
:
SetDescription
(
aux
.
Stringid
(
99185129
,
1
))
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e3
:
SetDescription
(
aux
.
Stringid
(
99185129
,
1
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
0x1c0
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCountLimit
(
1
,
99185130
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
0x1c0
)
e3
:
SetCondition
(
c99185129
.
condition
)
e3
:
SetCountLimit
(
1
,
99185130
)
e3
:
SetTarget
(
c99185129
.
target
)
e3
:
SetCondition
(
c99185129
.
condition
)
e3
:
SetOperation
(
c99185129
.
operation
)
e3
:
SetTarget
(
c99185129
.
target
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c99185129
.
operation
)
end
c
:
RegisterEffect
(
e3
)
function
c99185129
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
function
c99185129
.
splimit
(
e
,
se
,
sp
,
st
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
end
function
c99185129
.
thfilter
(
c
)
function
c99185129
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
function
c99185129
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c99185129
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
function
c99185129
.
thfilter
(
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c99185129
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99185129
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c99185129
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99185129
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
g
:
GetCount
()
>
0
then
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
function
c99185129
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99185129
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
end
if
g
:
GetCount
()
>
0
then
function
c99185129
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c99185129
.
filter
(
c
)
end
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
not
(
c
:
GetAttack
()
==
0
and
c
:
IsDisabled
())
function
c99185129
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
function
c99185129
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c99185129
.
filter
(
chkc
)
end
function
c99185129
.
filter
(
c
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c99185129
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
not
(
c
:
GetAttack
()
==
0
and
c
:
IsDisabled
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
end
Duel
.
SelectTarget
(
tp
,
c99185129
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
function
c99185129
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c99185129
.
filter
(
chkc
)
end
function
c99185129
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c99185129
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
SelectTarget
(
tp
,
c99185129
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
end
local
e1
=
Effect
.
CreateEffect
(
c
)
function
c99185129
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
c
=
e
:
GetHandler
()
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
local
tc
=
Duel
.
GetFirstTarget
()
e1
:
SetValue
(
0
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
local
e1
=
Effect
.
CreateEffect
(
c
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetValue
(
0
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetCode
(
EFFECT_DISABLE
)
tc
:
RegisterEffect
(
e1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e3
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
local
e3
=
Effect
.
CreateEffect
(
c
)
tc
:
RegisterEffect
(
e3
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e3
:
SetValue
(
RESET_TURN_SET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
tc
:
RegisterEffect
(
e3
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
tc
:
RegisterEffect
(
e4
)
local
e4
=
Effect
.
CreateEffect
(
c
)
end
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
end
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
end
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e4
)
end
end
end
script/utility.lua
View file @
16a07fe1
...
@@ -921,7 +921,7 @@ function Auxiliary.AddRitualProcGreater(c,filter)
...
@@ -921,7 +921,7 @@ function Auxiliary.AddRitualProcGreater(c,filter)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
RPGFilter
(
c
,
filter
,
e
,
tp
,
m
)
function
Auxiliary
.
RPGFilter
(
c
,
filter
,
e
,
tp
,
m
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
fals
e
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
tru
e
)
then
return
false
end
local
result
=
false
local
result
=
false
if
m
:
IsContains
(
c
)
then
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
m
:
RemoveCard
(
c
)
...
@@ -954,7 +954,7 @@ function Auxiliary.RPGOperation(filter)
...
@@ -954,7 +954,7 @@ function Auxiliary.RPGOperation(filter)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
...
@@ -970,7 +970,7 @@ function Auxiliary.AddRitualProcEqual(c,filter)
...
@@ -970,7 +970,7 @@ function Auxiliary.AddRitualProcEqual(c,filter)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
RPEFilter
(
c
,
filter
,
e
,
tp
,
m
)
function
Auxiliary
.
RPEFilter
(
c
,
filter
,
e
,
tp
,
m
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
fals
e
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
tru
e
)
then
return
false
end
local
result
=
false
local
result
=
false
if
m
:
IsContains
(
c
)
then
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
m
:
RemoveCard
(
c
)
...
@@ -1003,7 +1003,7 @@ function Auxiliary.RPEOperation(filter)
...
@@ -1003,7 +1003,7 @@ function Auxiliary.RPEOperation(filter)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
...
@@ -1019,7 +1019,7 @@ function Auxiliary.AddRitualProcEqual2(c,filter)
...
@@ -1019,7 +1019,7 @@ function Auxiliary.AddRitualProcEqual2(c,filter)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
RPEFilter2
(
c
,
filter
,
e
,
tp
,
m
)
function
Auxiliary
.
RPEFilter2
(
c
,
filter
,
e
,
tp
,
m
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
fals
e
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
tru
e
)
then
return
false
end
local
result
=
false
local
result
=
false
if
m
:
IsContains
(
c
)
then
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
m
:
RemoveCard
(
c
)
...
@@ -1052,7 +1052,7 @@ function Auxiliary.RPEOperation2(filter)
...
@@ -1052,7 +1052,7 @@ function Auxiliary.RPEOperation2(filter)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment