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
94db10c7
Commit
94db10c7
authored
Jan 10, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/1/10 新增:宇宙的威胁
parent
783663f3
Pipeline
#24862
passed with stages
in 15 minutes and 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
RD Patch.cdb
RD Patch.cdb
+0
-0
script/RDAction.lua
script/RDAction.lua
+19
-0
script/c120257059.lua
script/c120257059.lua
+35
-0
No files found.
RD Patch.cdb
View file @
94db10c7
No preview for this file type
script/RDAction.lua
View file @
94db10c7
...
...
@@ -409,6 +409,25 @@ function RushDuel.SendDeckTopToGraveAndCanSelect(player, count, desc, hint, filt
end
return
Group
.
CreateGroup
(),
Group
.
CreateGroup
()
end
-- 可选操作: 把怪兽或魔陷盖放
function
RushDuel
.
CanSetCard
(
player
,
desc
,
card
,
effect
,
break_effect
)
local
b1
=
card
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetLocationCount
(
player
,
LOCATION_MZONE
)
>
0
and
card
:
IsCanBeSpecialSummoned
(
effect
,
0
,
player
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
local
b2
=
card
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
card
:
IsSSetable
()
and
(
card
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
player
,
LOCATION_SZONE
)
>
0
)
if
(
b1
or
b2
)
and
Duel
.
SelectEffectYesNo
(
player
,
card
,
desc
)
then
if
break_effect
then
Duel
.
BreakEffect
()
end
if
b1
then
Duel
.
SpecialSummon
(
card
,
0
,
player
,
player
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ConfirmCards
(
1
-
player
,
card
)
return
true
else
Duel
.
SSet
(
player
,
card
)
return
true
end
end
return
false
end
-- 可选操作: 抽卡
function
RushDuel
.
CanDraw
(
desc
,
player
,
count
,
break_effect
)
...
...
script/c120257059.lua
0 → 100644
View file @
94db10c7
local
m
=
120257059
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"宇宙的威胁"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
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
cm
.
cost
=
RD
.
CostPayLP
(
1000
)
function
cm
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_EFFECT
)
~=
0
then
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
if
not
aux
.
NecroValleyFilter
()(
tc
)
then
return
end
local
set
=
RD
.
CanSetCard
(
tp
,
aux
.
Stringid
(
m
,
1
),
tc
,
e
,
true
)
if
set
and
tc
:
IsLevel
(
2
)
and
tc
:
IsSummonLocation
(
LOCATION_GRAVE
)
then
RD
.
CanSelectAndDoAction
(
aux
.
Stringid
(
m
,
2
),
HINTMSG_DESTROY
,
cm
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
function
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
)
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