Commit a32f70f1 authored by wind2009's avatar wind2009

update Auxiliary.FusionEffectUltimateOperation

0414de1b198ac889af7b98d09835ad467e5f0ecc
parent b35ddeaf
...@@ -1555,6 +1555,9 @@ function Auxiliary.FusionEffectUltimateTarget(params) ...@@ -1555,6 +1555,9 @@ function Auxiliary.FusionEffectUltimateTarget(params)
end end
end end
end end
---
---@param params table
---@return function
function Auxiliary.FusionEffectUltimateOperation(params) function Auxiliary.FusionEffectUltimateOperation(params)
return function(e,tp,eg,ep,ev,re,r,rp) return function(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
...@@ -1592,7 +1595,7 @@ function Auxiliary.FusionEffectUltimateOperation(params) ...@@ -1592,7 +1595,7 @@ function Auxiliary.FusionEffectUltimateOperation(params)
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
mg2=fgroup(ce,e,tp):Filter(Auxiliary.FusionEffectUltimateMatFilter,nil,e,tp,params.mat_filter) mg2=fgroup(ce,e,tp):Filter(Auxiliary.FusionEffectUltimateMatFilter,nil,e,tp,params.mat_filter)
local mf=ce:GetValue() local mf=ce:GetValue()
...@@ -1642,7 +1645,7 @@ function Auxiliary.FusionEffectUltimateOperation(params) ...@@ -1642,7 +1645,7 @@ function Auxiliary.FusionEffectUltimateOperation(params)
params.mat_operation(mat1) params.mat_operation(mat1)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,params.spsummon_nocheck,false,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,params.spsummon_nocheck,false,POS_FACEUP)
elseif ce then elseif ce and mg2 then
local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,gc,chkf) local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,gc,chkf)
local fop=ce:GetOperation() local fop=ce:GetOperation()
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
......
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