--SKILL: Scorciatoia --Script by XGlitchy30 local cid,id=GetID() function cid.initial_effect(c) aux.AddOrigSkillType(c) --ED Skill Properties aux.EDSkillProperties(c) --Shortcut local SKILL=Effect.CreateEffect(c) SKILL:SetType(EFFECT_TYPE_FIELD) SKILL:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) SKILL:SetRange(LOCATION_EXTRA) SKILL:SetCode(EFFECT_SPSUMMON_PROC_G) SKILL:SetCondition(cid.skillcon_skill) SKILL:SetOperation(cid.skillop) SKILL:SetValue(SUMMON_TYPE_SPECIAL+1) c:RegisterEffect(SKILL) end --filters function cid.tgfilter(c) return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() end --Shortcut function cid.skillcon_skill(e,c) if c==nil then return true end local tp=c:GetControler() return aux.skillcon(e) and Duel.GetFlagEffect(tp,id)<=0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=Duel.GetFieldGroup(tp,0,LOCATION_GRAVE):FilterCount(Card.IsType,nil,TYPE_MONSTER) end function cid.skillop(e,tp,eg,ep,ev,re,r,rp,c) Duel.Hint(HINT_CARD,1-tp,id) if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)0 then Duel.SendtoHand(sg,nil,REASON_RULE) Duel.ConfirmCards(1-tp,sg) end end end Duel.RegisterFlagEffect(tp,id,0,0,1) return end function cid.aclimit(e,re,tp) local g=e:GetLabelObject() return g:IsContains(re:GetHandler()) end