--Godspark of Nature, Erdia --Created and Scripted by Swaggy local m=4200112 local cm=_G["c"..m] function cm.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,cm.tfilter,aux.NonTuner(nil),1) c:SetSPSummonOnce(4200112) --Double Type/Attribute local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_ADD_ATTRIBUTE) e1:SetRange(LOCATION_MZONE) e1:SetValue(ATTRIBUTE_WATER) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetCode(EFFECT_ADD_RACE) e2:SetRange(LOCATION_MZONE) e2:SetValue(RACE_WINGED_BEAST) c:RegisterEffect(e2) --No Orcust for you local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetCode(EFFECT_CANNOT_REMOVE) e3:SetRange(LOCATION_MZONE) e3:SetTargetRange(LOCATION_GRAVE,LOCATION_GRAVE) e3:SetCondition(cm.noorcon) c:RegisterEffect(e3) --Spooky Dooky Battle Search local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(30270176,0)) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_BATTLE_DESTROYING) e4:SetCondition(cm.addcon) e4:SetTarget(cm.addtg) e4:SetOperation(cm.addop) c:RegisterEffect(e4) end function cm.tfilter(c) return c:IsCode(4200107) end function cm.sparkfilter(c) return c:IsCode(4200100) end function cm.noorcon(e,c) return Duel.IsExistingMatchingCard(cm.sparkfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil) end function cm.addcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker()==e:GetHandler() and aux.bdcon(e,tp,eg,ep,ev,re,r,rp) end function cm.addfilter(c) return c:IsSetCard(0x412) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() end function cm.addtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(cm.addfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function cm.addop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local tc=Duel.GetFirstTarget() local g=Duel.SelectMatchingCard(tp,cm.addfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end