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
5702bc9b
Commit
5702bc9b
authored
Dec 02, 2022
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022/12/2 更新效果调整
parent
80352ab5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
script/c120130017.lua
script/c120130017.lua
+4
-3
script/c120231025.lua
script/c120231025.lua
+3
-1
script/c120231043.lua
script/c120231043.lua
+5
-1
script/c120231059.lua
script/c120231059.lua
+4
-1
No files found.
script/c120130017.lua
View file @
5702bc9b
...
@@ -20,10 +20,11 @@ end
...
@@ -20,10 +20,11 @@ end
function
cm
.
adfilter
(
c
,
attr
)
function
cm
.
adfilter
(
c
,
attr
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
attr
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
attr
)
end
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
,
nil
,
Group
.
GetFirst
)
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
,
function
(
g
)
return
g
:
GetFirst
():
GetLevel
()
end
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cc
=
e
:
GetLabelObject
()
local
down
=
e
:
GetLabel
()
*-
300
local
down
=
cc
:
GetLevel
()
*-
300
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
adfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
cc
:
GetAttribute
())
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
adfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
cc
:
GetAttribute
())
g
:
ForEach
(
function
(
tc
)
g
:
ForEach
(
function
(
tc
)
RD
.
AttachAtkDef
(
e
,
tc
,
down
,
down
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
RD
.
AttachAtkDef
(
e
,
tc
,
down
,
down
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
script/c120231025.lua
View file @
5702bc9b
...
@@ -15,7 +15,9 @@ end
...
@@ -15,7 +15,9 @@ end
--Indes
--Indes
cm
.
indval
=
RD
.
ValueEffectIndesType
(
0
,
TYPE_TRAP
)
cm
.
indval
=
RD
.
ValueEffectIndesType
(
0
,
TYPE_TRAP
)
function
cm
.
filter
(
c
,
tp
)
function
cm
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
RD
.
IsCanAttachEffectIndes
(
c
,
tp
,
cm
.
indval
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
RD
.
IsCanAttachEffectIndes
(
c
,
tp
,
cm
.
indval
)
and
(
not
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
Duel
.
IsPlayerCanDraw
(
tp
,
1
))
end
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
cm
.
cost
=
RD
.
CostSendHandToGrave
(
Card
.
IsAbleToGraveAsCost
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120231043.lua
View file @
5702bc9b
...
@@ -26,7 +26,11 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,11 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
cm
.
cost
=
RD
.
CostSendHandToGrave
(
cm
.
costfilter
,
1
,
1
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGrave
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
local
ct
=
1
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
exfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
then
ct
=
2
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGrave
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
ct
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
...
...
script/c120231059.lua
View file @
5702bc9b
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
end
--Discard Deck
--Discard Deck
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
and
c
:
GetFlagEffect
(
m
)
==
0
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
...
@@ -34,6 +34,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,6 +34,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
cm
.
atkcon
)
e1
:
SetCondition
(
cm
.
atkcon
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
if
not
tc
:
IsImmuneToEffect
(
e
)
then
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
0
,
1
)
end
end
)
end
)
end
end
function
cm
.
atkcon
(
e
)
function
cm
.
atkcon
(
e
)
...
...
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