--Crisis Claw - Apathy --Scripted by Yuno local cid,id=GetID() function cid.initial_effect(c) --Special Summon and destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCountLimit(1, id) e1:SetTarget(cid.sptg) e1:SetOperation(cid.spop) c:RegisterEffect(e1) --Search a "Crisis Claw" monster local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCountLimit(1, id+100) e2:SetCost(cid.thcost) e2:SetTarget(cid.thtg) e2:SetOperation(cid.thop) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e3) end --Special Summon and destroy function cid.filter(c) return c:IsFaceup() and c:IsType(TYPE_EQUIP) end function cid.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_ONFIELD) and cid.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(cid.filter, tp, LOCATION_ONFIELD, 0, 1, nil) and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false) end Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY) local g=Duel.SelectTarget(tp, cid.filter, tp, LOCATION_ONFIELD, 0, 1, 1, nil) Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, 0, 0) Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0) end function cid.spop(e, tp, eg, ep, ev, re, r, rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP)~=0 then --Banish when it leaves the field local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetReset(RESET_EVENT+RESETS_REDIRECT) e1:SetValue(LOCATION_REMOVED) c:RegisterEffect(e1,true) end Duel.Destroy(tc, REASON_EFFECT) end --Search a "Crisis Claw" monster function cid.costfilter(c, tp) return c:IsSetCard(0x571) and c:IsDiscardable() and Duel.IsExistingMatchingCard(cid.thfilter, tp, LOCATION_DECK, 0, 1, nil, c:GetType()) end function cid.thfilter(c, type) return c:IsSetCard(0x571) and not c:IsType(type) and c:IsAbleToHand() end function cid.thcost(e, tp, eg, ep, ev, re, r, rp, chk) if chk==0 then return Duel.IsExistingMatchingCard(cid.costfilter, tp, LOCATION_HAND, 0, 1, nil, tp) end Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD) local tc=Duel.SelectMatchingCard(tp, cid.costfilter, tp, LOCATION_HAND, 0, 1, 1, nil, tp) Duel.SendtoGrave(tc, REASON_COST+REASON_DISCARD) e:SetLabel(tc:GetFirst():GetType()) end function cid.thtg(e, tp, eg, ep, ev, re, r, rp, chk) if chk==0 then return true end Duel.SetOperationInfo(0, CATEGORY_TOHAND, nil, 1, tp, LOCATION_DECK) end function cid.thop(e, tp, eg, ep, ev, re, r, rp) local type=e:GetLabel() Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp, cid.thfilter, tp, LOCATION_DECK, 0, 1, 1, nil, type) if g:GetCount()>0 then Duel.SendtoHand(g, nil, REASON_EFFECT) Duel.ConfirmCards(1-tp, g) end end