Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Vury Leo
pre-release-database-cdb
Commits
968e6008
You need to sign in or sign up before continuing.
Commit
968e6008
authored
May 31, 2025
by
Vury Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve type hint
parent
45c59fe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
script/procedure.lua
script/procedure.lua
+11
-4
No files found.
script/procedure.lua
View file @
968e6008
...
...
@@ -2503,7 +2503,10 @@ function FusionSpell.GetSummonTarget(
pre_select_mat_opponent_location
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
sg
=
Duel
.
IsExistingMatchingCard
(
FusionSpell
.
SummonTargetFilter
,
tp
,
fuslocation
,
0
,
1
,
nil
,
fusfilter
,
matfilter
,
e
,
tp
,
pre_select_mat_location
,
mat_operation_code_map
,
post_select_mat_location
,
additional_fcheck
,
sumtype
,
sumpos
,
pre_select_mat_opponent_location
)
local
sg
=
Duel
.
IsExistingMatchingCard
(
FusionSpell
.
SummonTargetFilter
,
tp
,
fuslocation
,
0
,
1
,
nil
,
--- FusionSpell.SummonTargetFilter param
fusfilter
,
matfilter
,
e
,
tp
,
pre_select_mat_location
,
mat_operation_code_map
,
post_select_mat_location
,
additional_fcheck
,
sumtype
,
sumpos
,
pre_select_mat_opponent_location
)
if
sg
==
true
then
return
true
end
...
...
@@ -2549,7 +2552,10 @@ function FusionSpell.GetSummonOperation(
stage_x_operation
,
pre_select_mat_opponent_location
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
FusionSpell
.
SummonTargetFilter
,
tp
,
fuslocation
,
0
,
nil
,
fusfilter
,
matfilter
,
e
,
tp
,
pre_select_mat_location
,
mat_operation_code_map
,
post_select_mat_location
,
additional_fcheck
,
sumtype
,
sumpos
,
pre_select_mat_opponent_location
)
local
sg
=
Duel
.
GetMatchingGroup
(
FusionSpell
.
SummonTargetFilter
,
tp
,
fuslocation
,
0
,
nil
,
--- FusionSpell.SummonTargetFilter param
fusfilter
,
matfilter
,
e
,
tp
,
pre_select_mat_location
,
mat_operation_code_map
,
post_select_mat_location
,
additional_fcheck
,
sumtype
,
sumpos
,
pre_select_mat_opponent_location
)
--- check for chain material targets
local
ce_sgs
=
{}
local
can_chain_material
=
false
...
...
@@ -2644,6 +2650,7 @@ function FusionSpell.GetSummonOperation(
material_effect
=
material_effects
[
1
]
else
-- more than one effect. ask player to choose from one.
-- TODO: let user select them in group
material_effect
=
FusionSpell
.
MultiMaterialEffectPrompt
(
material_effects
,
tp
,
e
)
end
local
fusion_operation
=
nil
...
...
@@ -3028,10 +3035,10 @@ function FusionSpell.GetExtraMaterialEffect(c,tp,summon_card)
end
-- when a target card can be summoned by multiple effect, ask for which to apply.
---@return
true|
Effect
---@return Effect
function
FusionSpell
.
MultiFusionEffectPrompt
(
effects
,
tp
)
local
ops
=
{}
for
i
,
eff
in
ipairs
(
effects
)
do
for
_
,
eff
in
ipairs
(
effects
)
do
table.insert
(
ops
,
eff
:
GetDescription
())
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
...
...
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