Commit 9e4446a5 authored by 花桃白音's avatar 花桃白音

fix

parent ce23e394
...@@ -14,13 +14,18 @@ function cm.initial_effect(c) ...@@ -14,13 +14,18 @@ function cm.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA) e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(function(e,c)
if c==nil then return true end
local sg=cm.pickup
return sg and sg:GetCount()>0
end)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,c) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local sg=cm.pickup local sg=cm.pickup
if sg then if sg then
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
cm.pickup=nil cm.pickup=nil
return true else return false return sg:GetCount()>0 else return false
end end
end) end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
...@@ -41,7 +46,7 @@ function cm.initial_effect(c) ...@@ -41,7 +46,7 @@ function cm.initial_effect(c)
end) end)
e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(c:GetOwner(),aux.Stringid(m,0)) then if Duel.SelectYesNo(c:GetOwner(),aux.Stringid(m,0)) then
cm.pickup = eg:Filter(Card.IsAbleToRemove,nil) cm.pickup = eg:Filter(Card.IsAbleToRemove,nil)
Duel.SpecialSummonRule(c:GetOwner(),e:GetHandler()) Duel.SpecialSummonRule(c:GetOwner(),e:GetHandler())
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