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
68400107
Commit
68400107
authored
Jul 28, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/7/28 新增:英雄新卡
parent
dd386220
Pipeline
#28739
passed with stages
in 8 minutes and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
0 deletions
+64
-0
RD Patch.cdb
RD Patch.cdb
+0
-0
RD Standard.cdb
RD Standard.cdb
+0
-0
script/c120264019.lua
script/c120264019.lua
+30
-0
script/c120264056.lua
script/c120264056.lua
+34
-0
No files found.
RD Patch.cdb
View file @
68400107
No preview for this file type
RD Standard.cdb
View file @
68400107
No preview for this file type
script/c120264019.lua
0 → 100644
View file @
68400107
local
m
=
120264019
local
list
=
{
120263004
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"冒牌新宇侠"
function
cm
.
initial_effect
(
c
)
RD
.
AddCodeList
(
c
,
list
)
--Change Code
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Change Code
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsCode
(
list
[
1
])
end
cm
.
cost
=
RD
.
CostSendDeckTopToGrave
(
2
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
RD
.
ChangeCode
(
e
,
c
,
list
[
1
],
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
end
if
Duel
.
GetFlagEffect
(
tp
,
m
)
~=
0
then
return
end
RD
.
CreateRaceCannotAttackEffect
(
e
,
aux
.
Stringid
(
m
,
1
),
RACE_ALL
-
RACE_WARRIOR
,
tp
,
1
,
0
,
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
\ No newline at end of file
script/c120264056.lua
0 → 100644
View file @
68400107
local
m
=
120264056
local
list
=
{
120264017
,
120264018
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"英雄降临"
function
cm
.
initial_effect
(
c
)
RD
.
AddCodeList
(
c
,
list
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
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
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsCode
(
list
[
1
],
list
[
2
])
or
(
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsRace
(
RACE_WARRIOR
)))
and
c
:
IsLevelAbove
(
1
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
check
(
g
)
return
g
:
GetSum
(
Card
.
GetLevel
)
<=
7
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
g
:
CheckSubGroup
(
cm
.
check
,
1
,
2
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
RD
.
SelectGroupAndSpecialSummon
(
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
cm
.
check
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
,
POS_FACEUP_DEFENSE
)
if
Duel
.
GetFlagEffect
(
tp
,
m
)
~=
0
then
return
end
RD
.
CreateRaceCannotAttackEffect
(
e
,
aux
.
Stringid
(
m
,
1
),
RACE_ALL
-
RACE_WARRIOR
,
tp
,
1
,
0
,
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
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