--露西亚 ~决意的收获祭~ function c33701069.initial_effect(c) --code local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_CHANGE_CODE) e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE) e1:SetValue(33700044) c:RegisterEffect(e1) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(33701069,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_REMOVE_COUNTER+0x1021) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetTarget(c33701069.sptg1) e1:SetOperation(c33701069.spop1) c:RegisterEffect(e1) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(33701069,1)) e1:SetCategory(CATEGORY_CONTROL) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c33701069.condition) e1:SetCost(c33701069.cost) e1:SetTarget(c33701069.target) e1:SetOperation(c33701069.activate) c:RegisterEffect(e1) --spsummon bgm local e8=Effect.CreateEffect(c) e8:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e8:SetCode(EVENT_SPSUMMON_SUCCESS) e8:SetOperation(c33701069.sumsuc) c:RegisterEffect(e8) local e9=e8:Clone() e9:SetCode(EVENT_SUMMON_SUCCESS) c:RegisterEffect(e9) end function c33701069.sumsuc(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_MUSIC,0,aux.Stringid(33701069,2)) end function c33701069.sptg1(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 c33701069.spop1(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end function c33701069.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() return tc:IsControler(1-tp) and not tc:IsPreviousLocation(LOCATION_HAND) end function c33701069.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x1021,3,REASON_COST) end Duel.RemoveCounter(tp,1,1,0x1021,3,REASON_COST) end function c33701069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end if chk==0 then return eg:GetFirst():IsCanBeEffectTarget(e) and eg:GetFirst():IsControlerCanBeChanged() end Duel.SetTargetCard(eg) Duel.SetOperationInfo(0,CATEGORY_CONTROL,eg,1,0,0) end