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
4
Issues
4
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
6541b4c1
Commit
6541b4c1
authored
May 05, 2021
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/5/5 重写了花牙的“回合结束时返回卡组”的效果,修正执念之龙的提示错误
parent
f845cf09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
26 deletions
+26
-26
script/c120170017.lua
script/c120170017.lua
+1
-1
script/c120170029.lua
script/c120170029.lua
+13
-13
script/c120170031.lua
script/c120170031.lua
+6
-6
script/c120170048.lua
script/c120170048.lua
+6
-6
No files found.
script/c120170017.lua
View file @
6541b4c1
...
...
@@ -43,7 +43,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
cm
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
script/c120170029.lua
View file @
6541b4c1
...
...
@@ -44,7 +44,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
local
c
=
e
:
GetHandler
()
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
1
))
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
m
,
aux
.
Stringid
(
m
,
1
))
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -55,25 +55,25 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
cm
.
tdop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e
1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e
1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e
1
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e
2
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e
2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e
2
)
end
end
end
end
function
cm
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
tc
:
GetReasonEffect
():
GetHandler
()
==
e
:
GetHandler
()
then
return
true
else
e
:
Reset
()
return
false
local
fids
=
{
tc
:
GetFlagEffectLabel
(
tc
,
0
)}
for
i
=
1
,
#
fids
do
if
fids
[
i
]
==
m
then
return
true
end
end
e
:
Reset
()
return
false
end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoDeck
(
e
:
GetLabelObject
(),
nil
,
1
,
REASON_EFFECT
)
...
...
script/c120170031.lua
View file @
6541b4c1
...
...
@@ -38,7 +38,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
1
))
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
m
,
aux
.
Stringid
(
m
,
1
))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -52,12 +52,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
tc
:
GetReasonEffect
():
GetHandler
()
==
e
:
GetHandler
()
then
return
true
else
e
:
Reset
()
return
false
local
fids
=
{
tc
:
GetFlagEffectLabel
(
tc
,
0
)}
for
i
=
1
,
#
fids
do
if
fids
[
i
]
==
m
then
return
true
end
end
e
:
Reset
()
return
false
end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoDeck
(
e
:
GetLabelObject
(),
nil
,
1
,
REASON_EFFECT
)
...
...
script/c120170048.lua
View file @
6541b4c1
...
...
@@ -32,7 +32,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
1
))
tc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
m
,
aux
.
Stringid
(
m
,
1
))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -46,12 +46,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
tc
:
GetReasonEffect
():
GetHandler
()
==
e
:
GetHandler
()
then
return
true
else
e
:
Reset
()
return
false
local
fids
=
{
tc
:
GetFlagEffectLabel
(
tc
,
0
)}
for
i
=
1
,
#
fids
do
if
fids
[
i
]
==
m
then
return
true
end
end
e
:
Reset
()
return
false
end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoDeck
(
e
:
GetLabelObject
(),
nil
,
1
,
REASON_EFFECT
)
...
...
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