Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
04fb735e
Commit
04fb735e
authored
Jan 26, 2023
by
mercury233
Committed by
GitHub
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partly fix Cupid Pitch (#2014)
parent
00a5a0b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
c21915012.lua
c21915012.lua
+20
-11
No files found.
c21915012.lua
View file @
04fb735e
...
@@ -43,19 +43,27 @@ end
...
@@ -43,19 +43,27 @@ end
function
c21915012
.
valcheck
(
e
,
c
)
function
c21915012
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
local
mg
=
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_TUNER
)
local
mg
=
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_TUNER
)
if
#
mg
==
1
then
local
tc
=
mg
:
GetFirst
()
local
tc
=
mg
:
GetFirst
()
if
not
tc
then
local
lv
=
tc
:
GetSynchroLevel
(
c
)
e
:
GetLabelObject
():
SetLabel
(
0
)
local
lv2
=
lv
>>
16
return
lv
=
lv
&
0xffff
end
if
lv2
>
0
and
not
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
if
#
mg
>
1
then
lv
=
lv2
local
tg
=
g
-
(
g
:
Filter
(
Card
.
IsNotTuner
,
nil
,
c
))
end
if
#
tg
>
0
then
if
tc
:
IsHasEffect
(
89818984
)
and
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
tc
=
tg
:
GetFirst
()
lv
=
2
end
end
e
:
GetLabelObject
():
SetLabel
(
lv
)
end
end
local
lv
=
tc
:
GetSynchroLevel
(
c
)
local
lv2
=
lv
>>
16
lv
=
lv
&
0xffff
if
lv2
>
0
and
not
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
lv
=
lv2
end
if
tc
:
IsHasEffect
(
89818984
)
and
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
lv
=
2
end
e
:
GetLabelObject
():
SetLabel
(
lv
)
end
end
function
c21915012
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21915012
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
@@ -64,6 +72,7 @@ function c21915012.lvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,6 +72,7 @@ function c21915012.lvop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ct
=
e
:
GetLabel
()
local
ct
=
e
:
GetLabel
()
if
ct
==
0
then
return
end
local
sel
=
nil
local
sel
=
nil
if
c
:
IsLevel
(
1
)
then
if
c
:
IsLevel
(
1
)
then
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
21915012
,
1
))
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
21915012
,
1
))
...
...
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