Commit 526fb959 authored by Tachibana's avatar Tachibana

ybb

parent 1e605ef8
...@@ -44,12 +44,14 @@ function cm.togop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,12 +44,14 @@ function cm.togop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=Duel.GetFirstTarget() local ct=Duel.GetFirstTarget()
if ct:IsRelateToEffect(e) then if ct:IsRelateToEffect(e) then
Duel.SendtoHand(ct,tp,REASON_EFFECT) if ct then
Duel.SendtoHand(ct,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,ct) Duel.ConfirmCards(1-tp,ct)
if ct:IsLocation(LOCATION_HAND) then if ct:IsLocation(LOCATION_HAND) then
local e12=Effect.CreateEffect(c) local e12=Effect.CreateEffect(c)
e12:SetDescription(aux.Stringid(m,0)) e12:SetDescription(aux.Stringid(m,0))
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetCode(EFFECT_SUMMON_PROC) e12:SetCode(EFFECT_SUMMON_PROC)
e12:SetCondition(cm.sumcon) e12:SetCondition(cm.sumcon)
e12:SetOperation(cm.sumop) e12:SetOperation(cm.sumop)
...@@ -68,6 +70,7 @@ function cm.togop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,6 +70,7 @@ function cm.togop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
end
end end
function cm.sumcon(e,c) function cm.sumcon(e,c)
return true return true
......
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