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
3
Issues
3
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
41259ddf
Commit
41259ddf
authored
Jan 29, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/1/29 调整:不能攻击的怪兽不能赋予连击效果
parent
545419fa
Pipeline
#19823
passed with stages
in 5 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
script/RDCondition.lua
script/RDCondition.lua
+7
-1
No files found.
script/RDCondition.lua
View file @
41259ddf
...
...
@@ -77,6 +77,9 @@ function RushDuel.IsCanAttachPierce(card)
end
-- 条件: 可否赋予效果 - 多次攻击
function
RushDuel
.
IsCanAttachExtraAttack
(
card
,
value
)
if
card
:
IsHasEffect
(
EFFECT_CANNOT_ATTACK
)
then
return
false
end
local
values
=
RushDuel
.
GetEffectValues
(
card
,
EFFECT_EXTRA_ATTACK
)
for
_
,
val
in
ipairs
(
values
)
do
if
val
>=
value
then
...
...
@@ -87,6 +90,9 @@ function RushDuel.IsCanAttachExtraAttack(card, value)
end
-- 条件: 可否赋予效果 - 多次攻击 (怪兽限定)
function
RushDuel
.
IsCanAttachExtraAttackMonster
(
card
,
value
)
if
card
:
IsHasEffect
(
EFFECT_CANNOT_ATTACK
)
then
return
false
end
local
values
=
RushDuel
.
GetEffectValues
(
card
,
EFFECT_EXTRA_ATTACK_MONSTER
)
for
_
,
val
in
ipairs
(
values
)
do
if
val
>=
value
then
...
...
@@ -97,7 +103,7 @@ function RushDuel.IsCanAttachExtraAttackMonster(card, value)
end
-- 条件: 可否赋予效果 - 全体攻击
function
RushDuel
.
IsCanAttachAttackAll
(
card
,
value
)
return
true
return
not
card
:
IsHasEffect
(
EFFECT_CANNOT_ATTACK
)
end
-- 条件: 可否赋予效果 - 双重解放
function
RushDuel
.
IsCanAttachDoubleTribute
(
card
,
value
)
...
...
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