Commit 4edfa932 authored by Grajade's avatar Grajade

Update c74562021.lua

parent a7b26c62
Pipeline #8983 passed with stage
in 1 minute and 15 seconds
......@@ -122,7 +122,7 @@ function cCardno.ssop(e,tp,eg,ep,ev,re,r,rp)
end
-- xyz
function cCardno.xyzfilter(c,tp,xyzc)
return c:IsFaceup() and c:IsCanBeXyzMaterial(xyzc) and ( (c:IsType(TYPE_XYZ) and c:IsRank(12) ) or (c:IsType(TYPE_MONSTER) and c:IsSetCard(0x298) ) )
return c:IsFaceup() and c:IsCanBeXyzMaterial(xyzc) and ((c:IsType(TYPE_XYZ) and c:IsRank(12)) or (c:IsType(TYPE_MONSTER) and c:IsSetCard(0x298))) and Duel.GetLocationCountFromEx(tp,tp,c,xyzc)>0
end
function cCardno.xyzfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x298) and c:IsAbleToDeck()
......@@ -130,7 +130,6 @@ end
function cCardno.xyzcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
if Duel.GetLocationCountFromEx(tp)<0 then return false end
return Duel.IsExistingMatchingCard(cCardno.xyzfilter,tp,LOCATION_MZONE,0,1,nil,tp,c)
end
function cCardno.xyzop(e,tp,eg,ep,ev,re,r,rp,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