--星球意识 篝 function c33701063.initial_effect(c) --link summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkAttribute,ATTRIBUTE_EARTH),1,99) c:EnableReviveLimit() --special summon local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(33701063,0)) e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_LEAVE_FIELD) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e4:SetCondition(c33701063.spcon) e4:SetCost(c33701063.cost) e4:SetTarget(c33701063.sptg) e4:SetOperation(c33701063.spop) c:RegisterEffect(e4) --spsummon bgm local e8=Effect.CreateEffect(c) e8:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e8:SetCode(EVENT_SPSUMMON_SUCCESS) e8:SetOperation(c33701063.sumsuc) c:RegisterEffect(e8) local e9=e8:Clone() e9:SetCode(EVENT_SUMMON_SUCCESS) c:RegisterEffect(e9) end function c33701063.sumsuc(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_MUSIC,0,aux.Stringid(33701063,2)) end function c33701063.spcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()==1-tp and c:IsReason(REASON_EFFECT))) and c:IsPreviousPosition(POS_FACEUP) end function c33701063.cfilter(c) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) end function c33701063.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckReleaseGroupEx(tp,c33701063.cfilter,1,nil) end local cg=Duel.SelectReleaseGroupEx(tp,c33701063.cfilter,1,1,nil) Duel.Release(cg,REASON_COST) end function c33701063.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function c33701063.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>1 and Duel.IsChainDisablable(0) and Duel.SelectYesNo(1-tp,aux.Stringid(33701063,1)) then Duel.Remove(1-tp,aux.TRUE,2,2,POS_FACEUP,REASON_EFFECT) Duel.NegateEffect(0) return end if not c:IsRelateToEffect(e) then return end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end