--摒息射击 function c33700928.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c33700928.condition) e1:SetTarget(c33700928.target) e1:SetOperation(c33700928.activate) c:RegisterEffect(e1) end function c33700928.cfilter(c,tp) return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(tp) end function c33700928.condition(e,tp,eg,ep,ev,re,r,rp) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end if not re:IsActiveType(TYPE_MONSTER) and not re:IsHasType(EFFECT_TYPE_ACTIVATE) then return false end local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) return tg and tg:IsExists(c33700928.cfilter,1,nil,tp) and Duel.IsChainDisablable(ev) end function c33700928.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) end end function c33700928.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) and c:IsCanTurnSet() and Duel.CheckLPCost(tp,1500) and Duel.SelectYesNo(tp,aux.Stringid(33700928,0)) then Duel.PayLPCost(tp,1500) Duel.BreakEffect() c:CancelToGrave() Duel.ChangePosition(c,POS_FACEDOWN) Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end end