--Skyreach Huntress local ref,id=GetID() function ref.initial_effect(c) c:EnableReviveLimit() local magick=Effect.CreateEffect(c) magick:SetDescription(aux.Stringid(id,0)) magick:SetCategory(CATEGORY_DESTROY) magick:SetType(EFFECT_TYPE_TRIGGER_O) magick:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_SET_AVAILABLE) magick:SetCondition(ref.descon) magick:SetTarget(ref.destg) magick:SetOperation(ref.desop) aux.AddMagickProcCustom(c,ref.magcon,aux.MagickMatCost,magick,aux.FilterBoolFunction(Card.IsType,TYPE_MONSTER),1) aux.AddFusionProcFunRep(c,ref.matfilter,2,true) --Draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,1)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_FLIP) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetTarget(ref.drtg) e1:SetOperation(ref.drop) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCondition(ref.dr2con) c:RegisterEffect(e2) end function ref.matfilter(c) return c:IsRace(RACE_BEASTWARRIOR) or c:IsType(TYPE_FLIP) end function ref.magcon(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() return rc:GetType()==TYPE_SPELL or rc:GetType()==TYPE_SPELL+TYPE_MAGICK end function ref.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,0,1,nil) end function ref.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsFaceup() end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,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 --Draw function ref.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function ref.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end function ref.dr2con(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return c:IsSummonType(SUMMON_TYPE_FUSION) and c:GetMaterialCount()==2 end