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
3
Issues
3
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
54ca5825
Commit
54ca5825
authored
Apr 20, 2022
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022/4/20 新增:牲祭人偶
parent
7b268d26
Pipeline
#11800
passed with stages
in 3 minutes and 41 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
RD Patch.cdb
RD Patch.cdb
+0
-0
script/RDAttach.lua
script/RDAttach.lua
+4
-0
script/c120214009.lua
script/c120214009.lua
+43
-0
No files found.
RD Patch.cdb
View file @
54ca5825
No preview for this file type
script/RDAttach.lua
View file @
54ca5825
...
...
@@ -90,6 +90,10 @@ function RushDuel.AttachEndPhase(e, card, player, code, operation, desc)
Duel
.
RegisterEffect
(
e1
,
player
)
return
e1
end
-- 赋予: 不能攻击
function
RushDuel
.
AttachCannotAttack
(
e
,
card
,
desc
,
reset
)
return
RushDuel
.
CreateSingleEffect
(
e
,
desc
,
card
,
EFFECT_CANNOT_ATTACK
,
nil
,
reset
)
end
-- 赋予: 不能直接攻击
function
RushDuel
.
AttachCannotDirectAttack
(
e
,
card
,
desc
,
reset
)
return
RushDuel
.
CreateSingleEffect
(
e
,
desc
,
card
,
EFFECT_CANNOT_DIRECT_ATTACK
,
nil
,
reset
)
...
...
script/c120214009.lua
0 → 100644
View file @
54ca5825
local
m
=
120214009
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"牲祭人偶"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cm
.
costfilter
(
c
,
tp
)
return
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
7
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
RD
.
SetCostLabel
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetMZoneCount
(
tp
)
>
0
RD
.
ResetCostLabel
(
e
)
return
res
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
RD
.
ResetCostLabel
(
e
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
RD
.
SelectAndSpecialSummon
(
cm
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
POS_FACEUP
)
~=
0
then
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
RD
.
AttachCannotAttack
(
e
,
tc
,
aux
.
Stringid
(
m
,
1
),
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
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