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
Reinen
ygopro-scripts
Commits
e1734059
Commit
e1734059
authored
Nov 05, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ritual summon
parent
c209f009
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
86 deletions
+15
-86
c11398951.lua
c11398951.lua
+1
-0
c23160024.lua
c23160024.lua
+4
-38
c32828635.lua
c32828635.lua
+3
-43
c38784726.lua
c38784726.lua
+1
-0
c81306186.lua
c81306186.lua
+1
-0
c95612049.lua
c95612049.lua
+2
-5
utility.lua
utility.lua
+3
-0
No files found.
c11398951.lua
View file @
e1734059
...
@@ -22,6 +22,7 @@ function c11398951.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,6 +22,7 @@ function c11398951.target(e,tp,eg,ep,ev,re,r,rp,chk)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c11398951
.
filter
,
e
,
tp
,
mg1
,
mg2
,
Card
.
GetLevel
,
"Equal"
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c11398951
.
filter
,
e
,
tp
,
mg1
,
mg2
,
Card
.
GetLevel
,
"Equal"
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
end
end
function
c11398951
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11398951
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg1
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg1
=
Duel
.
GetRitualMaterial
(
tp
)
...
...
c23160024.lua
View file @
e1734059
...
@@ -28,14 +28,11 @@ function c23160024.initial_effect(c)
...
@@ -28,14 +28,11 @@ function c23160024.initial_effect(c)
e4
:
SetOperation
(
c23160024
.
drop
)
e4
:
SetOperation
(
c23160024
.
drop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--ritural
--ritural
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
aux
.
AddRitualProcEqualCode
(
c
,
98287529
,
nil
,
nil
,
c23160024
.
mfilter
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetCode
(
0
)
e5
:
SetRange
(
LOCATION_GRAVE
)
e5
:
SetRange
(
LOCATION_GRAVE
)
e5
:
SetCost
(
aux
.
bfgcost
)
e5
:
SetCost
(
aux
.
bfgcost
)
e5
:
SetTarget
(
c23160024
.
sptg
)
e5
:
SetOperation
(
c23160024
.
spop
)
c
:
RegisterEffect
(
e5
)
end
end
function
c23160024
.
cfilter
(
c
,
tp
)
function
c23160024
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousSetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsPreviousSetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
...
@@ -47,37 +44,6 @@ function c23160024.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,37 +44,6 @@ function c23160024.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_CARD
,
0
,
e
:
GetHandler
():
GetCode
())
Duel
.
Hint
(
HINT_CARD
,
0
,
e
:
GetHandler
():
GetCode
())
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c23160024
.
spfilter
(
c
,
e
,
tp
)
function
c23160024
.
mfilter
(
c
)
return
c
:
IsCode
(
98287529
)
return
c
:
IsType
(
TYPE_PENDULUM
)
end
function
c23160024
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c23160024
.
spfilter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetOriginalLevel
,
"Equal"
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c23160024
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c23160024
.
spfilter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetOriginalLevel
,
"Equal"
)
local
tc
=
g
:
GetFirst
()
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
tc
,
tp
)
else
mg
:
RemoveCard
(
tc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
aux
.
GCheckAdditional
=
aux
.
RitualCheckAdditional
(
tc
,
tc
:
GetOriginalLevel
(),
"Equal"
)
local
mat
=
mg
:
SelectSubGroup
(
tp
,
aux
.
RitualCheck
,
false
,
1
,
tc
:
GetOriginalLevel
(),
tp
,
tc
,
tc
:
GetOriginalLevel
(),
"Equal"
)
aux
.
GCheckAdditional
=
nil
if
not
mat
or
mat
:
GetCount
()
==
0
then
return
end
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
end
c32828635.lua
View file @
e1734059
--エンドレス・オブ・ザ・ワールド
--エンドレス・オブ・ザ・ワールド
function
c32828635
.
initial_effect
(
c
)
function
c32828635
.
initial_effect
(
c
)
--Activate
aux
.
AddRitualProcGreater2Code2
(
c
,
46427957
,
72426662
,
nil
,
nil
,
c73055622
.
mfilter
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c32828635
.
target
)
e1
:
SetOperation
(
c32828635
.
activate
)
c
:
RegisterEffect
(
e1
)
--salvage
--salvage
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
32828635
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
32828635
,
0
))
...
@@ -20,41 +13,8 @@ function c32828635.initial_effect(c)
...
@@ -20,41 +13,8 @@ function c32828635.initial_effect(c)
e2
:
SetOperation
(
c32828635
.
thop
)
e2
:
SetOperation
(
c32828635
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c32828635
.
fit_monster
=
{
46427957
,
72426662
}
function
c32828635
.
mfilter
(
c
)
function
c32828635
.
cfilter
(
c
,
e
,
tp
)
return
not
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsCode
(
46427957
,
72426662
)
end
function
c32828635
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
mg1
=
Duel
.
GetRitualMaterial
(
tp
)
mg1
:
Remove
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c32828635
.
cfilter
,
e
,
tp
,
mg1
,
nil
,
Card
.
GetLevel
,
"Greater"
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c32828635
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg1
=
Duel
.
GetRitualMaterial
(
tp
)
mg1
:
Remove
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c32828635
.
cfilter
,
e
,
tp
,
mg1
,
nil
,
Card
.
GetLevel
,
"Greater"
)
local
tc
=
tg
:
GetFirst
()
if
tc
then
local
mg
=
mg1
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
tc
,
tp
)
else
mg
:
RemoveCard
(
tc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
aux
.
GCheckAdditional
=
aux
.
RitualCheckAdditional
(
tc
,
tc
:
GetLevel
(),
"Greater"
)
local
mat
=
mg
:
SelectSubGroup
(
tp
,
aux
.
RitualCheck
,
false
,
1
,
tc
:
GetLevel
(),
tp
,
tc
,
tc
:
GetLevel
(),
"Greater"
)
aux
.
GCheckAdditional
=
nil
if
not
mat
or
mat
:
GetCount
()
==
0
then
return
end
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
end
function
c32828635
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32828635
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
...
...
c38784726.lua
View file @
e1734059
...
@@ -39,6 +39,7 @@ function c38784726.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,6 +39,7 @@ function c38784726.target(e,tp,eg,ep,ev,re,r,rp,chk)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c38784726
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c38784726
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
end
end
function
c38784726
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38784726
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
...
...
c81306186.lua
View file @
e1734059
...
@@ -65,6 +65,7 @@ function c81306186.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -65,6 +65,7 @@ function c81306186.target(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetOperation
(
c81306186
.
spop
)
e
:
SetOperation
(
c81306186
.
spop
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
else
else
e
:
SetCategory
(
CATEGORY_TOHAND
)
e
:
SetCategory
(
CATEGORY_TOHAND
)
e
:
SetOperation
(
c81306186
.
thop
)
e
:
SetOperation
(
c81306186
.
thop
)
...
...
c95612049.lua
View file @
e1734059
--リバース・オブ・ザ・ワールド
--リバース・オブ・ザ・ワールド
function
c95612049
.
initial_effect
(
c
)
function
c95612049
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
aux
.
AddRitualProcGreater2
(
c
,
c95612049
.
filter
,
LOCATION_HAND
+
LOCATION_DECK
,
nil
,
c95612049
.
mfilter
)
local
e1
=
aux
.
AddRitualProcGreater2
Code2
(
c
,
46427957
,
72426662
,
LOCATION_HAND
+
LOCATION_DECK
,
nil
,
c95612049
.
mfilter
)
e1
:
SetCountLimit
(
1
,
95612049
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
95612049
+
EFFECT_COUNT_CODE_OATH
)
end
end
function
c95612049
.
mfilter
(
c
)
function
c95612049
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsType
(
TYPE_RITUAL
)
return
not
c
:
IsOnField
()
and
c
:
IsType
(
TYPE_RITUAL
)
end
function
c95612049
.
filter
(
c
)
return
c
:
IsCode
(
72426662
,
46427957
)
end
end
utility.lua
View file @
e1734059
...
@@ -1587,6 +1587,9 @@ function Auxiliary.RitualUltimateTarget(filter,level_function,greater_or_equal,s
...
@@ -1587,6 +1587,9 @@ function Auxiliary.RitualUltimateTarget(filter,level_function,greater_or_equal,s
return
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
RitualUltimateFilter
,
tp
,
summon_location
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
exg
,
level_function
,
greater_or_equal
)
return
Duel
.
IsExistingMatchingCard
(
Auxiliary
.
RitualUltimateFilter
,
tp
,
summon_location
,
0
,
1
,
nil
,
filter
,
e
,
tp
,
mg
,
exg
,
level_function
,
greater_or_equal
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
summon_location
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
summon_location
)
if
grave_filter
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
tp
,
LOCATION_GRAVE
)
end
end
end
end
end
function
Auxiliary
.
RitualUltimateOperation
(
filter
,
level_function
,
greater_or_equal
,
summon_location
,
grave_filter
,
mat_filter
)
function
Auxiliary
.
RitualUltimateOperation
(
filter
,
level_function
,
greater_or_equal
,
summon_location
,
grave_filter
,
mat_filter
)
...
...
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