Commit 70a20553 authored by mercury233's avatar mercury233

fix

parent f89d1a02
...@@ -14,11 +14,10 @@ function c101006025.initial_effect(c) ...@@ -14,11 +14,10 @@ function c101006025.initial_effect(c)
e1:SetOperation(c101006025.spop) e1:SetOperation(c101006025.spop)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
e1:SetLabelObject(e2)
--Destroy/Shuffle/Special summon --Destroy/Shuffle/Special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,101006025) e2:SetCountLimit(1,101006025)
e2:SetLabel(0) e2:SetLabel(0)
...@@ -26,14 +25,15 @@ function c101006025.initial_effect(c) ...@@ -26,14 +25,15 @@ function c101006025.initial_effect(c)
e2:SetTarget(c101006025.destg) e2:SetTarget(c101006025.destg)
e2:SetOperation(c101006025.desop) e2:SetOperation(c101006025.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
e1:SetLabelObject(e2)
end end
function c101006025.spcostfilter(c) function c101006025.spcostfilter(c)
return c:IsAbleToRemoveAsCost() and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) return c:IsAbleToRemoveAsCost() and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK)
end end
function c101006025.spcon(e,c) function c101006025.spcon(e,c)
if c==nil then return true end if c==nil then return true end
if Duel.GetMZoneCount(tp)<=0 then return false end
local tp=c:GetControler() local tp=c:GetControler()
if Duel.GetMZoneCount(tp)<=0 then return false end
return Duel.IsExistingMatchingCard(c101006025.spcostfilter,tp,LOCATION_GRAVE,0,3,nil) return Duel.IsExistingMatchingCard(c101006025.spcostfilter,tp,LOCATION_GRAVE,0,3,nil)
end end
function c101006025.spop(e,tp,eg,ep,ev,re,r,rp,c) function c101006025.spop(e,tp,eg,ep,ev,re,r,rp,c)
...@@ -103,7 +103,7 @@ function c101006025.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function c101006025.desop(e,tp,eg,ep,ev,re,r,rp)
if g3:GetCount()>0 then if g3:GetCount()>0 then
local ct=math.min(g3:GetCount(),2) local ct=math.min(g3:GetCount(),2)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=g:Select(tp,1,ct,nil) local sg=g3:Select(tp,1,ct,nil)
Duel.HintSelection(sg) Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
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