--created by Seth, coded by Lyris --Great London Assassin Amy local s,id,o=GetID() function s.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND) e1:HOPT() e1:SetCondition(s.tpcon) e1:SetCost(s.tpcost) e1:SetTarget(s.tptg) e1:SetOperation(s.tpop) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:HOPT() e2:SetCategory(CATEGORY_TOHAND) e2:SetCost(s.thcost) e2:SetTarget(s.thtg) e2:SetOperation(s.thop) c:RegisterEffect(e2) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_BATTLE_START) e3:HOPT() e3:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) e3:SetCondition(s.descon) e3:SetTarget(s.destg) e3:SetOperation(s.desop) c:RegisterEffect(e3) end function s.tpcon() local ph=Duel.GetCurrentPhase() return ph==PHASE_MAIN1 or ph==PHASE_MAIN2 end function s.tpcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsDiscardable() end Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) end function s.tptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xd3f) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>1 end end function s.tpop(e,tp) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,0)) local tc=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0xd3f):GetFirst() if not tc then return end Duel.ShuffleDeck(tp) Duel.MoveSequence(tc,SEQ_DECKTOP) Duel.ConfirmDecktop(tp,1) end function s.cfilter(c) return c:IsSetCard(0xd3f) and c:IsDiscardable() end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end Duel.DiscardHand(tp,s.cfilter,1,1,REASON_COST) end function s.filter(c) return c:IsSetCard(0x1d3f) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE) end function s.thop(e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end function s.rfilter(c) return c:IsFaceup() and c:IsSetCard(0x1d3f) end function s.descon(e,tp) return Duel.GetAttacker()==e:GetHandler() and Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_ONFIELD,0,3,nil) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.GetAttackTarget() if chk==0 then return tc and tc:IsRelateToBattle() end Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) end function s.sfilter(c,e,tp) return c:IsSetCard(0xd3f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end function s.desop(e,tp) local tc=Duel.GetAttackTarget() local g=Duel.GetMatchingGroup(s.sfilter,tp,LOCATION_HAND,0,nil,e,tp) if not (tc and tc:IsRelateToBattle()) or Duel.Destroy(tc,REASON_EFFECT)<1 or Duel.GetLocationCount(tp,LOCATION_MZONE)<1 or #g<1 or not Duel.SelectEffectYesNo(tp,e:GetHandler(),1152) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(g:Select(tp,1,1,nil),0,tp,tp,false,false,POS_FACEUP_DEFENSE) end