Commit a8aac4b4 authored by CubeRuler's avatar CubeRuler

fixed

parent 97f28df1
...@@ -30,12 +30,14 @@ function cm.IsLinkZoneOver(count) ...@@ -30,12 +30,14 @@ function cm.IsLinkZoneOver(count)
for i=0,4 do for i=0,4 do
if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
elseif (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then end
if (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
end end
end end
return flag>=count return flag>=count
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return cm.IsLinkZoneOver(3) return cm.IsLinkZoneOver(3)
end end
......
...@@ -35,12 +35,14 @@ function cm.IsLinkZoneOver(count) ...@@ -35,12 +35,14 @@ function cm.IsLinkZoneOver(count)
for i=0,4 do for i=0,4 do
if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
elseif (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then end
if (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
end end
end end
return flag>=count return flag>=count
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return c:IsType(TYPE_LINK) and c:IsSetCard(0x562) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_LINK) and c:IsSetCard(0x562) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -57,12 +57,14 @@ function cm.IsLinkZoneOver(count) ...@@ -57,12 +57,14 @@ function cm.IsLinkZoneOver(count)
for i=0,4 do for i=0,4 do
if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
elseif (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then end
if (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
end end
end end
return flag>=count return flag>=count
end end
function cm.hspcon(e,c) function cm.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
......
...@@ -114,12 +114,14 @@ function cm.IsLinkZoneOver(count) ...@@ -114,12 +114,14 @@ function cm.IsLinkZoneOver(count)
for i=0,4 do for i=0,4 do
if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
elseif (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then end
if (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
end end
end end
return flag>=count return flag>=count
end end
function cm.tgcheck(c) function cm.tgcheck(c)
return c:IsLocation(LOCATION_SZONE) or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsFaceup()) return c:IsLocation(LOCATION_SZONE) or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsFaceup())
end end
......
...@@ -125,12 +125,14 @@ function cm.IsLinkZoneOver(count) ...@@ -125,12 +125,14 @@ function cm.IsLinkZoneOver(count)
for i=0,4 do for i=0,4 do
if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then if (Duel.GetLinkedZone(0)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
elseif (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then end
if (Duel.GetLinkedZone(1)&((2^i)<<0))~=0 then
flag=flag+1 flag=flag+1
end end
end end
return flag>=count return flag>=count
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return c:IsSetCard(0x562) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x562) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
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