--Conquering function c11000142.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE+TIMING_EQUIP) e1:SetCondition(c11000142.condition) e1:SetTarget(c11000142.target) e1:SetOperation(c11000142.activate) c:RegisterEffect(e1) end function c11000142.filter(c) return c:IsFaceup() and c:IsCode(11000130) end function c11000142.cfilter(c) return c:IsFaceup() and c:IsSetCard(0x1F6) end function c11000142.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(c11000142.filter,tp,LOCATION_MZONE,0,1,nil) end function c11000142.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,0,LOCATION_SZONE,1,nil) end local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_SZONE,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function c11000142.activate(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetMatchingGroupCount(c11000142.cfilter,tp,LOCATION_MZONE,0,nil) if ct==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectMatchingCard(tp,Card.IsDestructable,tp,0,LOCATION_SZONE,1,ct,nil) if g:GetCount()>0 then Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end end