Commit 1f54d259 authored by VanillaSalt's avatar VanillaSalt

fix

parent b8e664ac
......@@ -29,12 +29,13 @@ function c13760677.initial_effect(c)
e3:SetOperation(c13760677.thop)
c:RegisterEffect(e3)
end
function c13760677.cfilter(c,tp)
function c13760677.cfilter(c,e,tp)
return c:IsRace(RACE_ZOMBIE) and c:GetSummonPlayer()==tp and c:GetSummonType()==SUMMON_TYPE_PENDULUM
and (not e or c:IsRelateToEffect(e))
end
function c13760677.indcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():GetSequence()==6 or e:GetHandler():GetSequence()==7)
and eg:IsExists(c13760677.cfilter,1,nil,tp)
and eg:IsExists(c13760677.cfilter,1,nil,nil,tp)
end
function c13760677.indtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -43,8 +44,8 @@ end
function c13760677.indop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local g=eg:Filter(Card.IsRelateToEffect,nil,e)
local tc=e:GetFirst()
local g=eg:Filter(c13760677.cfilter,nil,e,tp)
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -75,7 +75,7 @@ function c37991342.ntcon(e,c)
if c==nil then return true end
return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c37991342.lvcon(e,tp,eg,ep,ev,re,r,rp)
function c37991342.lvcon(e)
return e:GetHandler():GetMaterialCount()==0
end
function c37991342.lvop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -83,7 +83,7 @@ function c64496451.ntcon(e,c)
if c==nil then return true end
return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c64496451.lvcon(e,tp,eg,ep,ev,re,r,rp)
function c64496451.lvcon(e)
return e:GetHandler():GetMaterialCount()==0
end
function c64496451.lvop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -79,7 +79,7 @@ function c90885155.ntcon(e,c)
if c==nil then return true end
return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c90885155.lvcon(e,tp,eg,ep,ev,re,r,rp)
function c90885155.lvcon(e)
return e:GetHandler():GetMaterialCount()==0
end
function c90885155.lvop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -76,7 +76,7 @@ function c91907707.ntcon(e,c)
if c==nil then return true end
return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c91907707.lvcon(e,tp,eg,ep,ev,re,r,rp)
function c91907707.lvcon(e)
return e:GetHandler():GetMaterialCount()==0
end
function c91907707.lvop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -236,6 +236,7 @@ function Auxiliary.XyzOperation2(f,minc,maxc,alterf,desc,op)
local ct=-ft
local b1=Duel.CheckXyzMaterial(c,f,minc,maxc,og)
local b2=ct<1 and Duel.IsExistingMatchingCard(alterf,tp,LOCATION_MZONE,0,1,nil)
and (not op or op(e,tp,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
if b2 and (not b1 or Duel.SelectYesNo(tp,desc)) then
if op then op(e,tp,1) end
......
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