Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
a59b9029
Commit
a59b9029
authored
Oct 16, 2018
by
mercury233
Committed by
DailyShana
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename (#1102)
parent
91418d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
utility.lua
utility.lua
+30
-30
No files found.
utility.lua
View file @
a59b9029
...
@@ -1441,41 +1441,41 @@ function Auxiliary.AddRitualProcGreater(c,filter)
...
@@ -1441,41 +1441,41 @@ function Auxiliary.AddRitualProcGreater(c,filter)
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
(
Auxiliary
.
R
PG
Target
(
filter
))
e1
:
SetTarget
(
Auxiliary
.
R
itualGreater
Target
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
PG
Operation
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
itualGreater
Operation
(
filter
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
R
PG
Filter
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
function
Auxiliary
.
R
itualGreater
Filter
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
if
ft
>
0
then
if
ft
>
0
then
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetOriginalLevel
(),
c
)
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetOriginalLevel
(),
c
)
else
else
return
mg
:
IsExists
(
Auxiliary
.
R
PG
FilterF
,
1
,
nil
,
tp
,
mg
,
c
)
return
mg
:
IsExists
(
Auxiliary
.
R
itualGreater
FilterF
,
1
,
nil
,
tp
,
mg
,
c
)
end
end
end
end
function
Auxiliary
.
R
PG
FilterF
(
c
,
tp
,
mg
,
rc
)
function
Auxiliary
.
R
itualGreater
FilterF
(
c
,
tp
,
mg
,
rc
)
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
Duel
.
SetSelectedCard
(
c
)
Duel
.
SetSelectedCard
(
c
)
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
rc
:
GetOriginalLevel
(),
rc
)
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
rc
:
GetOriginalLevel
(),
rc
)
else
return
false
end
else
return
false
end
end
end
function
Auxiliary
.
R
PG
Target
(
filter
)
function
Auxiliary
.
R
itualGreater
Target
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
function
(
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
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
PG
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
itualGreater
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
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
end
end
function
Auxiliary
.
R
PG
Operation
(
filter
)
function
Auxiliary
.
R
itualGreater
Operation
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
PG
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
itualGreater
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
@@ -1485,7 +1485,7 @@ function Auxiliary.RPGOperation(filter)
...
@@ -1485,7 +1485,7 @@ function Auxiliary.RPGOperation(filter)
mat
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
tc
)
mat
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
tc
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
PG
FilterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
itualGreater
FilterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
tc
)
local
mat2
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
tc
)
...
@@ -1512,41 +1512,41 @@ function Auxiliary.AddRitualProcEqual(c,filter)
...
@@ -1512,41 +1512,41 @@ function Auxiliary.AddRitualProcEqual(c,filter)
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
(
Auxiliary
.
R
PE
Target
(
filter
))
e1
:
SetTarget
(
Auxiliary
.
R
itualEqual
Target
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
PE
Operation
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
itualEqual
Operation
(
filter
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
R
PE
Filter
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
function
Auxiliary
.
R
itualEqual
Filter
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
if
ft
>
0
then
if
ft
>
0
then
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetOriginalLevel
(),
1
,
99
,
c
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetOriginalLevel
(),
1
,
99
,
c
)
else
else
return
mg
:
IsExists
(
Auxiliary
.
R
PE
FilterF
,
1
,
nil
,
tp
,
mg
,
c
)
return
mg
:
IsExists
(
Auxiliary
.
R
itualEqual
FilterF
,
1
,
nil
,
tp
,
mg
,
c
)
end
end
end
end
function
Auxiliary
.
R
PE
FilterF
(
c
,
tp
,
mg
,
rc
)
function
Auxiliary
.
R
itualEqual
FilterF
(
c
,
tp
,
mg
,
rc
)
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
Duel
.
SetSelectedCard
(
c
)
Duel
.
SetSelectedCard
(
c
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
rc
:
GetOriginalLevel
(),
0
,
99
,
rc
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
rc
:
GetOriginalLevel
(),
0
,
99
,
rc
)
else
return
false
end
else
return
false
end
end
end
function
Auxiliary
.
R
PE
Target
(
filter
)
function
Auxiliary
.
R
itualEqual
Target
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
function
(
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
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
PE
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
itualEqual
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
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
end
end
function
Auxiliary
.
R
PE
Operation
(
filter
)
function
Auxiliary
.
R
itualEqual
Operation
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
PE
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
itualEqual
Filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
@@ -1556,7 +1556,7 @@ function Auxiliary.RPEOperation(filter)
...
@@ -1556,7 +1556,7 @@ function Auxiliary.RPEOperation(filter)
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
1
,
99
,
tc
)
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
1
,
99
,
tc
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
PE
FilterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
itualEqual
FilterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
0
,
99
,
tc
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetOriginalLevel
(),
0
,
99
,
tc
)
...
@@ -1583,41 +1583,41 @@ function Auxiliary.AddRitualProcEqual2(c,filter)
...
@@ -1583,41 +1583,41 @@ function Auxiliary.AddRitualProcEqual2(c,filter)
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
(
Auxiliary
.
R
PE
Target2
(
filter
))
e1
:
SetTarget
(
Auxiliary
.
R
itualEqual
Target2
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
PE
Operation2
(
filter
))
e1
:
SetOperation
(
Auxiliary
.
R
itualEqual
Operation2
(
filter
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
R
PE
Filter2
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
function
Auxiliary
.
R
itualEqual
Filter2
(
c
,
filter
,
e
,
tp
,
m
,
ft
)
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
if
(
filter
and
not
filter
(
c
))
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
if
ft
>
0
then
if
ft
>
0
then
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
1
,
99
,
c
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
1
,
99
,
c
)
else
else
return
mg
:
IsExists
(
Auxiliary
.
R
PE
Filter2F
,
1
,
nil
,
tp
,
mg
,
c
)
return
mg
:
IsExists
(
Auxiliary
.
R
itualEqual
Filter2F
,
1
,
nil
,
tp
,
mg
,
c
)
end
end
end
end
function
Auxiliary
.
R
PE
Filter2F
(
c
,
tp
,
mg
,
rc
)
function
Auxiliary
.
R
itualEqual
Filter2F
(
c
,
tp
,
mg
,
rc
)
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
then
Duel
.
SetSelectedCard
(
c
)
Duel
.
SetSelectedCard
(
c
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
rc
:
GetLevel
(),
0
,
99
,
rc
)
return
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
rc
:
GetLevel
(),
0
,
99
,
rc
)
else
return
false
end
else
return
false
end
end
end
function
Auxiliary
.
R
PE
Target2
(
filter
)
function
Auxiliary
.
R
itualEqual
Target2
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
function
(
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
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
PE
Filter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
R
itualEqual
Filter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
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
end
end
function
Auxiliary
.
R
PE
Operation2
(
filter
)
function
Auxiliary
.
R
itualEqual
Operation2
(
filter
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
PE
Filter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Auxiliary
.
R
itualEqual
Filter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
ft
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
@@ -1627,7 +1627,7 @@ function Auxiliary.RPEOperation2(filter)
...
@@ -1627,7 +1627,7 @@ function Auxiliary.RPEOperation2(filter)
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
PE
Filter2F
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
mat
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
R
itualEqual
Filter2F
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
0
,
99
,
tc
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
0
,
99
,
tc
)
...
...
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