Commit 799c138d authored by VanillaSalt's avatar VanillaSalt

Merge pull request #986 from sidschingis/patch-5

fix
parents c025854a c780b5b0
...@@ -129,11 +129,12 @@ function Auxiliary.AddSynchroProcedure(c,f1,f2,ct) ...@@ -129,11 +129,12 @@ function Auxiliary.AddSynchroProcedure(c,f1,f2,ct)
e1:SetValue(SUMMON_TYPE_SYNCHRO) e1:SetValue(SUMMON_TYPE_SYNCHRO)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function Auxiliary.SynCondition(f1,f2,minc,maxc) function Auxiliary.SynCondition(f1,f2,minct,maxc)
return function(e,c,smat,mg) return function(e,c,smat,mg)
if c==nil then return true end if c==nil then return true end
local ft=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE) local ft=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)
local ct=-ft local ct=-ft
local minc=minct
if minc<ct then minc=ct end if minc<ct then minc=ct end
if maxc<minc then return false end if maxc<minc then return false end
if smat and smat:IsType(TYPE_TUNER) and (not f1 or f1(smat)) then if smat and smat:IsType(TYPE_TUNER) and (not f1 or f1(smat)) then
......
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