Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
6
Merge Requests
6
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-scripts-888
Commits
7d5f96eb
Commit
7d5f96eb
authored
Mar 25, 2023
by
mercury233
Committed by
mercury233
Mar 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 魔界造車-GT19
parent
2ba1c266
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
31 deletions
+3
-31
c16769305.lua
c16769305.lua
+1
-16
c62899696.lua
c62899696.lua
+0
-13
constant.lua
constant.lua
+2
-2
No files found.
c16769305.lua
View file @
7d5f96eb
...
...
@@ -60,15 +60,8 @@ function s.syncon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
filter
(
tc
,
c
,
tp
)
if
not
tc
:
IsFaceup
()
or
not
tc
:
IsCanBeSynchroMaterial
()
then
return
false
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_SYNCHRO_MATERIAL
)
e1
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e1
,
true
)
local
mg
=
Group
.
FromCards
(
c
,
tc
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
e1
:
Reset
()
return
res
return
Duel
.
IsExistingMatchingCard
(
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
end
function
s
.
synfilter
(
c
,
mg
)
return
c
:
IsSynchroSummonable
(
nil
,
mg
)
...
...
@@ -86,20 +79,12 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_SYNCHRO_MATERIAL
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
mg
=
Group
.
FromCards
(
c
,
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
mg
)
local
sc
=
g
:
GetFirst
()
if
sc
then
Duel
.
SynchroSummon
(
tp
,
sc
,
nil
,
mg
)
else
e1
:
Reset
()
end
end
end
c62899696.lua
View file @
7d5f96eb
...
...
@@ -34,15 +34,9 @@ end
function
c62899696
.
filter
(
tc
,
c
,
tp
)
if
tc
:
IsFacedown
()
or
not
tc
:
IsCanBeSynchroMaterial
()
then
return
false
end
c
:
RegisterFlagEffect
(
62899696
,
0
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_SYNCHRO_MATERIAL
)
e1
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e1
,
true
)
local
mg
=
Group
.
FromCards
(
c
,
tc
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c62899696
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
c
:
ResetFlagEffect
(
62899696
)
e1
:
Reset
()
return
res
end
function
c62899696
.
synfilter
(
c
,
mg
)
...
...
@@ -61,12 +55,6 @@ function c62899696.spop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
c
:
RegisterFlagEffect
(
62899696
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_SYNCHRO_MATERIAL
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
mg
=
Group
.
FromCards
(
c
,
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62899696
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
mg
)
...
...
@@ -75,7 +63,6 @@ function c62899696.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SynchroSummon
(
tp
,
sc
,
nil
,
mg
)
else
c
:
ResetFlagEffect
(
62899696
)
e1
:
Reset
()
end
end
end
constant.lua
View file @
7d5f96eb
...
...
@@ -492,8 +492,8 @@ EFFECT_TOSS_COIN_REPLACE =220 --重新抛硬币
EFFECT_TOSS_DICE_REPLACE
=
221
--重新掷骰子
EFFECT_FUSION_MATERIAL
=
230
--指定融合素材的條件
EFFECT_CHAIN_MATERIAL
=
231
--玩家受到連鎖物質的效果影響
EFFECT_EXTRA_SYNCHRO_MATERIAL
=
232
--
可以当作
同调素材
EFFECT_XYZ_MATERIAL
=
233
--
可以当作
超量素材
EFFECT_EXTRA_SYNCHRO_MATERIAL
=
232
--
在手卡或对方场上也可以当作自己的
同调素材
EFFECT_XYZ_MATERIAL
=
233
--
在对方场上也可以当作自己的
超量素材
EFFECT_FUSION_SUBSTITUTE
=
234
--代替融合素材
EFFECT_CANNOT_BE_FUSION_MATERIAL
=
235
--不能做融合素材
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
=
236
--不能做同调素材
...
...
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