Commit 8c105c47 authored by wind2009's avatar wind2009 Committed by GitHub

Fix 爆導索 (#2806)

parent 85bc88a9
......@@ -13,16 +13,25 @@ function c99788587.initial_effect(c)
c:RegisterEffect(e1)
end
function c99788587.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAllColumn()
return e:GetHandler():IsAllColumn() and e:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c99788587.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
e:SetLabel(aux.GetColumn(c)+1)
local g=e:GetHandler():GetColumnGroup()
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c99788587.opfilter(c,col)
return aux.GetColumn(c)==col
end
function c99788587.activate(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetColumnGroup()
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
local col=e:GetLabel()
if col>0 then
col=col-1
local g=Duel.GetMatchingGroup(c99788587.opfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,aux.ExceptThisCard(e),col)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
end
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