Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-pre-data
Commits
4d8351e9
Commit
4d8351e9
authored
Oct 17, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp fix
parent
e875d186
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
12 deletions
+56
-12
script/c101007065.lua
script/c101007065.lua
+56
-12
No files found.
script/c101007065.lua
View file @
4d8351e9
...
@@ -27,7 +27,7 @@ function c101007065.filter(c,e,tp,m,ft)
...
@@ -27,7 +27,7 @@ function c101007065.filter(c,e,tp,m,ft)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
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
c
:
IsCode
(
21105106
)
then
return
c
:
ritual_custom_condition
(
mg
,
ft
)
end
if
c
:
IsCode
(
21105106
)
then
return
c
101007065
.
c21105106ritual_custom_condition
(
c
,
mg
,
ft
,
true
)
end
if
ft
>
0
then
if
ft
>
0
then
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
return
mg
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
c
:
GetLevel
(),
c
)
else
else
...
@@ -57,19 +57,25 @@ function c101007065.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,19 +57,25 @@ function c101007065.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
local
mat
=
nil
local
mat
=
nil
if
ft
>
0
then
if
tc
:
IsCode
(
21105106
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
c101007065
.
c21105106ritual_custom_operation
(
tc
,
mg
,
true
)
mat
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
tc
)
local
mat
=
tc
:
GetMaterial
()
Duel
.
ReleaseRitualMaterial
(
mat
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
if
ft
>
0
then
mat
=
mg
:
FilterSelect
(
tp
,
c101007065
.
filterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
SetSelectedCard
(
mat
)
mat
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
else
local
mat2
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
mat
:
Merge
(
mat2
)
mat
=
mg
:
FilterSelect
(
tp
,
c101007065
.
filterF
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
SetSelectedCard
(
mat
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumGreater
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
tc
)
mat
:
Merge
(
mat2
)
end
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
end
end
tc
:
SetMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
...
@@ -106,3 +112,41 @@ function c101007065.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -106,3 +112,41 @@ function c101007065.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c101007065
.
c21105106filter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
c101007065
.
c21105106ritual_custom_condition
(
c
,
mg
,
ft
,
greater
)
--ft is kept for compatablity
local
tp
=
c
:
GetControler
()
local
g
=
mg
:
Filter
(
c101007065
.
c21105106filter
,
c
,
tp
)
local
sg
=
Group
.
CreateGroup
()
return
g
:
IsExists
(
c101007065
.
c21105106rselect
,
1
,
nil
,
tp
,
sg
,
g
,
c
,
greater
)
end
function
c101007065
.
c21105106rselect
(
c
,
tp
,
sg
,
mg
,
rc
,
greater
)
sg
:
AddCard
(
c
)
local
res
=#
sg
==
3
and
c101007065
.
c21105106rgoal
(
tp
,
sg
,
rc
,
greater
)
or
#
sg
<
3
and
mg
:
IsExists
(
c101007065
.
c21105106rselect
,
1
,
sg
,
tp
,
sg
,
mg
,
rc
,
greater
)
sg
:
RemoveCard
(
c
)
return
res
end
function
c101007065
.
c21105106rgoal
(
tp
,
sg
,
rc
,
greater
)
if
not
(
#
sg
==
3
and
Duel
.
GetMZoneCount
(
tp
,
sg
,
tp
)
>
0
and
sg
:
GetClassCount
(
Card
.
GetRace
)
==
3
)
then
return
false
end
if
greater
then
Duel
.
SetSelectedCard
(
sg
)
return
sg
:
CheckWithSumGreater
(
Card
.
GetLevel
,
rc
:
GetLevel
())
else
return
sg
:
GetSum
(
Card
.
GetLevel
)
==
rc
:
GetLevel
()
end
end
function
c101007065
.
c21105106ritual_custom_operation
(
c
,
mg1
,
greater
)
local
tp
=
c
:
GetControler
()
local
lv
=
c
:
GetLevel
()
local
mg
=
mg1
:
Filter
(
c101007065
.
c21105106filter
,
c
,
tp
)
local
sg
=
Group
.
CreateGroup
()
while
#
sg
<
3
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
mg
:
FilterSelect
(
tp
,
c101007065
.
c21105106rselect
,
1
,
1
,
sg
,
tp
,
sg
,
mg
,
c
,
greater
)
sg
:
Merge
(
g
)
end
c
:
SetMaterial
(
sg
)
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