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
Show 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
if
(
current
.
location
==
LOCATION_REMOVED
&&
(
current
.
position
&
POS_FACEDOWN
))
return
FALSE
;
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
;
}
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)
end
function
c14735698
.
filter
(
c
,
e
,
tp
,
m
)
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
local
mg
=
nil
if
c
.
mat_filter
then
...
...
@@ -68,7 +68,7 @@ function c14735698.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ReleaseRitualMaterial
(
mat
)
end
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
()
end
end
...
...
script/c21105106.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c21105106.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c21105106
.
splimit
)
c
:
RegisterEffect
(
e1
)
--cannot spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -27,6 +28,9 @@ function c21105106.initial_effect(c)
e3
:
SetOperation
(
c21105106
.
rmop
)
c
:
RegisterEffect
(
e3
)
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
)
return
false
end
...
...
script/c25857246.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c25857246.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c25857246
.
splimit
)
c
:
RegisterEffect
(
e1
)
--atk
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -29,6 +30,9 @@ function c25857246.initial_effect(c)
e3
:
SetOperation
(
c25857246
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c25857246
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c25857246
.
mat_filter
(
c
)
return
c
:
GetLevel
()
~=
8
end
...
...
script/c26674724.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c26674724.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c26674724
.
splimit
)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -30,6 +31,9 @@ function c26674724.initial_effect(c)
e3
:
SetOperation
(
c26674724
.
tdop
)
c
:
RegisterEffect
(
e3
)
end
function
c26674724
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c26674724
.
mat_filter
(
c
)
return
not
c
:
IsCode
(
26674724
)
end
...
...
script/c27383110.lua
View file @
16a07fe1
...
...
@@ -23,7 +23,7 @@ function c27383110.initial_effect(c)
end
function
c27383110
.
filter
(
c
,
e
,
tp
,
m
)
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
m
:
RemoveCard
(
c
)
result
=
m
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
6
,
1
,
99
,
c
)
...
...
@@ -52,7 +52,7 @@ function c27383110.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
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
()
e
:
SetLabelObject
(
tc
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
27383110
,
e
,
0
,
tp
,
tp
,
0
)
...
...
script/c46052429.lua
View file @
16a07fe1
...
...
@@ -11,7 +11,7 @@ function c46052429.initial_effect(c)
end
function
c46052429
.
filter
(
c
,
e
,
tp
,
m
)
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
m
=
m
:
Filter
(
c
.
mat_filter
,
nil
)
end
...
...
@@ -43,7 +43,7 @@ function c46052429.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
SetMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
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
()
end
end
script/c51124303.lua
View file @
16a07fe1
...
...
@@ -22,7 +22,7 @@ function c51124303.initial_effect(c)
end
function
c51124303
.
spfilter
(
c
,
e
,
tp
,
mc
)
return
c
:
IsSetCard
(
0xb4
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
(
not
c
.
mat_filter
or
c
.
mat_filter
(
mc
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
end
function
c51124303
.
rfilter
(
c
,
mc
)
local
mlv
=
mc
:
GetRitualLevel
(
c
)
...
...
@@ -83,7 +83,7 @@ function c51124303.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
end
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
()
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
@@ -101,7 +101,7 @@ function c51124303.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
tc
=
tg
:
GetFirst
()
while
tc
do
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
=
tg
:
GetNext
()
end
...
...
script/c52068432.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c52068432.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c52068432
.
splimit
)
c
:
RegisterEffect
(
e1
)
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -33,6 +34,9 @@ function c52068432.initial_effect(c)
e3
:
SetOperation
(
c52068432
.
remop
)
c
:
RegisterEffect
(
e3
)
end
function
c52068432
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c52068432
.
mat_filter
(
c
)
return
c
:
GetLevel
()
~=
9
end
...
...
script/c52846880.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c52846880.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c52846880
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -31,6 +32,9 @@ function c52846880.initial_effect(c)
e3
:
SetOperation
(
c52846880
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c52846880
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c52846880
.
mat_filter
(
c
)
return
not
c
:
IsCode
(
52846880
)
end
...
...
script/c64437633.lua
View file @
16a07fe1
...
...
@@ -10,7 +10,7 @@ function c64437633.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
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
function
c64437633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -23,7 +23,7 @@ function c64437633.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64437633
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
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
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
...
...
script/c65450690.lua
View file @
16a07fe1
...
...
@@ -16,7 +16,7 @@ function c65450690.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
1000
)
end
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
function
c65450690
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -29,7 +29,7 @@ function c65450690.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65450690
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
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
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
...
...
script/c74122412.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c74122412.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c74122412
.
splimit
)
c
:
RegisterEffect
(
e1
)
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -31,6 +32,9 @@ function c74122412.initial_effect(c)
e3
:
SetOperation
(
c74122412
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c74122412
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c74122412
.
mat_filter
(
c
)
return
c
:
GetLevel
()
~=
7
end
...
...
script/c88240999.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c88240999.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c88240999
.
splimit
)
c
:
RegisterEffect
(
e1
)
--boost
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -34,6 +35,9 @@ function c88240999.initial_effect(c)
e3
:
SetOperation
(
c88240999
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c88240999
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c88240999
.
mat_filter
(
c
)
return
c
:
GetLevel
()
~=
10
end
...
...
script/c89463537.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c89463537.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c89463537
.
splimit
)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -28,6 +29,9 @@ function c89463537.initial_effect(c)
e3
:
SetTarget
(
c89463537
.
distg
)
c
:
RegisterEffect
(
e3
)
end
function
c89463537
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c89463537
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
...
...
script/c97211663.lua
View file @
16a07fe1
...
...
@@ -22,8 +22,8 @@ function c97211663.initial_effect(c)
end
function
c97211663
.
filter
(
c
,
e
,
tp
,
m
)
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
if
c
:
IsCode
(
21105106
)
then
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
ritual_custom_condition
(
m
)
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
:
ritual_custom_condition
(
m
)
end
local
mg
=
nil
if
c
.
mat_filter
then
mg
=
m
:
Filter
(
c
.
mat_filter
,
c
)
...
...
@@ -61,7 +61,7 @@ function c97211663.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ReleaseRitualMaterial
(
mat
)
end
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
()
end
end
...
...
script/c99185129.lua
View file @
16a07fe1
...
...
@@ -6,6 +6,7 @@ function c99185129.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c99185129
.
splimit
)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -34,6 +35,9 @@ function c99185129.initial_effect(c)
e3
:
SetOperation
(
c99185129
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c99185129
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_RITUAL
)
==
SUMMON_TYPE_RITUAL
end
function
c99185129
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
...
...
script/utility.lua
View file @
16a07fe1
...
...
@@ -921,7 +921,7 @@ function Auxiliary.AddRitualProcGreater(c,filter)
c
:
RegisterEffect
(
e1
)
end
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
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
...
...
@@ -954,7 +954,7 @@ function Auxiliary.RPGOperation(filter)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
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
()
end
end
...
...
@@ -970,7 +970,7 @@ function Auxiliary.AddRitualProcEqual(c,filter)
c
:
RegisterEffect
(
e1
)
end
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
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
...
...
@@ -1003,7 +1003,7 @@ function Auxiliary.RPEOperation(filter)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
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
()
end
end
...
...
@@ -1019,7 +1019,7 @@ function Auxiliary.AddRitualProcEqual2(c,filter)
c
:
RegisterEffect
(
e1
)
end
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
if
m
:
IsContains
(
c
)
then
m
:
RemoveCard
(
c
)
...
...
@@ -1052,7 +1052,7 @@ function Auxiliary.RPEOperation2(filter)
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
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
()
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