function c1553065.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(1553065,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetCountLimit(1,4011+EFFECT_COUNT_CODE_OATH) e1:SetCondition(c1553065.condition) e1:SetTarget(c1553065.target) e1:SetOperation(c1553065.operation) c:RegisterEffect(e1) end function c1553065.filter(c) return c:IsFaceup() and c:IsSetCard(0x190) and c:IsType(TYPE_MONSTER) end function c1553065.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(c1553065.filter,tp,LOCATION_MZONE,0,1,nil) end function c1553065.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsDestructable() end if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) end function c1553065.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end end