Commit a880e460 authored by DailyShana's avatar DailyShana

clean

parent 5e72a7bc
......@@ -30,7 +30,7 @@ c23187256.xyz_number=93
function c23187256.mfilter(c,xyzc)
return c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48) and c:GetOverlayCount()>0
end
function c23187256.xyzcheck(g,xyzc)
function c23187256.xyzcheck(g)
return g:GetClassCount(Card.GetRank)==1
end
function c23187256.filter(c,e,tp)
......
......@@ -32,6 +32,9 @@ function c28776350.initial_effect(c)
e3:SetOperation(c28776350.acop)
c:RegisterEffect(e3)
end
function c28776350.lcheck(g)
return g:GetClassCount(Card.GetRace)==1
end
function c28776350.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK
end
......@@ -48,9 +51,6 @@ end
function c28776350.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsCode(28776350) and bit.band(sumtype,SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK
end
function c28776350.lcheck(g,lc)
return g:GetClassCount(Card.GetRace)==1
end
function c28776350.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
......
......@@ -33,7 +33,7 @@ c43490025.xyz_number=0
function c43490025.mfilter(c,xyzc)
return c:IsXyzType(TYPE_XYZ) and not c:IsSetCard(0x48)
end
function c43490025.xyzcheck(g,xyzc)
function c43490025.xyzcheck(g)
return g:GetClassCount(Card.GetRank)==1
end
function c43490025.ovfilter(c)
......
......@@ -45,7 +45,7 @@ c52653092.xyz_number=0
function c52653092.mfilter(c,xyzc)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48)
end
function c52653092.xyzcheck(g,xyzc)
function c52653092.xyzcheck(g)
return g:GetClassCount(Card.GetRank)==1
end
function c52653092.cfilter(c)
......
......@@ -40,7 +40,7 @@ c57314798.xyz_number=100
function c57314798.mfilter(c,xyzc)
return c:IsSetCard(0x48) and c:IsXyzType(TYPE_XYZ)
end
function c57314798.xyzcheck(g,xyzc)
function c57314798.xyzcheck(g)
return g:GetClassCount(Card.GetCode)==1 and g:GetClassCount(Card.GetRank)==1
end
function c57314798.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -41,7 +41,7 @@ c65305468.xyz_number=0
function c65305468.mfilter(c,xyzc)
return c:IsXyzType(TYPE_XYZ) and not c:IsSetCard(0x48)
end
function c65305468.xyzcheck(g,xyzc)
function c65305468.xyzcheck(g)
return g:GetClassCount(Card.GetRank)==1
end
function c65305468.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -40,7 +40,7 @@ function c77610772.initial_effect(c)
e5:SetOperation(c77610772.spop2)
c:RegisterEffect(e5)
end
function c77610772.lcheck(g,lc)
function c77610772.lcheck(g)
return g:GetClassCount(Card.GetRace)==g:GetCount() and g:GetClassCount(Card.GetAttribute)==g:GetCount()
end
function c77610772.incon(e)
......
......@@ -656,7 +656,7 @@ function Auxiliary.XyzLevelFreeCheck(c,tp,xyzc,mg,sg,gf,minc,maxc)
return res
end
function Auxiliary.XyzLevelFreeGoal(g,tp,xyzc,gf)
return (not gf or gf(g,xyzc)) and Duel.GetLocationCountFromEx(tp,tp,g,xyzc)>0
return (not gf or gf(g)) and Duel.GetLocationCountFromEx(tp,tp,g,xyzc)>0
end
function Auxiliary.XyzLevelFreeCondition(f,gf,minct,maxct)
return function(e,c,og,min,max)
......@@ -1623,7 +1623,7 @@ function Auxiliary.LCheckRecursive(c,tp,sg,mg,lc,ct,minc,maxc,gf)
return res
end
function Auxiliary.LCheckGoal(tp,sg,lc,minc,ct,gf)
return ct>=minc and sg:CheckWithSumEqual(Auxiliary.GetLinkCount,lc:GetLink(),ct,ct) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg,lc))
return ct>=minc and sg:CheckWithSumEqual(Auxiliary.GetLinkCount,lc:GetLink(),ct,ct) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg))
end
function Auxiliary.LinkCondition(f,minc,maxc,gf)
return function(e,c)
......
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