--created by Seth, coded by Lyris local cid,id=GetID() function cid.initial_effect(c) local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_QUICK_O) e0:SetCode(EVENT_FREE_CHAIN) e0:SetRange(LOCATION_MZONE) e0:SetCountLimit(1) e0:SetCategory(CATEGORY_REMOVE) e0:SetTarget(cid.rmtg) e0:SetOperation(cid.rmop) c:RegisterEffect(e0) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) e1:SetCategory(CATEGORY_DRAW) e1:SetCondition(cid.drcon) e1:SetTarget(cid.tg) e1:SetOperation(cid.activate) c:RegisterEffect(e1) end function cid.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_GRAVE) end function cid.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToRemove),tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil) if #g>0 then Duel.HintSelection(g) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end end function cid.drcon(e,tp) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)