Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
3
Issues
3
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
MyCard
ygopro-rush-duel
Commits
dca8b4e1
Commit
dca8b4e1
authored
Apr 02, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/4/2 bug修复
parent
af0f8a24
Pipeline
#26210
passed with stages
in 6 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
script/c120260017.lua
script/c120260017.lua
+5
-2
No files found.
script/c120260017.lua
View file @
dca8b4e1
...
@@ -19,9 +19,12 @@ end
...
@@ -19,9 +19,12 @@ end
function
cm
.
costfilter2
(
c
)
function
cm
.
costfilter2
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
end
function
cm
.
costcheck2
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
g
:
GetCount
()
end
function
cm
.
costcheck
(
g
)
function
cm
.
costcheck
(
g
)
return
RD
.
GroupAllCount
(
g
,
Card
.
IsLocation
,
1
,
LOCATION_HAND
)
return
RD
.
GroupAllCount
(
g
,
Card
.
IsLocation
,
1
,
LOCATION_HAND
)
or
(
g
:
GetClassCount
(
Card
.
GetLevel
)
==
g
:
GetCount
()
and
RD
.
GroupAllCount
(
g
,
Card
.
IsLocation
,
5
,
LOCATION_GRAVE
))
or
(
RD
.
GroupAllCount
(
g
,
Card
.
IsLocation
,
5
,
LOCATION_GRAVE
)
and
cm
.
costcheck2
(
g
))
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
costfilter1
,
tp
,
LOCATION_HAND
,
0
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
costfilter1
,
tp
,
LOCATION_HAND
,
0
,
nil
)
...
@@ -30,7 +33,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,7 +33,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
local
sg
if
g1
:
GetCount
()
<
1
then
if
g1
:
GetCount
()
<
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
sg
=
g2
:
Select
(
tp
,
5
,
5
,
nil
)
sg
=
g2
:
Select
SubGroup
(
tp
,
cm
.
costcheck2
,
false
,
5
,
5
)
elseif
g2
:
GetClassCount
(
Card
.
GetLevel
)
<
5
then
elseif
g2
:
GetClassCount
(
Card
.
GetLevel
)
<
5
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
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