Commit 08cbb6d9 authored by DailyShana's avatar DailyShana

clean up

parent d2241b7a
...@@ -2114,13 +2114,12 @@ function Auxiliary.ExceptThisCard(e) ...@@ -2114,13 +2114,12 @@ function Auxiliary.ExceptThisCard(e)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then return c else return nil end if c:IsRelateToEffect(e) then return c else return nil end
end end
--filter for face-up link monster on field
function Auxiliary.FaceupLinkMonsterFilter(c)
return c:IsFaceup() and c:IsType(TYPE_LINK)
end
--used for multi-linked zone(zone linked by two or more link monsters) --used for multi-linked zone(zone linked by two or more link monsters)
function Auxiliary.GetMultiLinkedZone(tp) function Auxiliary.GetMultiLinkedZone(tp)
local lg=Duel.GetMatchingGroup(Auxiliary.FaceupLinkMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local f=function(c)
return c:IsFaceup() and c:IsType(TYPE_LINK)
end
local lg=Duel.GetMatchingGroup(f,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local multi_linked_zone=0 local multi_linked_zone=0
local single_linked_zone=0 local single_linked_zone=0
for tc in aux.Next(lg) do for tc in aux.Next(lg) do
......
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