Commit 36c3da2d authored by VanillaSalt's avatar VanillaSalt

fix

parent e82b190e
...@@ -598,8 +598,8 @@ function Auxiliary.FConditionCodeFun(code,f,cc,sub,insf) ...@@ -598,8 +598,8 @@ function Auxiliary.FConditionCodeFun(code,f,cc,sub,insf)
return function(e,g,gc,chkf) return function(e,g,gc,chkf)
if g==nil then return insf end if g==nil then return insf end
if gc then if gc then
if gc:IsCode(code) or (sub and gc:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) then if gc:IsCode(code) or (sub and gc:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) and g:IsExists(f,cc,gc) then
return g:IsExists(f,cc,gc) return true
elseif f(gc) then elseif f(gc) then
local g1=Group.CreateGroup() local g2=Group.CreateGroup() local g1=Group.CreateGroup() local g2=Group.CreateGroup()
local tc=g:GetFirst() local tc=g:GetFirst()
...@@ -633,7 +633,7 @@ end ...@@ -633,7 +633,7 @@ end
function Auxiliary.FOperationCodeFun(code,f,cc,sub,insf) function Auxiliary.FOperationCodeFun(code,f,cc,sub,insf)
return function(e,tp,eg,ep,ev,re,r,rp,gc,chkf) return function(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
if gc then if gc then
if gc:IsCode(code) or (sub and gc:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) then if gc:IsCode(code) or (sub and gc:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) and g:IsExists(f,cc,gc) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g1=eg:FilterSelect(tp,f,cc,cc,gc) local g1=eg:FilterSelect(tp,f,cc,cc,gc)
Duel.SetFusionMaterial(g1) Duel.SetFusionMaterial(g1)
......
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