Commit fc25da5f authored by luffySAMA's avatar luffySAMA

fix

parent c9ba0fd9
...@@ -12,11 +12,14 @@ function c57568840.initial_effect(c) ...@@ -12,11 +12,14 @@ function c57568840.initial_effect(c)
e1:SetOperation(c57568840.lvop) e1:SetOperation(c57568840.lvop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c57568840.filter(c)
return c:IsFaceup() and not c:IsType(TYPE_XYZ)
end
function c57568840.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57568840.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c57568840.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(c57568840.filter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,e:GetHandler()) Duel.SelectTarget(tp,c57568840.filter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
end end
function c57568840.lvop(e,tp,eg,ep,ev,re,r,rp) function c57568840.lvop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -52,4 +52,5 @@ function c7634581.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,4 +52,5 @@ function c7634581.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,false,POS_FACEUP)
end end
e:GetHandler():CompleteProcedure()
end 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