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
13762787
Commit
13762787
authored
Dec 20, 2021
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/12/20 根据konami的调整修改处理
parent
5afa2dbe
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
10 deletions
+36
-10
script/c120135002.lua
script/c120135002.lua
+4
-0
script/c120140037.lua
script/c120140037.lua
+1
-1
script/c120170033.lua
script/c120170033.lua
+4
-0
script/c120181011.lua
script/c120181011.lua
+4
-0
script/c120183041.lua
script/c120183041.lua
+1
-2
script/c120199025.lua
script/c120199025.lua
+2
-1
script/c120203030.lua
script/c120203030.lua
+1
-1
script/special.lua
script/special.lua
+19
-5
No files found.
script/c120135002.lua
View file @
13762787
...
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -15,6 +16,9 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsHasEffect
(
EFFECT_UNRELEASABLE_SUM
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
script/c120140037.lua
View file @
13762787
...
...
@@ -37,6 +37,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tdfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
RushDuel
.
SendtoDeckTop
(
g
:
GetFirst
(),
tp
,
REASON_EFFECT
)
end
end
\ No newline at end of file
script/c120170033.lua
View file @
13762787
...
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -15,6 +16,9 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsPublic
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsHasEffect
(
EFFECT_UNRELEASABLE_SUM
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
...
...
script/c120181011.lua
View file @
13762787
...
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -15,6 +16,9 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsHasEffect
(
EFFECT_UNRELEASABLE_SUM
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
script/c120183041.lua
View file @
13762787
...
...
@@ -45,8 +45,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ConfirmDecktop
(
1
-
tp
,
1
)
RushDuel
.
SendtoDeckTop
(
g
:
GetFirst
(),
tp
,
REASON_EFFECT
)
if
e
:
GetLabel
()
==
1
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
cm
.
tdfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
...
...
script/c120199025.lua
View file @
13762787
...
...
@@ -19,7 +19,8 @@ function cm.confilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
])
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
not
e
:
GetHandler
():
IsHasEffect
(
EFFECT_UNRELEASABLE_SUM
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
...
...
script/c120203030.lua
View file @
13762787
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
filter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
return
c
:
Is
Previous
Controler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
1
-
tp
)
...
...
script/special.lua
View file @
13762787
...
...
@@ -314,9 +314,23 @@ function RushDuel.SelectEffectOperation(eff1hint,eff1con,eff1op,eff2hint,eff2con
end
--Special Summon Count
function
RushDuel
.
GetSPCount
(
tp
,
max
)
local
ct
=
Duel
.
GetMZoneCount
(
tp
)
if
ct
<
1
then
return
0
end
if
ct
>
max
then
ct
=
max
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
return
ct
local
ct
=
Duel
.
GetMZoneCount
(
tp
)
if
ct
<
1
then
return
0
end
if
ct
>
max
then
ct
=
max
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
return
ct
end
--Send To Deck Top (Maximun)
function
RushDuel
.
SendtoDeckTop
(
c
,
rp
,
reason
)
if
c
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
c
:
GetOverlayCount
()
>
0
then
local
g
=
c
:
GetOverlayGroup
()
local
ct
=
g
:
GetCount
()
+
1
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
reason
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
reason
)
Duel
.
SortDecktop
(
rp
,
c
:
GetControler
(),
ct
)
Duel
.
ConfirmDecktop
(
c
:
GetControler
(),
ct
)
else
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
reason
)
Duel
.
ConfirmDecktop
(
c
:
GetControler
(),
1
)
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