--Flibberty Sniggle local cid,id=GetID() function cid.initial_effect(c) --flip local e0=Effect.CreateEffect(c) --e0:SetDescription(aux.Stringid(88316955,0)) e0:SetCategory(CATEGORY_TOHAND) e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e0:SetProperty(EFFECT_FLAG_DELAY) e0:SetTarget(cid.ftg) e0:SetOperation(cid.fop) c:RegisterEffect(e0) --be target local e1=Effect.CreateEffect(c) --e1:SetDescription(aux.Stringid(62587693,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetRange(LOCATION_MZONE) e1:SetCondition(cid.condition) e1:SetCost(cid.cost) e1:SetTarget(cid.target) e1:SetOperation(cid.operation) c:RegisterEffect(e1) end function cid.ftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsAbleToHand() end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) end function cid.fop(e,tp,eg,ep,ev,re,r,rp) if Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) then local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) end end end function cid.filter(c,tp) return c:IsFacedown() and c:IsControler(tp) end function cid.condition(e,tp,eg,ep,ev,re,r,rp) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) if not g or g:GetCount()<1 then return false end local c=e:GetHandler() local tg=g:IsExists(cid.filter,1,c,tp) return tg and c:IsFacedown() and not c:IsStatus(STATUS_BATTLE_DESTROYED) end function cid.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.ChangePosition(e:GetHandler(),Duel.SelectPosition(tp,e:GetHandler(),POS_FACEUP)) end function cid.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function cid.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end local tc=Duel.GetOperatedGroup():GetFirst() Duel.ConfirmCards(1-tp,tc) if tc:IsSetCard(ARCHE_FLIBBERTY) then local st=Duel.SelectYesNo(tp,aux.Stringid(id,0)) local res=false if st then if tc:IsType(TYPE_MONSTER) then res=Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) if res~=0 then Duel.ConfirmCards(1-tp,tc) end else res=Duel.SSet(tp,tc) end end else Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL) end end