--Kitseki Lotus Priestess --Script by XGlitchy30 function c88523895.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x215a),aux.NonTuner(Card.IsRace,RACE_BEASTWARRIOR),1) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(88523895,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c88523895.spcon) e1:SetTarget(c88523895.sptg) e1:SetOperation(c88523895.spop) c:RegisterEffect(e1) end --filters function c88523895.spcheck(c) return c:IsFaceup() and c:IsSetCard(0x215a) end function c88523895.spfilter(c,e,tp) return c:IsSetCard(0x215a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end --special summon function c88523895.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) end function c88523895.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c88523895.spcheck,tp,LOCATION_MZONE,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(c88523895.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE,0)>0 end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function c88523895.spop(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(c88523895.spcheck,tp,LOCATION_MZONE,0,1,e:GetHandler()) then return end if Duel.GetLocationCount(tp,LOCATION_MZONE,0)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,c88523895.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) if g:GetCount()>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end