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
b66a1746
Commit
b66a1746
authored
Aug 16, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3539fcda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
c7986397.lua
c7986397.lua
+7
-2
No files found.
c7986397.lua
View file @
b66a1746
...
@@ -55,7 +55,9 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,9 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
local
dg
=
Duel
.
GetMatchingGroup
(
c7986397
.
dfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
dg
=
Duel
.
GetMatchingGroup
(
c7986397
.
dfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
ft
>
0
then
if
ft
>
0
then
if
dg
:
IsExists
(
c7986397
.
dlvfilter
,
1
,
nil
,
tp
,
mg
,
tc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
7986397
,
0
))
then
local
b1
=
dg
:
IsExists
(
c7986397
.
dlvfilter
,
1
,
nil
,
tp
,
mg
,
tc
)
local
b2
=
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
7986397
,
0
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
dmat
=
dg
:
FilterSelect
(
tp
,
c7986397
.
dlvfilter
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
dmat
=
dg
:
FilterSelect
(
tp
,
c7986397
.
dlvfilter
,
1
,
1
,
nil
,
tp
,
mg
,
tc
)
Duel
.
SetSelectedCard
(
dmat
)
Duel
.
SetSelectedCard
(
dmat
)
...
@@ -69,7 +71,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +71,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
mat
=
mg
:
FilterSelect
(
tp
,
c7986397
.
mfilterf
,
1
,
1
,
nil
,
tp
,
mg
,
dg
,
tc
)
mat
=
mg
:
FilterSelect
(
tp
,
c7986397
.
mfilterf
,
1
,
1
,
nil
,
tp
,
mg
,
dg
,
tc
)
if
dg
:
IsExists
(
c7986397
.
dlvfilter
,
1
,
nil
,
tp
,
mg
,
tc
,
mat
:
GetFirst
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
7986397
,
0
))
then
local
b1
=
dg
:
IsExists
(
c7986397
.
dlvfilter
,
1
,
nil
,
tp
,
mg
,
tc
,
mat
:
GetFirst
())
Duel
.
SetSelectedCard
(
mat
)
local
b2
=
mg
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
0
,
99
,
tc
)
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
7986397
,
0
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
dmat
=
dg
:
FilterSelect
(
tp
,
c7986397
.
dlvfilter
,
1
,
1
,
nil
,
tp
,
mg
,
tc
,
mat
:
GetFirst
())
dmat
=
dg
:
FilterSelect
(
tp
,
c7986397
.
dlvfilter
,
1
,
1
,
nil
,
tp
,
mg
,
tc
,
mat
:
GetFirst
())
mat
:
Merge
(
dmat
)
mat
:
Merge
(
dmat
)
...
...
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