Commit 5cd2d54d authored by salix5's avatar salix5

Merge pull request #320 from Tianchenglipu/patch-rmv

Remove unused xyz_filter and xyz_count
parents 4bdf1675 e67ea90b
......@@ -33,14 +33,8 @@ function c23187256.initial_effect(c)
local e4=e3:Clone()
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e4)
if not c23187256.xyz_filter then
c23187256.xyz_filter=function(mc)
return mc:IsType(TYPE_XYZ) and mc:IsSetCard(0x48) and mc:GetOverlayCount()>0 and mc:IsCanBeXyzMaterial(c)
end
end
end
c23187256.xyz_number=93
c23187256.xyz_count=2
function c23187256.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:GetOverlayCount()>0 and c:IsCanBeXyzMaterial(xyzc)
end
......
......@@ -48,14 +48,8 @@ function c52653092.initial_effect(c)
e6:SetCost(c52653092.actcost)
e6:SetOperation(c52653092.actop)
c:RegisterEffect(e6)
if not c52653092.xyz_filter then
c52653092.xyz_filter=function(mc)
return mc:IsType(TYPE_XYZ) and mc:IsSetCard(0x48) and mc:IsCanBeXyzMaterial(c)
end
end
end
c52653092.xyz_number=0
c52653092.xyz_count=3
function c52653092.cfilter(c)
return c:IsSetCard(0x95) and c:GetType()==TYPE_SPELL and c:IsDiscardable()
end
......
......@@ -30,12 +30,8 @@ function c57707471.initial_effect(c)
e3:SetTarget(c57707471.destg)
e3:SetOperation(c57707471.desop)
c:RegisterEffect(e3)
if not c57707471.xyz_filter then
c57707471.xyz_filter=function(mc) return mc:IsXyzLevel(c,6) end
end
end
c57707471.xyz_number=21
c57707471.xyz_count=2
function c57707471.ovfilter(c,tp,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:GetRank()==5 and c:IsCanBeXyzMaterial(xyzc)
and c:CheckRemoveOverlayCard(tp,1,REASON_COST)
......
......@@ -37,7 +37,6 @@ function c58600555.initial_effect(c)
e3:SetOperation(c58600555.operation)
c:RegisterEffect(e3)
end
c58600555.xyz_count=2
function c58600555.ovfilter(c,tp,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and (c:GetRank()==3 or c:GetRank()==4) and c:IsRace(RACE_INSECT) and c:IsCanBeXyzMaterial(xyzc)
and c:CheckRemoveOverlayCard(tp,2,REASON_COST)
......
......@@ -44,12 +44,8 @@ function c65305468.initial_effect(c)
e7:SetRange(LOCATION_MZONE)
e7:SetTarget(c65305468.reptg)
c:RegisterEffect(e7)
if not c65305468.xyz_filter then
c65305468.xyz_filter=function(mc) return mc:IsType(TYPE_XYZ) and not mc:IsSetCard(0x48) and mc:IsCanBeXyzMaterial(c) end
end
end
c65305468.xyz_number=0
c65305468.xyz_count=2
function c65305468.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and not c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
end
......
......@@ -30,7 +30,6 @@ function c85004150.initial_effect(c)
e3:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e3)
end
c85004150.xyz_count=2
function c85004150.ovfilter(c,tp,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and (c:GetRank()==5 or c:GetRank()==6) and c:IsRace(RACE_INSECT) and c:IsCanBeXyzMaterial(xyzc)
and c:CheckRemoveOverlayCard(tp,2,REASON_COST)
......
......@@ -183,18 +183,7 @@ function Auxiliary.XyzAlterFilter(c,alterf,xyzc)
return alterf(c) and c:IsCanBeXyzMaterial(xyzc)
end
--Xyz monster, lv k*n
--set c.xyz_filter, c.xyz_count
function Auxiliary.AddXyzProcedure(c,f,lv,ct,alterf,desc,maxct,op)
if c.xyz_filter==nil then
local code=c:GetOriginalCode()
local mt=_G["c" .. code]
if f then
mt.xyz_filter=function(mc) return f(mc) and mc:IsXyzLevel(c,lv) end
else
mt.xyz_filter=function(mc) return mc:IsXyzLevel(c,lv) end
end
mt.xyz_count=ct
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......
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