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
5035322f
Commit
5035322f
authored
Jun 14, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/6/14 新增:英雄预组新卡
parent
981e5d4d
Pipeline
#27769
passed with stages
in 7 minutes and 40 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
109 additions
and
10 deletions
+109
-10
RD Patch.cdb
RD Patch.cdb
+0
-0
script/RDBase.lua
script/RDBase.lua
+1
-0
script/RDFusion.lua
script/RDFusion.lua
+17
-7
script/c120253054.lua
script/c120253054.lua
+0
-3
script/c120263013.lua
script/c120263013.lua
+38
-0
script/c120263031.lua
script/c120263031.lua
+21
-0
script/c120263038.lua
script/c120263038.lua
+32
-0
No files found.
RD Patch.cdb
View file @
5035322f
No preview for this file type
script/RDBase.lua
View file @
5035322f
...
@@ -20,6 +20,7 @@ EFFECT_PLAYER_RACE_CANNOT_ATTACK = 120155055 -- 幻刃封锁 (不能选择不能
...
@@ -20,6 +20,7 @@ EFFECT_PLAYER_RACE_CANNOT_ATTACK = 120155055 -- 幻刃封锁 (不能选择不能
EFFECT_PLAYER_CANNOT_ACTIVATE_TRAP
=
120247013
-- 三角神迷火花 (整个回合不能发动陷阱)
EFFECT_PLAYER_CANNOT_ACTIVATE_TRAP
=
120247013
-- 三角神迷火花 (整个回合不能发动陷阱)
EFFECT_PLAYER_CANNOT_ACTIVATE_TRAP_BATTLE
=
120261022
-- 暗物质人偶·水母 (战斗阶段不能发动陷阱)
EFFECT_PLAYER_CANNOT_ACTIVATE_TRAP_BATTLE
=
120261022
-- 暗物质人偶·水母 (战斗阶段不能发动陷阱)
EFFECT_ATTACK_NOT_CHAIN_TRAP
=
120140004
-- 不许始末战士 (攻击宣言时, 对方不能把陷阱卡发动)
EFFECT_ATTACK_NOT_CHAIN_TRAP
=
120140004
-- 不许始末战士 (攻击宣言时, 对方不能把陷阱卡发动)
EFFECT_ONLY_FUSION_SUMMON
=
120263031
-- 只能融合召唤 (奇迹融合)
FLAG_SUMMON_TURN
=
120000011
-- 召唤·特殊召唤的回合被盖放, 不再符合召唤·特殊召唤的回合的条件
FLAG_SUMMON_TURN
=
120000011
-- 召唤·特殊召唤的回合被盖放, 不再符合召唤·特殊召唤的回合的条件
FLAG_ATTACK_ANNOUNCED
=
120000012
-- 已经进行了攻击宣言, 不能向怪兽攻击的效果失效
FLAG_ATTACK_ANNOUNCED
=
120000012
-- 已经进行了攻击宣言, 不能向怪兽攻击的效果失效
...
...
script/RDFusion.lua
View file @
5035322f
...
@@ -213,13 +213,18 @@ end
...
@@ -213,13 +213,18 @@ end
-- 这张卡不用融合术召唤不能特殊召唤
-- 这张卡不用融合术召唤不能特殊召唤
function
RushDuel
.
OnlyFusionSummon
(
card
)
function
RushDuel
.
OnlyFusionSummon
(
card
)
local
e
=
Effect
.
CreateEffect
(
card
)
local
e1
=
Effect
.
CreateEffect
(
card
)
e
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
:
SetValue
(
aux
.
fuslimit
)
e1
:
SetValue
(
aux
.
fuslimit
)
card
:
RegisterEffect
(
e
)
card
:
RegisterEffect
(
e1
)
return
e
local
e2
=
Effect
.
CreateEffect
(
card
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ONLY_FUSION_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
card
:
RegisterEffect
(
e2
)
return
e2
end
end
-- 创建效果: 融合术/结合 召唤
-- 创建效果: 融合术/结合 召唤
...
@@ -365,3 +370,8 @@ end
...
@@ -365,3 +370,8 @@ end
function
RushDuel
.
FusionToDeck
(
mat
)
function
RushDuel
.
FusionToDeck
(
mat
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
end
end
-- 素材去向: 卡组下面
function
RushDuel
.
FusionToDeckBottom
(
mat
)
local
tp
=
mat
:
GetFirst
():
GetControler
()
Auxiliary
.
PlaceCardsOnDeckBottom
(
tp
,
mat
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
end
script/c120253054.lua
View file @
5035322f
...
@@ -25,9 +25,6 @@ function cm.exfilter(c)
...
@@ -25,9 +25,6 @@ function cm.exfilter(c)
return
c
:
IsFusionAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_FISH
)
return
c
:
IsFusionAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_FISH
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
end
end
function
cm
.
matcheck
(
tp
,
sg
,
fc
)
return
sg
:
FilterCount
(
Card
.
IsOnField
,
nil
)
==
1
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
nil
)
end
end
\ No newline at end of file
script/c120263013.lua
0 → 100644
View file @
5035322f
local
m
=
120263013
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"流浪勇者 弗里德"
function
cm
.
initial_effect
(
c
)
--Destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Destroy
function
cm
.
costfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
cm
.
filter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
atk
end
cm
.
cost
=
RD
.
CostSendGraveToDeckBottom
(
cm
.
costfilter
,
2
,
2
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
atk
=
e
:
GetHandler
():
GetAttack
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
atk
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
filter
=
RD
.
Filter
(
cm
.
filter
,
c
:
GetAttack
())
RD
.
SelectAndDoAction
(
HINTMSG_DESTROY
,
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
function
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
)
end
end
\ No newline at end of file
script/c120263031.lua
0 → 100644
View file @
5035322f
local
m
=
120263031
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"奇迹融合"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
RD
.
CreateFusionEffect
(
c
,
cm
.
matfilter
,
cm
.
spfilter
,
cm
.
exfilter
,
LOCATION_GRAVE
,
0
,
nil
,
RD
.
FusionToDeckBottom
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cm
.
matfilter
(
c
)
return
c
:
IsOnField
()
and
c
:
IsAbleToDeck
()
end
function
cm
.
spfilter
(
c
)
return
c
:
IsHasEffect
(
EFFECT_ONLY_FUSION_SUMMON
)
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
cm
.
exfilter
(
c
)
return
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
end
\ No newline at end of file
script/c120263038.lua
0 → 100644
View file @
5035322f
local
m
=
120263038
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"沙尘防护罩 -尘埃之力-"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
RD
.
IsCanChangePosition
(
c
)
and
c
:
IsCanTurnSet
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
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
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
RD
.
ChangePosition
(
g
,
POS_FACEDOWN_DEFENSE
)
end
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