Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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-520DIY
ygopro
Commits
8e8cb99e
Commit
8e8cb99e
authored
Jul 26, 2014
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f7158a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
script/c21296383.lua
script/c21296383.lua
+2
-2
No files found.
script/c21296383.lua
View file @
8e8cb99e
...
...
@@ -16,14 +16,14 @@ function c21296383.spfilter(c,e,tp)
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c21296383
.
cfilter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsLevelAbove
(
lv
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
GetOriginalLevel
()
>=
lv
end
function
c21296383
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
sg
=
Duel
.
GetMatchingGroup
(
c21296383
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chkc
then
return
sg
:
IsContains
(
chkc
)
and
chkc
:
IsLevelBelow
(
e
:
GetLabel
())
end
if
sg
:
GetCount
()
==
0
then
return
false
end
local
mg
,
mlv
=
sg
:
GetMinGroup
(
Card
.
GetLevel
)
local
elv
=
e
:
GetHandler
():
GetLevel
()
local
elv
=
e
:
GetHandler
():
Get
Original
Level
()
local
lv
=
(
elv
>=
mlv
)
and
1
or
(
mlv
-
elv
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c21296383
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
lv
)
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