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
8eba1dff
You need to sign in or sign up before continuing.
Commit
8eba1dff
authored
Feb 18, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/2/18 调整更新
parent
ea34a4ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
script/RDAction.lua
script/RDAction.lua
+18
-5
script/c120247059.lua
script/c120247059.lua
+1
-0
script/c120249066.lua
script/c120249066.lua
+0
-1
script/c120257002.lua
script/c120257002.lua
+2
-1
No files found.
script/RDAction.lua
View file @
8eba1dff
-- Rush Duel 操作
-- Rush Duel 操作
RushDuel
=
RushDuel
or
{}
RushDuel
=
RushDuel
or
{}
-- 特殊调整,里侧守备表示特殊召唤时
不用
给对方确认
-- 特殊调整,里侧守备表示特殊召唤时
需要
给对方确认
RushDuel
.
Disable
SpecialSummonConfirm
=
false
RushDuel
.
FaceDown
SpecialSummonConfirm
=
false
-- 内部方法: 选择匹配卡片, 执行操作
-- 内部方法: 选择匹配卡片, 执行操作
function
RushDuel
.
_private_action_select_match
(
hint
,
filter
,
tp
,
s_range
,
o_range
,
min
,
max
,
expect
,
hint_selection
,
confirm
,
action
,
...
)
function
RushDuel
.
_private_action_select_match
(
hint
,
filter
,
tp
,
s_range
,
o_range
,
min
,
max
,
expect
,
hint_selection
,
confirm
,
action
,
...
)
...
@@ -70,20 +70,33 @@ end
...
@@ -70,20 +70,33 @@ end
function
RushDuel
.
_private_is_include_public
(
s_range
,
o_range
)
function
RushDuel
.
_private_is_include_public
(
s_range
,
o_range
)
return
(
s_range
|
o_range
)
&
(
LOCATION_ONFIELD
|
LOCATION_GRAVE
|
LOCATION_REMOVED
)
~=
0
return
(
s_range
|
o_range
)
&
(
LOCATION_ONFIELD
|
LOCATION_GRAVE
|
LOCATION_REMOVED
)
~=
0
end
end
-- 内部方法: 是否需要给对方确认
function
RushDuel
.
_private_is_confirm_card
(
c
)
return
c
:
GetSummonLocation
()
!
=
LOCATION_HAND
end
-- 内部方法: 特殊召唤
-- 内部方法: 特殊召唤
function
RushDuel
.
_special_summon
(
target
,
effect
,
player
,
position
,
break_effect
,
target_player
)
function
RushDuel
.
_special_summon
(
target
,
effect
,
player
,
position
,
break_effect
,
target_player
)
if
break_effect
then
if
break_effect
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
end
end
local
ct
=
Duel
.
SpecialSummon
(
target
,
0
,
player
,
target_player
or
player
,
false
,
false
,
position
)
local
ct
=
Duel
.
SpecialSummon
(
target
,
0
,
player
,
target_player
or
player
,
false
,
false
,
position
)
if
(
position
&
POS_FACEDOWN
)
~=
0
and
not
RushDuel
.
DisableSpecialSummonConfirm
then
if
(
position
&
POS_FACEDOWN
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
player
,
target
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsFacedown
,
nil
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsFacedown
,
nil
)
if
RushDuel
.
FaceDownSpecialSummonConfirm
then
if
og
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
player
,
og
)
end
else
local
confirm
=
og
:
Filter
(
RushDuel
.
_private_is_confirm_card
,
nil
)
if
confirm
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
player
,
confirm
)
end
end
if
og
:
GetCount
()
>
1
then
if
og
:
GetCount
()
>
1
then
Duel
.
ShuffleSetCard
(
og
)
Duel
.
ShuffleSetCard
(
og
)
end
end
end
end
RushDuel
.
Disable
SpecialSummonConfirm
=
false
RushDuel
.
FaceDown
SpecialSummonConfirm
=
false
return
ct
return
ct
end
end
-- 内部方法: 盖放魔法陷阱
-- 内部方法: 盖放魔法陷阱
...
...
script/c120247059.lua
View file @
8eba1dff
...
@@ -43,6 +43,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,6 +43,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
p
,
g
)
Duel
.
ConfirmCards
(
1
-
p
,
g
)
local
spfilter
=
RD
.
Filter
(
cm
.
spfilter
,
e
,
tp
,
g
)
local
spfilter
=
RD
.
Filter
(
cm
.
spfilter
,
e
,
tp
,
g
)
RD
.
FaceDownSpecialSummonConfirm
=
true
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
99
,
nil
,
e
,
POS_FACEDOWN_DEFENSE
,
true
)
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
99
,
nil
,
e
,
POS_FACEDOWN_DEFENSE
,
true
)
Duel
.
ShuffleHand
(
p
)
Duel
.
ShuffleHand
(
p
)
end
end
...
...
script/c120249066.lua
View file @
8eba1dff
...
@@ -26,7 +26,6 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,6 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
RD
.
Draw
()
~=
0
then
if
RD
.
Draw
()
~=
0
then
RD
.
DisableSpecialSummonConfirm
=
true
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
3
,
nil
,
e
,
POS_FACEDOWN_DEFENSE
,
true
)
RD
.
CanSelectAndSpecialSummon
(
aux
.
Stringid
(
m
,
1
),
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
3
,
nil
,
e
,
POS_FACEDOWN_DEFENSE
,
true
)
end
end
end
end
\ No newline at end of file
script/c120257002.lua
View file @
8eba1dff
...
@@ -22,7 +22,8 @@ function cm.posfilter(c)
...
@@ -22,7 +22,8 @@ function cm.posfilter(c)
end
end
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
cm
.
cost
=
RD
.
CostSendGraveToDeck
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
2
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
2
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
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