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
d3b915bf
Commit
d3b915bf
authored
Mar 12, 2018
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quick fix
parent
b7a62c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
c16719140.lua
c16719140.lua
+5
-2
No files found.
c16719140.lua
View file @
d3b915bf
...
@@ -36,9 +36,12 @@ function c16719140.costfilter(c,e,tp,mg,rlv)
...
@@ -36,9 +36,12 @@ function c16719140.costfilter(c,e,tp,mg,rlv)
local
lv
=
c
:
GetLevel
()
-
rlv
local
lv
=
c
:
GetLevel
()
-
rlv
return
mg
:
GetCount
()
>
0
and
(
lv
<=
0
or
mg
:
CheckWithSumGreater
(
Card
.
GetOriginalLevel
,
lv
))
return
mg
:
GetCount
()
>
0
and
(
lv
<=
0
or
mg
:
CheckWithSumGreater
(
Card
.
GetOriginalLevel
,
lv
))
end
end
function
c16719140
.
relfilter
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsReleasableByEffect
()
end
function
c16719140
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16719140
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsLevelAbove
,
nil
,
1
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c16719140
.
relfilter
,
nil
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
...
@@ -60,7 +63,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +63,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<-
1
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<-
1
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsLevelAbove
,
nil
,
1
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c16719140
.
relfilter
,
nil
)
if
not
mg
:
IsContains
(
c
)
then
return
end
if
not
mg
:
IsContains
(
c
)
then
return
end
mg
:
RemoveCard
(
c
)
mg
:
RemoveCard
(
c
)
if
mg
:
GetCount
()
==
0
then
return
end
if
mg
:
GetCount
()
==
0
then
return
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