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
a39953b3
Commit
a39953b3
authored
Dec 24, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/12/24 新增:主位新卡
parent
d4d7c6b4
Pipeline
#24596
passed with stages
in 20 minutes and 10 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
0 deletions
+134
-0
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120257001.lua
script/c120257001.lua
+43
-0
script/c120257003.lua
script/c120257003.lua
+49
-0
script/c120257039.lua
script/c120257039.lua
+42
-0
No files found.
RD Patch.cdb
View file @
a39953b3
No preview for this file type
script/c120257001.lua
0 → 100644
View file @
a39953b3
local
m
=
120257001
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"主位矮星"
function
cm
.
initial_effect
(
c
)
--To Grave
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TODECK
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--To Grave
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsOnField
()
and
c
:
IsFusionAttribute
(
ATTRIBUTE_LIGHT
)
end
function
cm
.
spfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
cm
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsFusionAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsCanBeFusionMaterial
()
end
function
cm
.
check
(
g
)
return
g
:
GetClassCount
(
Card
.
GetRace
)
==
g
:
GetCount
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
RD
.
SelectAndDoAction
(
HINTMSG_TOGRAVE
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
function
(
g
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
==
0
then
return
end
RD
.
CanSelectGroupAndDoAction
(
aux
.
Stringid
(
m
,
1
),
HINTMSG_TODECK
,
aux
.
NecroValleyFilter
(
cm
.
filter
),
cm
.
check
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
,
function
(
sg
)
if
RD
.
SendToDeckAndExists
(
sg
)
then
RD
.
CanFusionSummon
(
aux
.
Stringid
(
m
,
2
),
cm
.
matfilter
,
cm
.
spfilter
,
cm
.
exfilter
,
0
,
LOCATION_MZONE
,
nil
,
RD
.
FusionToGrave
,
e
,
tp
)
end
end
)
end
)
end
\ No newline at end of file
script/c120257003.lua
0 → 100644
View file @
a39953b3
local
m
=
120257003
local
list
=
{
120257008
,
120209001
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"星际史主位"
function
cm
.
initial_effect
(
c
)
RD
.
AddCodeList
(
c
,
list
)
--Discard Deck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DECKDES
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Discard Deck
function
cm
.
confilter1
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
cm
.
confilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
cm
.
confilter1
(
c
)
end
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsLevel
(
7
,
8
)
and
not
c
:
IsPublic
()
end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
cm
.
confilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
cm
.
cost
=
RD
.
CostShowHand
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
DiscardDeck
(
tp
,
3
,
REASON_EFFECT
)
~=
0
then
RD
.
CanSelectAndDoAction
(
aux
.
Stringid
(
m
,
1
),
HINTMSG_ATOHAND
,
aux
.
NecroValleyFilter
(
cm
.
thfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
function
(
g
)
Duel
.
BreakEffect
()
RD
.
SendToHandAndExists
(
g
,
1
-
tp
)
end
)
end
end
\ No newline at end of file
script/c120257039.lua
0 → 100644
View file @
a39953b3
local
m
=
120257039
local
list
=
{
120257008
,
120209001
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"穿越侍·主位全装甲新星"
function
cm
.
initial_effect
(
c
)
RD
.
AddCodeList
(
c
,
list
)
--Fusion Material
RD
.
AddFusionProcedure
(
c
,
list
[
1
],
list
[
2
])
--Atk Up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
cm
.
atkval
)
c
:
RegisterEffect
(
e1
)
--Indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
indcon
)
e2
:
SetValue
(
cm
.
indval
)
c
:
RegisterEffect
(
e2
)
--Continuous Effect
RD
.
AddContinuousEffect
(
c
,
e1
,
e2
)
end
--Atk Up
function
cm
.
atkval
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
0
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
TYPE_MONSTER
)
local
ct
=
g
:
GetClassCount
(
Card
.
GetRace
)
local
atk
=
ct
*
300
if
ct
>=
10
then
atk
=
atk
+
3000
end
return
atk
end
--Indes
cm
.
indval
=
RD
.
ValueEffectIndesType
(
0
,
TYPE_SPELL
+
TYPE_TRAP
+
TYPE_MONSTER
)
function
cm
.
indcon
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
0
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
TYPE_MONSTER
)
return
g
:
GetClassCount
(
Card
.
GetRace
)
>=
5
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