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
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
Vee4
ygopro-rush-duel
Commits
b376b223
You need to sign in or sign up before continuing.
Commit
b376b223
authored
Jan 13, 2026
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2026/1/13 bug修复
parent
a122b69b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
18 deletions
+20
-18
script/RDAction.lua
script/RDAction.lua
+6
-5
script/RDRitual.lua
script/RDRitual.lua
+1
-1
script/c120300050.lua
script/c120300050.lua
+1
-1
script/c120300052.lua
script/c120300052.lua
+11
-10
script/c120300061.lua
script/c120300061.lua
+1
-1
No files found.
script/RDAction.lua
View file @
b376b223
...
...
@@ -541,16 +541,17 @@ function RushDuel.CanDraw(desc, player, count, break_effect)
return
0
end
-- 可选操作: 盲堆
function
RushDuel
.
CanDiscardDeck
(
desc
,
player
,
min
,
max
,
break_effect
)
if
Duel
.
IsPlayerCanDiscardDeck
(
player
,
min
)
and
Duel
.
SelectYesNo
(
player
,
desc
)
then
function
RushDuel
.
CanDiscardDeck
(
desc
,
player
,
min
,
max
,
break_effect
,
target_player
)
target_player
=
target_player
or
player
if
Duel
.
IsPlayerCanDiscardDeck
(
target_player
,
min
)
and
Duel
.
SelectYesNo
(
player
,
desc
)
then
if
break_effect
then
Duel
.
BreakEffect
()
end
max
=
max
or
min
local
ct
=
Duel
.
GetFieldGroupCount
(
player
,
LOCATION_DECK
,
0
)
local
ct
=
Duel
.
GetFieldGroupCount
(
target_
player
,
LOCATION_DECK
,
0
)
local
ops
=
{}
for
i
=
min
,
math.min
(
max
,
ct
)
do
if
Duel
.
IsPlayerCanDiscardDeck
(
player
,
i
)
then
if
Duel
.
IsPlayerCanDiscardDeck
(
target_
player
,
i
)
then
table.insert
(
ops
,
i
)
end
end
...
...
@@ -561,7 +562,7 @@ function RushDuel.CanDiscardDeck(desc, player, min, max, break_effect)
Duel
.
Hint
(
HINT_SELECTMSG
,
player
,
HINTMSG_OPERATE_COUNT
)
count
=
Duel
.
AnnounceNumber
(
player
,
table.unpack
(
ops
))
end
return
Duel
.
DiscardDeck
(
player
,
count
,
REASON_EFFECT
)
return
Duel
.
DiscardDeck
(
target_
player
,
count
,
REASON_EFFECT
)
end
return
0
end
...
...
script/RDRitual.lua
View file @
b376b223
...
...
@@ -243,7 +243,7 @@ function RushDuel.GetRitualSummonData(e, tp, type, matfilter, spfilter, exfilter
end
if
#
mg2
>
0
then
local
mf
=
effect
:
GetValue
()
local
sg2
=
Duel
.
GetMatchingGroup
(
RushDuel
.
RitualSpecialSummonFilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
pos
,
mg2
,
mf
,
gc
,
chkf
,
spfilter
)
local
sg2
=
Duel
.
GetMatchingGroup
(
RushDuel
.
RitualSpecialSummonFilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
type
,
mg2
,
mf
,
gc
,
chkf
,
spfilter
)
if
#
sg2
>
0
then
table.insert
(
list
,
{
effect
,
mg2
,
sg2
})
ritualable
=
true
...
...
script/c120300050.lua
View file @
b376b223
...
...
@@ -17,5 +17,5 @@ function cm.spfilter(c,e,tp,mat)
and
not
mat
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
mat
,
rc
)
RD
.
CanDiscardDeck
(
aux
.
Stringid
(
m
,
1
),
1
-
tp
,
1
,
mat
:
GetCount
()
)
RD
.
CanDiscardDeck
(
aux
.
Stringid
(
m
,
1
),
tp
,
1
,
mat
:
GetCount
(),
1
-
tp
)
end
\ No newline at end of file
script/c120300052.lua
View file @
b376b223
...
...
@@ -10,16 +10,17 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
condition
)
c
:
RegisterEffect
(
e1
)
-- Ritual Expend
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_RITUAL_MATERIAL
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_RITUAL_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
operation
)
e2
:
SetValue
(
aux
.
TRUE
)
c
:
RegisterEffect
(
e2
)
end
--Activate
function
cm
.
confilter
(
c
)
...
...
script/c120300061.lua
View file @
b376b223
...
...
@@ -27,7 +27,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
eg
:
IsExists
(
cm
.
confilter
,
1
,
nil
,
1
-
tp
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
RD
.
SelectAndDoAction
(
aux
.
Stringid
(
m
,
1
),
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
function
(
g
)
...
...
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