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
459443d5
Commit
459443d5
authored
Jul 23, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/7/23 新增:燃烧羽翼,统一转移攻击对象的写法
parent
c0a9b2ae
Pipeline
#28614
passed with stages
in 7 minutes and 32 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
23 deletions
+53
-23
RD Patch.cdb
RD Patch.cdb
+0
-0
script/RDAction.lua
script/RDAction.lua
+9
-1
script/RDCondition.lua
script/RDCondition.lua
+6
-0
script/c120120047.lua
script/c120120047.lua
+2
-12
script/c120235060.lua
script/c120235060.lua
+2
-10
script/c120264061.lua
script/c120264061.lua
+34
-0
No files found.
RD Patch.cdb
View file @
459443d5
No preview for this file type
script/RDAction.lua
View file @
459443d5
...
...
@@ -388,7 +388,7 @@ function RushDuel.RevealDeckTopAndCanSelectGroup(player, count, desc, hint, filt
Duel
.
ConfirmDecktop
(
player
,
count
)
local
g
=
Duel
.
GetDecktopGroup
(
player
,
count
)
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
Filter
(
filter
,
nil
)
local
mg
=
g
:
Filter
(
filter
,
nil
)
if
mg
:
CheckSubGroup
(
check
,
min
,
max
,
...
)
then
::
cancel
::
if
Duel
.
SelectYesNo
(
player
,
desc
)
then
...
...
@@ -448,6 +448,14 @@ function RushDuel.CanSetCard(player, desc, card, effect, break_effect)
end
return
false
end
-- 操作: 改变攻击对象
function
RushDuel
.
ChangeAttackTarget
(
card
,
player
,
target
)
local
g
=
card
:
GetAttackableTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
player
,
HINTMSG_ATTACKTARGET
)
local
sg
=
g
:
Select
(
player
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
return
tc
and
(
tc
==
target
or
Duel
.
ChangeAttackTarget
(
tc
))
end
-- 可选操作: 抽卡
function
RushDuel
.
CanDraw
(
desc
,
player
,
count
,
break_effect
)
...
...
script/RDCondition.lua
View file @
459443d5
...
...
@@ -196,6 +196,12 @@ function RushDuel.IsCanDoubleTribute(card, target)
return
false
end
-- 条件: 可以改变攻击对象
function
RushDuel
.
IsCanChangeAttackTarget
(
card
)
local
g
=
card
:
GetAttackableTarget
()
return
g
:
GetCount
()
>
1
end
-- 条件: 玩家是否能够使用特定种族进行攻击
function
RushDuel
.
IsPlayerCanUseRaceAttack
(
player
,
race
)
if
Duel
.
IsPlayerAffectedByEffect
(
player
,
EFFECT_PLAYER_CANNOT_ATTACK
)
then
...
...
script/c120120047.lua
View file @
459443d5
...
...
@@ -16,18 +16,8 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
ag
=
Duel
.
GetAttacker
():
GetAttackableTarget
()
return
ag
:
GetCount
()
>
1
end
if
chk
==
0
then
return
RD
.
IsCanChangeAttackTarget
(
Duel
.
GetAttacker
())
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ag
=
Duel
.
GetAttacker
():
GetAttackableTarget
()
local
at
=
Duel
.
GetAttackTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTACKTARGET
)
local
g
=
ag
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
tc
~=
at
then
Duel
.
ChangeAttackTarget
(
tc
)
end
RD
.
ChangeAttackTarget
(
Duel
.
GetAttacker
(),
tp
,
Duel
.
GetAttackTarget
())
end
\ No newline at end of file
script/c120235060.lua
View file @
459443d5
...
...
@@ -24,18 +24,10 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
ag
=
Duel
.
GetAttacker
():
GetAttackableTarget
()
return
ag
:
GetCount
()
>
1
end
if
chk
==
0
then
return
RD
.
IsCanChangeAttackTarget
(
Duel
.
GetAttacker
())
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ag
=
Duel
.
GetAttacker
():
GetAttackableTarget
()
local
at
=
Duel
.
GetAttackTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTACKTARGET
)
local
g
=
ag
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
(
tc
==
at
or
Duel
.
ChangeAttackTarget
(
tc
))
then
if
RD
.
ChangeAttackTarget
(
Duel
.
GetAttacker
(),
tp
,
Duel
.
GetAttackTarget
())
then
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
mg
:
CheckSubGroup
(
cm
.
check
,
2
,
2
)
then
RD
.
CanSelectAndDoAction
(
aux
.
Stringid
(
m
,
1
),
HINTMSG_DESTROY
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
function
(
sg
)
...
...
script/c120264061.lua
0 → 100644
View file @
459443d5
local
m
=
120264061
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"燃烧羽翼"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
return
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsLevelAbove
(
5
)
and
Duel
.
GetAttackTarget
()
~=
nil
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
RD
.
SelectAndDoAction
(
aux
.
Stringid
(
m
,
1
),
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
function
(
g
)
RD
.
AttachAtkDef
(
e
,
g
:
GetFirst
(),
1000
,
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
local
tc
=
Duel
.
GetAttacker
()
if
RD
.
IsCanChangeAttackTarget
(
tc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
RD
.
ChangeAttackTarget
(
tc
,
tp
,
Duel
.
GetAttackTarget
())
end
end
)
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