--Deep Dark Gem - False Godspark --Created and Scripted by Swaggy local m=4200107 local cm=_G["c"..m] function cm.initial_effect(c) --"The Mayakashi Clause" local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetTargetRange(1,0) e1:SetTarget(cm.sslimit) c:RegisterEffect(e1) --I'm a different rock, now. local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetCode(EFFECT_CHANGE_CODE) e2:SetRange(LOCATION_GRAVE) e2:SetValue(4200100) c:RegisterEffect(e2) --I'm like Nibiru, except i dont summon a token and dont wipe the field. local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(4200107,0)) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetRange(LOCATION_HAND) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCondition(cm.spcon) e3:SetTarget(cm.sptg) e3:SetOperation(cm.spop) c:RegisterEffect(e3) local e4=e3:Clone() e4:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e4) --Elementsaber UWU local e5=Effect.CreateEffect(c) e5:SetType(EFFECT_TYPE_IGNITION) e5:SetRange(LOCATION_MZONE) e5:SetCountLimit(1) e5:SetCondition(cm.attcon) e5:SetTarget(cm.atttg) e5:SetOperation(cm.attop) c:RegisterEffect(e5) end function cm.sslimit(e,c,sump,sumtype,sumpos,targetp,se) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0x412) end function cm.sparkfilter(c) return c:IsCode(4200100) end function cm.spfilter(c,tp) return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x412) end function cm.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(cm.spfilter,1,nil,tp) end function cm.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 cm.spop(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 cm.attcon(e,c) return Duel.IsExistingMatchingCard(cm.sparkfilter,tp,LOCATION_GRAVE,0,1,nil) end function cm.atttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) local aat=Duel.AnnounceAttribute(tp,1,0xff-e:GetHandler():GetAttribute()) e:SetLabel(aat) end function cm.attop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) and c:IsFaceup() then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CHANGE_ATTRIBUTE) e1:SetValue(e:GetLabel()) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end end