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
454ca449
Commit
454ca449
authored
Jan 02, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix レベルアップ!
parent
b5eb2764
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
c25290459.lua
c25290459.lua
+2
-2
No files found.
c25290459.lua
View file @
454ca449
...
...
@@ -12,7 +12,7 @@ function c25290459.initial_effect(c)
end
function
c25290459
.
costfilter
(
c
,
e
,
tp
)
if
not
c
:
IsSetCard
(
0x41
)
or
not
c
:
IsAbleToGraveAsCost
()
or
not
c
:
IsFaceup
()
then
return
false
end
local
code
=
c
:
Get
Cod
e
()
local
code
=
c
:
Get
OriginalCodeRul
e
()
local
class
=
_G
[
"c"
..
code
]
if
class
==
nil
or
class
.
lvup
==
nil
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c25290459
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
class
,
e
,
tp
)
...
...
@@ -26,7 +26,7 @@ function c25290459.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25290459
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
Get
Cod
e
())
e
:
SetLabel
(
g
:
GetFirst
():
Get
OriginalCodeRul
e
())
end
function
c25290459
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
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