--Godspark of Elysium - Imperia --Created and Scripted by Swaggy function c4200101.initial_effect(c) c:SetSPSummonOnce(4200101) --"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(c4200101.sslimit) c:RegisterEffect(e1) --Stratos, except it's WI- oh wait, Stratos is already WIND. local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(4200101,0)) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DESTROY) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetTarget(c4200101.tg) e2:SetOperation(c4200101.op) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e3) end function c4200101.sslimit(e,c,sump,sumtype,sumpos,targetp,se) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0x412) end function c4200101.addfilter(c) return c:IsSetCard(0x412) and c:IsAbleToHand() end function c4200101.sparkfilter(c) return c:IsCode(4200100) end function c4200101.tg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c4200101.addfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) if Duel.IsExistingMatchingCard(c4200101.sparkfilter,tp,LOCATION_GRAVE,0,1,nil) then local g=Duel.GetMatchingGroup(Card.IsType,tp,0,LOCATION_ONFIELD,nil,TYPE_SPELL+TYPE_TRAP) if #g>0 then Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end end end function c4200101.op(e,tp,eg,ep,ev,re,r,rp) local ifclause=false Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c4200101.addfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then if Duel.SendtoHand(g,nil,REASON_EFFECT)>0 and Duel.IsExistingMatchingCard(c4200101.sparkfilter,tp,LOCATION_GRAVE,0,1,nil) then ifclause=true end Duel.ConfirmCards(1-tp,g) if ifclause and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local sg=Duel.SelectMatchingCard(tp,Card.IsType,tp,0,LOCATION_ONFIELD,1,1,nil,TYPE_SPELL+TYPE_TRAP) if #sg>0 then Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT) end end end end