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
0
Issues
0
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
Clara Grace Paulsen
ygopro-rush-duel
Commits
df021c59
Commit
df021c59
authored
Jun 04, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/6/4 调整永续改变卡名的效果
parent
97e08d7d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
6 deletions
+29
-6
script/RDLegend.lua
script/RDLegend.lua
+24
-1
script/c120231026.lua
script/c120231026.lua
+1
-1
script/c120238007.lua
script/c120238007.lua
+1
-1
script/c120247001.lua
script/c120247001.lua
+1
-1
script/c120247003.lua
script/c120247003.lua
+1
-1
script/c120247004.lua
script/c120247004.lua
+1
-1
No files found.
script/RDLegend.lua
View file @
df021c59
...
...
@@ -57,4 +57,27 @@ end
-- 条件: 是否为同名卡
function
RushDuel
.
IsSameCode
(
card1
,
card2
)
return
card1
:
IsLinkCode
(
card2
:
GetLinkCode
())
end
\ No newline at end of file
end
-- 永续改变卡名
function
RushDuel
.
EnableChangeCode
(
c
,
code
,
location
,
condition
)
Auxiliary
.
AddCodeList
(
c
,
code
)
local
loc
=
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
LOCATION_MZONE
or
LOCATION_SZONE
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
location
or
loc
)
if
condition
~=
nil
then
e1
:
SetCondition
(
condition
)
end
e1
:
SetValue
(
code
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_ADD_LINK_CODE
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_ADD_FUSION_CODE
)
c
:
RegisterEffect
(
e3
)
return
e1
,
e2
,
e3
end
script/c120231026.lua
View file @
df021c59
...
...
@@ -4,5 +4,5 @@ local cm=_G["c"..m]
cm
.
name
=
"原始电子龙"
function
cm
.
initial_effect
(
c
)
--Change Code
aux
.
EnableChangeCode
(
c
,
list
[
1
])
RD
.
EnableChangeCode
(
c
,
list
[
1
])
end
script/c120238007.lua
View file @
df021c59
...
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
cm
.
name
=
"传说的战士-破坏剑士"
function
cm
.
initial_effect
(
c
)
--Change Code
aux
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_GRAVE
)
RD
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_GRAVE
)
--Cannot Direct Attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c120247001.lua
View file @
df021c59
...
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
cm
.
name
=
"鹰身三姐妹[L]"
function
cm
.
initial_effect
(
c
)
--Change Code
aux
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
RD
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
--Indes (Normal)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c120247003.lua
View file @
df021c59
...
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
cm
.
name
=
"鹰身三姐妹[R]"
function
cm
.
initial_effect
(
c
)
--Change Code
aux
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
RD
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
--Indes (Normal)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c120247004.lua
View file @
df021c59
...
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
cm
.
name
=
"鹰身女郎1"
function
cm
.
initial_effect
(
c
)
--Change Code
aux
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
RD
.
EnableChangeCode
(
c
,
list
[
1
],
LOCATION_MZONE
+
LOCATION_GRAVE
)
--Atk Up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
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