Commit bdf41d11 authored by Vury Leo's avatar Vury Leo

Merge branch 'master' into new-fusion

parents 91e21b6c e4f32a5e
Pipeline #37026 failed with stages
in 3 minutes and 16 seconds
...@@ -2700,7 +2700,7 @@ function FusionSpell.GetSummonOperation( ...@@ -2700,7 +2700,7 @@ function FusionSpell.GetSummonOperation(
--For each group, let user select the material that apply the extra material effect --For each group, let user select the material that apply the extra material effect
for material_effect,grouped_materials in pairs(material_grouped_by_extra_material_effect) do for material_effect,grouped_materials in pairs(material_grouped_by_extra_material_effect) do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,material_effect:GetDescription())
local materials_to_apply=grouped_materials:Select(tp,0,#grouped_materials,nil) local materials_to_apply=grouped_materials:Select(tp,0,#grouped_materials,nil)
local rest_materials=grouped_materials-materials_to_apply local rest_materials=grouped_materials-materials_to_apply
if #rest_materials>0 then if #rest_materials>0 then
...@@ -2729,7 +2729,7 @@ function FusionSpell.GetSummonOperation( ...@@ -2729,7 +2729,7 @@ function FusionSpell.GetSummonOperation(
end end
-- mark effect as used once. if count limit reached, reset the effect -- mark effect as used once. if count limit reached, reset the effect
for effect,_ in ipairs(applied_extra_effects) do for effect,_ in pairs(applied_extra_effects) do
effect:UseCountLimit(tp) effect:UseCountLimit(tp)
if effect:CheckCountLimit(tp)==false then if effect:CheckCountLimit(tp)==false then
effect:Reset() effect:Reset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment