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
Reinen
ygopro-scripts
Commits
a4cb6781
Commit
a4cb6781
authored
Aug 20, 2020
by
mallu11
Committed by
GitHub
Aug 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix level up/down effect(select option in operation) (#1478)
* fix 電脳堺門-朱雀 * fix インフェルニティ・ワイルドキャット * fix TGスクリュー・サーペント
parent
633036a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
c11234702.lua
c11234702.lua
+6
-1
c13364097.lua
c13364097.lua
+6
-1
c74148483.lua
c74148483.lua
+6
-1
No files found.
c11234702.lua
View file @
a4cb6781
...
...
@@ -65,8 +65,13 @@ end
function
c11234702
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
sel
=
0
local
lvl
=
1
local
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
11234702
,
1
),
aux
.
Stringid
(
11234702
,
2
))
if
tc
:
IsLevel
(
1
)
then
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
11234702
,
1
))
else
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
11234702
,
1
),
aux
.
Stringid
(
11234702
,
2
))
end
if
sel
==
1
then
lvl
=-
1
end
...
...
c13364097.lua
View file @
a4cb6781
...
...
@@ -73,8 +73,13 @@ end
function
c13364097
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
sel
=
0
local
lvl
=
3
local
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
13364097
,
2
),
aux
.
Stringid
(
13364097
,
3
))
if
tc
:
IsLevelBelow
(
3
)
or
tc
:
IsRankBelow
(
3
)
then
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
13364097
,
2
))
else
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
13364097
,
2
),
aux
.
Stringid
(
13364097
,
3
))
end
if
sel
==
1
then
lvl
=-
3
end
...
...
c74148483.lua
View file @
a4cb6781
...
...
@@ -55,7 +55,12 @@ end
function
c74148483
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
74148483
,
1
),
aux
.
Stringid
(
74148483
,
2
))
local
opt
=
0
if
c
:
IsLevel
(
1
)
then
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
74148483
,
1
))
else
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
74148483
,
1
),
aux
.
Stringid
(
74148483
,
2
))
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
...
...
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