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
e1dd4032
Commit
e1dd4032
authored
May 23, 2025
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025/5/23 已知卡组顶的卡片的场合,抽卡阶段抽卡后自动洗切手卡
parent
60c907cd
Pipeline
#36713
passed with stages
in 14 minutes and 12 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
6 deletions
+25
-6
script/RDAction.lua
script/RDAction.lua
+1
-0
script/RDRule.lua
script/RDRule.lua
+21
-2
script/c120145032.lua
script/c120145032.lua
+1
-4
script/c120261014.lua
script/c120261014.lua
+1
-0
script/c120261016.lua
script/c120261016.lua
+1
-0
No files found.
script/RDAction.lua
View file @
e1dd4032
...
...
@@ -407,6 +407,7 @@ end
function
RushDuel
.
SendToDeckTopOrBottom
(
target
,
effect
,
player
,
reason
,
top_desc
,
bottom_desc
)
local
sequence
=
Duel
.
SelectOption
(
player
,
top_desc
,
bottom_desc
)
if
sequence
==
0
then
RD
.
NeedShuffleHand
[
player
+
1
]
=
true
return
RushDuel
.
SendToDeckTop
(
target
,
effect
,
player
,
reason
)
else
return
RushDuel
.
SendToDeckBottom
(
target
,
effect
,
player
,
reason
)
...
...
script/RDRule.lua
View file @
e1dd4032
-- Rush Duel 规则
RushDuel
=
RushDuel
or
{}
-- 需要洗切手卡
RushDuel
.
NeedShuffleHand
=
{
false
,
false
}
-- 初始化
function
RushDuel
.
Init
()
RushDuel
.
InitRule
()
...
...
@@ -20,13 +23,29 @@ end
-- 初始化规则
function
RushDuel
.
InitRule
()
-- 禁用最左与最右列
RushDuel
.
CreateFieldGlobalEffect
(
false
,
EFFECT_DISABLE_FIELD
,
function
(
e
,
tp
)
RushDuel
.
CreateFieldGlobalEffect
(
false
,
EFFECT_DISABLE_FIELD
,
function
()
return
0x11711171
end
)
-- 抽卡阶段, 抽卡至5张, 超过5张时改为抽1张
RushDuel
.
CreatePlayerTargetGlobalEffect
(
EFFECT_DRAW_COUNT
,
function
(
e
)
RushDuel
.
CreatePlayerTargetGlobalEffect
(
EFFECT_DRAW_COUNT
,
function
()
return
math.max
(
1
,
5
-
Duel
.
GetFieldGroupCount
(
Duel
.
GetTurnPlayer
(),
LOCATION_HAND
,
0
))
end
)
-- 抽卡阶段抽卡后, 洗切手卡
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetCondition
(
function
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
end
)
e1
:
SetOperation
(
function
()
local
tp
=
Duel
.
GetTurnPlayer
()
if
RushDuel
.
NeedShuffleHand
[
tp
+
1
]
then
Duel
.
ShuffleHand
(
tp
)
end
RushDuel
.
NeedShuffleHand
[
1
]
=
false
RushDuel
.
NeedShuffleHand
[
2
]
=
false
end
)
Duel
.
RegisterEffect
(
e1
,
0
)
-- 跳过准备阶段
RushDuel
.
CreatePlayerTargetGlobalEffect
(
EFFECT_SKIP_SP
)
-- 召唤次数无限制
...
...
script/c120145032.lua
View file @
e1dd4032
...
...
@@ -29,8 +29,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD
.
AttachAtkDef
(
e
,
c
,
atk
,
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
end
Duel
.
SortDecktop
(
1
-
tp
,
1
-
tp
,
5
)
for
i
=
1
,
5
do
local
tc
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
1
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
1
)
end
RD
.
SendDeckTopToBottom
(
1
-
tp
,
5
)
end
\ No newline at end of file
script/c120261014.lua
View file @
e1dd4032
...
...
@@ -25,4 +25,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsLevelAbove
(
5
)
then
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
POS_FACEUP
)
end
RD
.
NeedShuffleHand
[
2
-
tp
]
=
true
end
\ No newline at end of file
script/c120261016.lua
View file @
e1dd4032
...
...
@@ -26,4 +26,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
lv
>
0
then
Duel
.
Damage
(
1
-
tp
,
lv
*
100
,
REASON_EFFECT
)
end
RD
.
NeedShuffleHand
[
2
-
tp
]
=
true
end
\ No newline at end of file
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