--Pawstripe Divexplorer, Felix local ref,id=GetID() function ref.initial_effect(c) --Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND+LOCATION_REMOVED) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_REMOVE) e1:SetCondition(ref.sscon) e1:SetTarget(ref.sstg) e1:SetOperation(ref.ssop) e1:SetCountLimit(1,id) c:RegisterEffect(e1) --Destroy local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetCategory(CATEGORY_DESTROY) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_TO_GRAVE) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetCountLimit(1,id+1000) e2:SetCondition(ref.descon) e2:SetTarget(ref.destg) e2:SetOperation(ref.desop) c:RegisterEffect(e2) end --Summon function ref.sscon(e,tp,eg,ep,ev,re,r,rp) if not re then return false end return ((bit.band(re:GetActivateLocation(),LOCATION_MZONE)==LOCATION_MZONE) or (bit.band(re:GetActivateLocation(),LOCATION_SZONE)==LOCATION_SZONE)) and not eg:IsContains(e:GetHandler()) end function ref.sstg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() local seq=re:GetActivateSequence() --if bit.band(re:GetActivateLocation(),LOCATION_SZONE)==LOCATION_SZONE then seq=seq-8 else if not (bit.band(re:GetActivateLocation(),LOCATION_SZONE)==LOCATION_SZONE) then if seq==5 or seq==6 then if seq==5 then seq=1 else seq=3 end end end --Debug.Message("Sequence: " .. seq) if re:GetHandlerPlayer()==1-tp then seq=4-seq end local zone=bit.lshift(1,seq) --Debug.Message("Zone: " .. zone) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end e:SetLabel(zone) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0) end function ref.ssop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local zone=e:GetLabel() if Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0 and c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP,zone) end end --Destroy function ref.descon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) end function ref.desfilter(c) return c:IsFaceup() end function ref.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and s.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(ref.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,ref.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function ref.desop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end end