Commit 89303817 authored by Tianchenglipu's avatar Tianchenglipu

Update utility.lua

To prevent player from saying "No" to "Duel.SelectYesNo(tp,93)" for 2 times
parent 964b4c56
...@@ -1055,7 +1055,6 @@ function Auxiliary.FOperationCodeFunRep(code,f,minc,maxc,sub,insf) ...@@ -1055,7 +1055,6 @@ function Auxiliary.FOperationCodeFunRep(code,f,minc,maxc,sub,insf)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local mg2=g2:Select(tp,math.max(minc+offset,1),maxc+offset,nil) local mg2=g2:Select(tp,math.max(minc+offset,1),maxc+offset,nil)
mg1:Merge(mg2) mg1:Merge(mg2)
end
--if gc fits both, should allow an extra material that fits code but doesn't fit f --if gc fits both, should allow an extra material that fits code but doesn't fit f
if v2 then if v2 then
g:Sub(mg1) g:Sub(mg1)
...@@ -1066,6 +1065,7 @@ function Auxiliary.FOperationCodeFunRep(code,f,minc,maxc,sub,insf) ...@@ -1066,6 +1065,7 @@ function Auxiliary.FOperationCodeFunRep(code,f,minc,maxc,sub,insf)
mg1:Merge(mg4) mg1:Merge(mg4)
end end
end end
end
Duel.SetFusionMaterial(mg1) Duel.SetFusionMaterial(mg1)
else else
g:RemoveCard(gc) g:RemoveCard(gc)
...@@ -1169,7 +1169,6 @@ function Auxiliary.FOperationFunFunRep(f1,f2,minc,maxc,insf) ...@@ -1169,7 +1169,6 @@ function Auxiliary.FOperationFunFunRep(f1,f2,minc,maxc,insf)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local mg2=g2:Select(tp,math.max(minc+offset,1),maxc+offset,nil) local mg2=g2:Select(tp,math.max(minc+offset,1),maxc+offset,nil)
mg1:Merge(mg2) mg1:Merge(mg2)
end
--if gc fits both, should allow an extra material that fits f1 but doesn't fit f2 --if gc fits both, should allow an extra material that fits f1 but doesn't fit f2
if v2 then if v2 then
g:Sub(mg1) g:Sub(mg1)
...@@ -1180,6 +1179,7 @@ function Auxiliary.FOperationFunFunRep(f1,f2,minc,maxc,insf) ...@@ -1180,6 +1179,7 @@ function Auxiliary.FOperationFunFunRep(f1,f2,minc,maxc,insf)
mg1:Merge(mg4) mg1:Merge(mg4)
end end
end end
end
Duel.SetFusionMaterial(mg1) Duel.SetFusionMaterial(mg1)
else else
g:RemoveCard(gc) g:RemoveCard(gc)
......
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