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
dd48bcb4
Commit
dd48bcb4
authored
Jul 28, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/7/28 bug修复
parent
68400107
Pipeline
#28751
passed with stages
in 7 minutes and 59 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
script/RDFunction.lua
script/RDFunction.lua
+11
-0
script/c120263001.lua
script/c120263001.lua
+1
-2
script/c120264000.lua
script/c120264000.lua
+1
-2
No files found.
script/RDFunction.lua
View file @
dd48bcb4
...
@@ -132,6 +132,17 @@ function RushDuel.GetBaseAttackOnTribute(c)
...
@@ -132,6 +132,17 @@ function RushDuel.GetBaseAttackOnTribute(c)
return
math.max
(
0
,
atk
)
return
math.max
(
0
,
atk
)
end
end
-- 获取被破坏时的基础攻击力
function
RushDuel
.
GetBaseAttackOnDestroy
(
c
)
local
atk
if
c
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
c
:
IsReason
(
REASON_DESTROY
)
then
atk
=
c
.
maximum_attack
else
atk
=
c
:
GetTextAttack
()
end
return
math.max
(
0
,
atk
)
end
-- 让玩家选择卡片组的 min ~ max 张卡,可以取消
-- 让玩家选择卡片组的 min ~ max 张卡,可以取消
function
RushDuel
.
SelectGroup
(
player
,
group
,
min
,
max
)
function
RushDuel
.
SelectGroup
(
player
,
group
,
min
,
max
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
...
...
script/c120263001.lua
View file @
dd48bcb4
...
@@ -28,8 +28,7 @@ end
...
@@ -28,8 +28,7 @@ end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
if
tc
then
if
tc
then
local
dam
=
tc
:
GetBaseAttack
()
local
dam
=
RD
.
GetBaseAttackOnDestroy
(
tc
)
if
dam
<
0
then
dam
=
0
end
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
...
...
script/c120264000.lua
View file @
dd48bcb4
...
@@ -43,8 +43,7 @@ end
...
@@ -43,8 +43,7 @@ end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
if
tc
then
if
tc
then
local
dam
=
tc
:
GetBaseAttack
()
local
dam
=
RD
.
GetBaseAttackOnDestroy
(
tc
)
if
dam
<
0
then
dam
=
0
end
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
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