Commit db658473 authored by Tachibana's avatar Tachibana

rar

parent d8643e68
Pipeline #3700 passed with stages
in 39 minutes and 13 seconds
......@@ -19,7 +19,8 @@ function cm.initial_effect(c)
--salvage
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,12051009)
e2:SetCondition(cm.spcon1)
......
......@@ -29,8 +29,8 @@ function c12051030.desfilter(c)
return c:GetSequence()<5
end
function c12051030.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(c12051030.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if chk==0 then return #g>0 end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c12051030.activate(e,tp,eg,ep,ev,re,r,rp)
......@@ -80,19 +80,19 @@ function c12051030.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
end
function c12051030.desfilter(c,fid)
function c12051030.desfilter1(c,fid)
return c:GetFlagEffectLabel(12051030)==fid
end
function c12051030.descon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
if not g:IsExists(c12051030.desfilter,1,nil,e:GetLabel()) then
if not g:IsExists(c12051030.desfilter1,1,nil,e:GetLabel()) then
g:DeleteGroup()
e:Reset()
return false
else return true end
end
function c12051030.desfilter(e,tp,eg,ep,ev,re,r,rp)
function c12051030.desop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
local tg=g:Filter(cm.rmfilter,nil,e:GetLabel())
local tg=g:Filter(c12051030.desfilter1,nil,e:GetLabel())
Duel.Destroy(tg,REASON_EFFECT)
end
\ No newline at end of file
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