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
a44c0955
Commit
a44c0955
authored
Jan 01, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/1/1 优化选择效果
parent
4d46d416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
script/RDBase.lua
script/RDBase.lua
+9
-13
No files found.
script/RDBase.lua
View file @
a44c0955
...
...
@@ -188,34 +188,30 @@ end
-- 创建效果: 选择效果
function
RushDuel
.
CreateMultiChooseEffect
(
card
,
condition
,
cost
,
hint1
,
target1
,
operation1
,
hint2
,
target2
,
operation2
,
category1
,
category2
)
local
e1
=
Effect
.
CreateEffect
(
card
)
e1
:
SetDescription
(
hint1
)
if
category1
~=
nil
then
e1
:
SetCategory
(
category1
)
end
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
local
e2
=
e1
:
Clone
()
e1
:
SetDescription
(
hint1
)
e2
:
SetDescription
(
hint2
)
e1
:
SetCategory
(
category1
or
0
)
e2
:
SetCategory
(
category2
or
0
)
if
condition
~=
nil
then
e1
:
SetCondition
(
condition
)
e2
:
SetCondition
(
condition
)
end
if
cost
~=
nil
then
e1
:
SetCost
(
cost
)
e2
:
SetCost
(
cost
)
end
if
target1
~=
nil
then
e1
:
SetTarget
(
target1
)
end
e1
:
SetOperation
(
operation1
)
card
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
hint2
)
if
category2
~=
nil
then
e2
:
SetCategory
(
category2
)
else
e2
:
SetCategory
(
0
)
end
if
target2
~=
nil
then
e2
:
SetTarget
(
target2
)
end
e1
:
SetOperation
(
operation1
)
e2
:
SetOperation
(
operation2
)
card
:
RegisterEffect
(
e1
)
card
:
RegisterEffect
(
e2
)
return
e1
,
e2
end
...
...
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