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
17065f48
Commit
17065f48
authored
Dec 01, 2020
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020/12/1 新增:压缩机虾,为MAX怪兽添加回手卡/卡组/除外时一起处理的效果
parent
5d35af33
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
1 deletion
+65
-1
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120150007.lua
script/c120150007.lua
+1
-1
script/c120150049.lua
script/c120150049.lua
+44
-0
script/special.lua
script/special.lua
+20
-0
No files found.
RD Patch.cdb
View file @
17065f48
No preview for this file type
script/c120150007.lua
View file @
17065f48
local
m
=
120150007
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"
10分激情
"
cm
.
name
=
"
干劲10足最大级!!!
"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c120150049.lua
0 → 100644
View file @
17065f48
local
m
=
120150049
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"收缩机虾"
function
cm
.
initial_effect
(
c
)
--Atk Down
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Atk Down
function
cm
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
2
,
nil
)
local
ct
=
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
SetLabel
(
ct
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
local
atk
=
e
:
GetLabel
()
*
300
local
tc
=
g
:
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
script/special.lua
View file @
17065f48
...
...
@@ -181,6 +181,14 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
e7
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e7
:
SetValue
(
1
)
c
:
RegisterEffect
(
e7
)
--Leave Field
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e8
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e8
:
SetOperation
(
RushDuel
.
LeaveOperation
)
c
:
RegisterEffect
(
e8
)
end
function
RushDuel
.
MaximumSummonFilter
(
c
,
e
,
tp
,
left_code
,
right_code
)
return
c
:
IsCode
(
left_code
,
right_code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
@@ -221,6 +229,18 @@ function RushDuel.MaximumMaterial(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
c
,
mg
)
Duel
.
MoveSequence
(
c
,
2
)
end
function
RushDuel
.
LeaveOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
loc
=
c
:
GetDestination
()
local
g
=
c
:
GetOverlayGroup
()
if
loc
==
LOCATION_HAND
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_RULE
)
elseif
loc
==
LOCATION_DECK
then
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_RULE
)
elseif
loc
==
LOCATION_REMOVED
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_RULE
)
end
end
--Def Check
function
RushDuel
.
IsHasDefense
(
c
)
return
c
:
IsDefenseAbove
(
0
)
...
...
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