Commit 25cb38b1 authored by nekrozar's avatar nekrozar Committed by mercury233

update Xyz Summon (#887)

parent ccf7c60f
......@@ -36,7 +36,7 @@ function c23187256.initial_effect(c)
end
c23187256.xyz_number=93
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)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48) and c:GetOverlayCount()>0 and c:IsCanBeXyzMaterial(xyzc)
end
function c23187256.xyzfilter1(c,g,ct)
return g:IsExists(c23187256.xyzfilter2,ct,c,c:GetRank())
......
--超化合獣メタン・ハイド
function c38026562.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_DUAL),8,2)
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsXyzType,TYPE_DUAL),8,2)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
......
......@@ -28,7 +28,7 @@ function c42160203.initial_effect(c)
c:RegisterEffect(e4)
end
function c42160203.matfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsAttribute(ATTRIBUTE_DARK)
return c:IsXyzType(TYPE_PENDULUM) and c:IsAttribute(ATTRIBUTE_DARK)
end
function c42160203.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -42,7 +42,7 @@ function c43490025.ovfilter(c,xyzc)
return c:IsFaceup() and (c:IsSetCard(0x107f) or c:IsCode(65305468)) and c:IsCanBeXyzMaterial(xyzc)
end
function c43490025.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and not c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and not c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
end
function c43490025.xyzfilter1(c,g)
return g:IsExists(c43490025.xyzfilter2,1,c,c:GetRank())
......
......@@ -31,7 +31,7 @@ function c47349116.initial_effect(c)
c:RegisterEffect(e3)
end
function c47349116.matfilter(c)
return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM)
return c:IsSetCard(0x98) and c:IsXyzType(TYPE_PENDULUM)
end
function c47349116.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or (bit.band(st,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and not se)
......
......@@ -57,7 +57,7 @@ function c52653092.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c52653092.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
end
function c52653092.xyzfilter1(c,g)
return g:IsExists(c52653092.xyzfilter2,2,c,c:GetRank())
......
......@@ -46,7 +46,7 @@ function c57314798.initial_effect(c)
end
c57314798.xyz_number=100
function c57314798.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
end
function c57314798.xyzfilter1(c,g)
return g:IsExists(c57314798.xyzfilter2,1,c,c:GetRank(),c:GetCode())
......
......@@ -47,7 +47,7 @@ function c65305468.initial_effect(c)
end
c65305468.xyz_number=0
function c65305468.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and not c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and not c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
end
function c65305468.xyzfilter1(c,g)
return g:IsExists(c65305468.xyzfilter2,1,c,c:GetRank())
......
--サンダーエンド・ドラゴン
function c698785.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_NORMAL),8,2)
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsXyzType,TYPE_NORMAL),8,2)
c:EnableReviveLimit()
--negate activate
local e1=Effect.CreateEffect(c)
......
--昇竜剣士マジェスターP
function c88722973.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_PENDULUM),4,2)
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsXyzType,TYPE_PENDULUM),4,2)
c:EnableReviveLimit()
--search
local e1=Effect.CreateEffect(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