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
206ebd80
Commit
206ebd80
authored
Jul 23, 2020
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020/7/23 新增:龙队后卫
parent
8b2095f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
3 deletions
+61
-3
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120130019.lua
script/c120130019.lua
+54
-0
script/c120130020.lua
script/c120130020.lua
+2
-1
script/c120130042.lua
script/c120130042.lua
+5
-2
No files found.
RD Patch.cdb
View file @
206ebd80
No preview for this file type
script/c120130019.lua
0 → 100644
View file @
206ebd80
local
m
=
120130019
local
list
=
{
120130001
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"龙队后卫"
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
list
[
1
])
--Position
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Atk Up
function
cm
.
confilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
list
[
1
])
end
function
cm
.
posfilter
(
c
,
tp
)
if
c
:
IsControler
(
tp
)
then
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsCode
(
list
[
1
])
and
c
:
IsCanChangePosition
()
else
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
end
end
function
cm
.
check
(
g
,
tp
)
return
g
:
GetClassCount
(
Card
.
GetControler
)
==
2
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
cm
.
check
,
2
,
2
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
2
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
if
not
g
:
CheckSubGroup
(
cm
.
check
,
2
,
2
,
tp
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
check
,
false
,
2
,
2
,
tp
)
Duel
.
HintSelection
(
sg
)
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_DEFENSE
)
end
\ No newline at end of file
script/c120130020.lua
View file @
206ebd80
local
m
=
120130020
local
list
=
{
120130001
}
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"龙队
强袭者
"
cm
.
name
=
"龙队
射手
"
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
list
[
1
])
--Atk Up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
script/c120130042.lua
View file @
206ebd80
...
...
@@ -13,8 +13,11 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
desfilter
(
c
,
tp
)
if
c
:
IsControler
(
tp
)
then
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
else
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
end
if
c
:
IsControler
(
tp
)
then
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
else
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
8
)
end
end
function
cm
.
check
(
g
,
tp
)
return
g
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
==
2
...
...
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