--Coraggiosa AoJ in Prima Linea, Kyrie --Script by XGlitchy30 function c19772584.initial_effect(c) --spsum procedure local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM) e1:SetTargetRange(POS_FACEUP_DEFENSE,0) e1:SetRange(LOCATION_HAND) e1:SetCondition(c19772584.spcon) c:RegisterEffect(e1) --defense attack local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DEFENSE_ATTACK) e2:SetValue(1) c:RegisterEffect(e2) --excavate local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(1945387,0)) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_BATTLE_DESTROYING) e3:SetCondition(aux.bdocon) e3:SetTarget(c19772584.sptg) e3:SetOperation(c19772584.spop) c:RegisterEffect(e3) end --filters function c19772584.cfilter(c) return c:IsFaceup() and c:IsSetCard(0x197) end --spsum procedure function c19772584.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c19772584.cfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) end --excavate function c19772584.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)~=0 end end function c19772584.spop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmDecktop(1-tp,1) local g=Duel.GetDecktopGroup(1-tp,1) local tc=g:GetFirst() if not tc then return end if tc:GetLevel()<=4 and tc:IsSummonableCard() and tc:IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.DisableShuffleCheck() Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) else Duel.MoveSequence(tc,1) Duel.ShuffleDeck(1-tp) end end