--Reptilianne Shahmaran function c212900.initial_effect(c) --atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(212900,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,212900) e1:SetTarget(c212900.atktg) e1:SetOperation(c212900.atkop) c:RegisterEffect(e1) --sp summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(212900,1)) e2:SetCategory(CATEGORY_RELEASE+CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,212900) e2:SetTarget(c212900.target) e2:SetOperation(c212900.activate) c:RegisterEffect(e2) end function c212900.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and aux.nzatk(chkc) end if chk==0 then return Duel.IsExistingTarget(aux.nzatk,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.SelectTarget(tp,aux.nzatk,tp,0,LOCATION_MZONE,1,1,nil) end function c212900.atkop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) and tc:IsFaceup() then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(0) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end end function c212900.cfilter(c) return c:IsFaceup() and c:IsAttack(0) and c:IsReleasableByEffect() end function c212900.filter(c,e,tp) return c:IsSetCard(0x3c) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function c212900.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local loc=LOCATION_MZONE if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then loc=0 end return Duel.IsExistingMatchingCard(c212900.cfilter,tp,LOCATION_MZONE,loc,1,nil) and Duel.IsExistingMatchingCard(c212900.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function c212900.activate(e,tp,eg,ep,ev,re,r,rp) local loc=LOCATION_MZONE if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then loc=0 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local g=Duel.SelectMatchingCard(tp,c212900.cfilter,tp,LOCATION_MZONE,loc,1,1,nil) if g:GetCount()>0 and Duel.Release(g,REASON_EFFECT)>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=Duel.SelectMatchingCard(tp,c212900.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) if sg:GetCount()>0 then Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP) end end end