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
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-scripts
Commits
40b8dbb4
Commit
40b8dbb4
authored
Jun 04, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
35c2bb19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
c7986397.lua
c7986397.lua
+6
-3
No files found.
c7986397.lua
View file @
40b8dbb4
...
@@ -45,6 +45,8 @@ function c7986397.selcheck(c,mg1,dg,mat1,rc)
...
@@ -45,6 +45,8 @@ function c7986397.selcheck(c,mg1,dg,mat1,rc)
mat
:
AddCard
(
c
)
mat
:
AddCard
(
c
)
if
c
:
IsLocation
(
LOCATION_DECK
)
then
if
c
:
IsLocation
(
LOCATION_DECK
)
then
mg
:
Sub
(
dg
)
mg
:
Sub
(
dg
)
else
mg
:
RemoveCard
(
c
)
end
end
local
sum
=
mat
:
GetSum
(
Card
.
GetRitualLevel
,
rc
)
local
sum
=
mat
:
GetSum
(
Card
.
GetRitualLevel
,
rc
)
local
lv
=
rc
:
GetLevel
()
-
sum
local
lv
=
rc
:
GetLevel
()
-
sum
...
@@ -75,9 +77,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,9 +77,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
local
lv
=
tc
:
GetLevel
()
local
lv
=
tc
:
GetLevel
()
if
ft
<=
0
then
if
ft
<=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
FilterSelect
(
tp
,
c7986397
.
mfilterf
,
1
,
1
,
nil
,
tp
,
mg
,
dg
,
tc
)
local
mat2
=
mg
:
FilterSelect
(
tp
,
c7986397
.
mfilterf
,
1
,
1
,
nil
,
tp
,
mg
,
dg
,
tc
):
GetFirst
()
lv
=
lv
-
mat2
:
GetFirst
():
GetRitualLevel
(
tc
)
lv
=
lv
-
mat2
:
GetRitualLevel
(
tc
)
mat
:
Merge
(
mat2
)
mat
:
AddCard
(
mat2
)
mg
:
RemoveCard
(
mat2
)
end
end
while
lv
~=
0
do
while
lv
~=
0
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
...
...
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