Commit 5be2d0b6 authored by wind2009's avatar wind2009

Fix ティマイオスの眼光

parent 45d0263a
...@@ -34,30 +34,30 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -34,30 +34,30 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not aux.MustMaterialCheck(tc,tp,EFFECT_MUST_BE_FMATERIAL) then return end
local code=tc:GetCode() local code=tc:GetCode()
if not tc or not tc:IsRelateToChain() or not aux.NecroValleyFilter()(tc) if tc and tc:IsRelateToChain() and aux.NecroValleyFilter()(tc) and not tc:IsImmuneToEffect(e) then
or Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)<=0 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
or not tc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then return end local sg=Duel.SelectMatchingCard(tp,s.fusfilter,tp,LOCATION_EXTRA,0,1,1,tc,e,tp,code)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sc=sg:GetFirst()
local sg=Duel.SelectMatchingCard(tp,s.fusfilter,tp,LOCATION_EXTRA,0,1,1,tc,e,tp,code) if sc then
local mg=Group.FromCards(tc) sc:SetMaterial(Group.FromCards(tc))
local sc=sg:GetFirst() Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
if sc then Duel.BreakEffect()
Duel.BreakEffect() Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
sc:SetMaterial(mg) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1)
Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure()
tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) local e1=Effect.CreateEffect(e:GetHandler())
sc:CompleteProcedure() e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
local e1=Effect.CreateEffect(e:GetHandler()) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCountLimit(1)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetLabelObject(sc)
e1:SetCountLimit(1) e1:SetLabel(Duel.GetTurnCount())
e1:SetLabelObject(sc) e1:SetCondition(s.rmcon)
e1:SetLabel(Duel.GetTurnCount()) e1:SetOperation(s.rmop)
e1:SetCondition(s.rmcon) e1:SetReset(RESET_PHASE+PHASE_END,2)
e1:SetOperation(s.rmop) Duel.RegisterEffect(e1,tp)
e1:SetReset(RESET_PHASE+PHASE_END,2) end
Duel.RegisterEffect(e1,tp)
end end
end end
function s.rmcon(e,tp,eg,ep,ev,re,r,rp) function s.rmcon(e,tp,eg,ep,ev,re,r,rp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment