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
96d4f71a
Commit
96d4f71a
authored
Jan 14, 2025
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025/1/14 新增:摆尾攻击
parent
96024e4e
Pipeline
#32590
passed with stages
in 14 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120277059.lua
script/c120277059.lua
+42
-0
No files found.
RD Patch.cdb
View file @
96d4f71a
No preview for this file type
script/c120277059.lua
0 → 100644
View file @
96d4f71a
local
m
=
120277059
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"摆尾攻击"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cm
.
filter
(
c
,
tp
)
if
c
:
IsControler
(
tp
)
then
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_DINOSAUR
)
else
return
(
c
:
IsFacedown
()
or
c
:
IsLevelAbove
(
1
))
and
c
:
IsAbleToHand
()
end
end
function
cm
.
exfilter
(
c
,
tc
)
return
c
:
IsFacedown
()
or
c
:
GetLevel
()
<
tc
:
GetLevel
()
end
function
cm
.
check
(
g
,
tp
)
if
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
~=
1
then
return
false
end
local
tc
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
):
GetFirst
()
return
g
:
FilterCount
(
cm
.
exfilter
,
tc
,
tc
)
==
(
g
:
GetCount
()
-
1
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
cm
.
check
,
2
,
3
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
filter
=
RD
.
Filter
(
cm
.
filter
,
tp
)
local
check
=
RD
.
Check
(
cm
.
check
,
tp
)
RD
.
SelectGroupAndDoAction
(
aux
.
Stringid
(
m
,
1
),
filter
,
check
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
3
,
nil
,
function
(
g
)
local
sg
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
RD
.
SendToOpponentHand
(
sg
)
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