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
3
Merge Requests
3
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
2bf900bb
Commit
2bf900bb
authored
May 25, 2025
by
wind2009
Committed by
GitHub
May 25, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 多層融合 (#2948)
parent
b5da7d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
29 deletions
+30
-29
c58570206.lua
c58570206.lua
+30
-29
No files found.
c58570206.lua
View file @
2bf900bb
...
@@ -85,37 +85,38 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,37 +85,38 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
not
tc
then
return
end
if
tc
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
ce
and
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
ce
and
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
aux
.
FCheckAdditional
=
s
.
fcheck1
(
ct
)
aux
.
FCheckAdditional
=
s
.
fcheck1
(
ct
)
aux
.
FGoalCheckAdditional
=
s
.
fcheck2
aux
.
FGoalCheckAdditional
=
s
.
fcheck2
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
FCheckAdditional
=
nil
aux
.
FGoalCheckAdditional
=
nil
aux
.
FGoalCheckAdditional
=
nil
tc
:
SetMaterial
(
mat1
)
tc
:
SetMaterial
(
mat1
)
local
rg
=
mat1
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
local
rg
=
mat1
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
mat1
:
Sub
(
rg
)
mat1
:
Sub
(
rg
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
elseif
ce
then
elseif
ce
then
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
end
local
exmat
=
tc
:
GetMaterial
():
Filter
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_EXTRA
)
local
exmat
=
tc
:
GetMaterial
():
Filter
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_EXTRA
)
if
#
exmat
>
0
then
if
#
exmat
>
0
then
local
dam
=
exmat
:
GetSum
(
Card
.
GetAttack
)
local
dam
=
exmat
:
GetSum
(
Card
.
GetAttack
)
local
lp
=
Duel
.
GetLP
(
tp
)
local
lp
=
Duel
.
GetLP
(
tp
)
if
lp
>=
dam
then
if
lp
>=
dam
then
Duel
.
SetLP
(
tp
,
lp
-
dam
)
Duel
.
SetLP
(
tp
,
lp
-
dam
)
else
else
Duel
.
SetLP
(
tp
,
0
)
Duel
.
SetLP
(
tp
,
0
)
end
end
end
Duel
.
SpecialSummonComplete
()
tc
:
CompleteProcedure
()
end
end
Duel
.
SpecialSummonComplete
()
tc
:
CompleteProcedure
()
aux
.
FCheckAdditional
=
nil
aux
.
FCheckAdditional
=
nil
aux
.
FGoalCheckAdditional
=
nil
aux
.
FGoalCheckAdditional
=
nil
end
end
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