Commit 5acb3d1a authored by Tachibana's avatar Tachibana

9

parent 58c5b9c4
...@@ -31,21 +31,23 @@ function c33200065.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,21 +31,23 @@ function c33200065.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c33200065.op(e,tp,eg,ep,ev,re,r,rp) function c33200065.op(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) if tc and tc:IsRelateToEffect(e) then
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local g=Duel.SelectMatchingCard(tp,c33200065.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if g:GetCount()~=0 then local g=Duel.SelectMatchingCard(tp,c33200065.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc)
local tc1=g:GetFirst() if g:GetCount()~=0 then
Duel.SpecialSummon(tc1,0,tp,tp,false,false,POS_FACEUP) local tc1=g:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) Duel.SpecialSummon(tc1,0,tp,tp,false,false,POS_FACEUP)
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc1:RegisterEffect(e1) e1:SetValue(1)
tc1:RegisterEffect(e1)
end
Duel.SpecialSummonComplete()
end end
Duel.SpecialSummonComplete()
end end
end end
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