Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
c0dfaadf
Commit
c0dfaadf
authored
Jan 21, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c10919.lua 我啥也不知道
parent
0f453807
Pipeline
#19714
passed with stage
in 1 minute and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
script/c10919.lua
script/c10919.lua
+4
-3
No files found.
script/c10919.lua
View file @
c0dfaadf
...
...
@@ -19,7 +19,7 @@ function c10919.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ct
=
0
local
class
=
Duel
.
GetMatchingGroupCount
(
c10919
.
ctfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
class
>
2
then
ct
=
math.floor
(
class
/
3
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
ct
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10919
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
...
...
@@ -27,8 +27,9 @@ function c10919.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
ct
=
1
local
class
=
Duel
.
GetMatchingGroupCount
(
c10919
.
ctfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
class
>
2
then
ct
=
math.floor
(
class
/
3
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
ct
then
return
end
if
class
>
2
then
ct
=
math.floor
(
class
/
3
)
+
1
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
ct
=
math.min
(
ct
,
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c10919
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
ct
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
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