--Marincess Wonders function c212735.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,212735+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c212735.target) e1:SetOperation(c212735.activate) c:RegisterEffect(e1) end function c212735.spfilter(c,e,tp) return c:IsSetCard(0x12b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end function c212735.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c212735.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,0,tp,LOCATION_DECK) end function c212735.tgfilter(c,mc) return c:IsSetCard(0x12b) and c:IsType(TYPE_MONSTER) and not c:IsLevel(mc:GetLevel()) and c:IsAbleToGrave() end function c212735.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c212735.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp) if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 then local tg=Duel.GetMatchingGroup(c212735.tgfilter,tp,LOCATION_DECK,0,nil,g:GetFirst()) if tg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(212735,0)) then Duel.BreakEffect() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local sg=tg:Select(tp,1,1,nil) Duel.SendtoGrave(sg,REASON_EFFECT) end end end