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
71bf2c84
Commit
71bf2c84
authored
Sep 05, 2020
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020/9/5 新增:念动力2只新怪兽(卡名暂译)
parent
584c1066
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
2 deletions
+47
-2
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120110009.lua
script/c120110009.lua
+1
-1
script/c120110014.lua
script/c120110014.lua
+2
-1
script/c120140030.lua
script/c120140030.lua
+44
-0
No files found.
RD Patch.cdb
View file @
71bf2c84
No preview for this file type
script/c120110009.lua
View file @
71bf2c84
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
operation
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
--
Atk & Def Down
--
To Hand
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToHand
()
return
c
:
IsLevelAbove
(
5
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAbleToHand
()
end
end
...
...
script/c120110014.lua
View file @
71bf2c84
...
@@ -15,7 +15,8 @@ function cm.initial_effect(c)
...
@@ -15,7 +15,8 @@ function cm.initial_effect(c)
end
end
--Activate
--Activate
function
cm
.
confilter
(
c
,
tp
)
function
cm
.
confilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
==
Duel
.
GetAttackTarget
()
and
c
:
IsRace
(
RACE_DRAGON
)
return
c
:
GetPreviousControler
()
==
tp
and
c
==
Duel
.
GetAttackTarget
()
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_DRAGON
)
~=
0
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
confilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
cm
.
confilter
,
1
,
nil
,
tp
)
...
...
script/c120140030.lua
0 → 100644
View file @
71bf2c84
local
m
=
120140030
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"工程·电子路径"
function
cm
.
initial_effect
(
c
)
--Damage
local
e1
=
Effect
.
CreateEffect
(
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
)
end
--Damage
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetLP
(
1
-
tp
)
-
Duel
.
GetLP
(
tp
)
>=
1000
and
c
:
IsAttackable
()
and
not
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
not
c
:
IsHasEffect
(
EFFECT_CANNOT_ATTACK
)
and
not
c
:
IsHasEffect
(
EFFECT_CANNOT_DIRECT_ATTACK
)
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
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
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