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
5
Issues
5
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
2cef22d1
Commit
2cef22d1
authored
Feb 25, 2025
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025/2/25 场上的卡返回手卡时不需要确认
parent
0282834b
Pipeline
#33370
passed with stages
in 10 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
script/RDAction.lua
script/RDAction.lua
+5
-1
No files found.
script/RDAction.lua
View file @
2cef22d1
...
...
@@ -275,6 +275,10 @@ function RushDuel.FilterToHandTarget(card, effect, player, reason, hints)
end
return
true
end
-- 过滤需要给对方确认的卡
function
RushDuel
.
FilterToHandConfirm
(
card
,
player
)
return
card
:
IsControler
(
player
)
and
card
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
-- 操作: 加入/返回手卡, 并给对方确认加入自己手卡的卡
function
RushDuel
.
SendToHandAndExists
(
target
,
effect
,
player
,
reason
,
filter
,
count
,
expect
)
local
hints
=
Group
.
CreateGroup
()
...
...
@@ -290,7 +294,7 @@ function RushDuel.SendToHandAndExists(target, effect, player, reason, filter, co
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
==
0
then
return
false
end
local
cg
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
player
)
local
cg
=
g
:
Filter
(
RushDuel
.
FilterToHandConfirm
,
nil
,
player
)
if
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
player
,
cg
)
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